73e03aefee75602379281550f2313a57a2bbd1bfa0cfc25c21739105180170f7c85de19fdcba2d8e6181e6ebf8a6ce48dbf6085c47ae30d7e26c854356fb4a 2.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768
  1. import { defineComponent, inject, unref, openBlock, createElementBlock, Fragment, createElementVNode, renderList, createBlock, createVNode } from 'vue';
  2. import ElDescriptionsCell from './descriptions-cell.mjs';
  3. import { descriptionsKey } from './token.mjs';
  4. import { descriptionsRowProps } from './descriptions-row.mjs';
  5. import _export_sfc from '../../../_virtual/plugin-vue_export-helper.mjs';
  6. const __default__ = defineComponent({
  7. name: "ElDescriptionsRow"
  8. });
  9. const _sfc_main = /* @__PURE__ */ defineComponent({
  10. ...__default__,
  11. props: descriptionsRowProps,
  12. setup(__props) {
  13. const descriptions = inject(descriptionsKey, {});
  14. return (_ctx, _cache) => {
  15. return unref(descriptions).direction === "vertical" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  16. createElementVNode("tr", null, [
  17. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
  18. return openBlock(), createBlock(unref(ElDescriptionsCell), {
  19. key: `tr1-${_index}`,
  20. cell,
  21. tag: "th",
  22. type: "label"
  23. }, null, 8, ["cell"]);
  24. }), 128))
  25. ]),
  26. createElementVNode("tr", null, [
  27. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
  28. return openBlock(), createBlock(unref(ElDescriptionsCell), {
  29. key: `tr2-${_index}`,
  30. cell,
  31. tag: "td",
  32. type: "content"
  33. }, null, 8, ["cell"]);
  34. }), 128))
  35. ])
  36. ], 64)) : (openBlock(), createElementBlock("tr", { key: 1 }, [
  37. (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.row, (cell, _index) => {
  38. return openBlock(), createElementBlock(Fragment, {
  39. key: `tr3-${_index}`
  40. }, [
  41. unref(descriptions).border ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
  42. createVNode(unref(ElDescriptionsCell), {
  43. cell,
  44. tag: "td",
  45. type: "label"
  46. }, null, 8, ["cell"]),
  47. createVNode(unref(ElDescriptionsCell), {
  48. cell,
  49. tag: "td",
  50. type: "content"
  51. }, null, 8, ["cell"])
  52. ], 64)) : (openBlock(), createBlock(unref(ElDescriptionsCell), {
  53. key: 1,
  54. cell,
  55. tag: "td",
  56. type: "both"
  57. }, null, 8, ["cell"]))
  58. ], 64);
  59. }), 128))
  60. ]));
  61. };
  62. }
  63. });
  64. var ElDescriptionsRow = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "descriptions-row.vue"]]);
  65. export { ElDescriptionsRow as default };
  66. //# sourceMappingURL=descriptions-row2.mjs.map