902ce464e9845f148ff3e713e7803233466174504944b3bd6dc1e99ed2d74839b4e1d40adcf25b9cbd048a2ada6d3f28fbf1d78211244e3ba6bdc431a9ab75 2.9 KB

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