descriptions-row2.js 3.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  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 _hoisted_1 = { key: 1 };
  9. const __default__ = vue.defineComponent({
  10. name: "ElDescriptionsRow"
  11. });
  12. const _sfc_main = /* @__PURE__ */ vue.defineComponent({
  13. ...__default__,
  14. props: descriptionsRow.descriptionsRowProps,
  15. setup(__props) {
  16. const descriptions = vue.inject(token.descriptionsKey, {});
  17. return (_ctx, _cache) => {
  18. return vue.unref(descriptions).direction === "vertical" ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
  19. vue.createElementVNode("tr", null, [
  20. (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
  21. return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
  22. key: `tr1-${index}`,
  23. cell,
  24. tag: "th",
  25. type: "label"
  26. }, null, 8, ["cell"]);
  27. }), 128))
  28. ]),
  29. vue.createElementVNode("tr", null, [
  30. (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
  31. return vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
  32. key: `tr2-${index}`,
  33. cell,
  34. tag: "td",
  35. type: "content"
  36. }, null, 8, ["cell"]);
  37. }), 128))
  38. ])
  39. ], 64)) : (vue.openBlock(), vue.createElementBlock("tr", _hoisted_1, [
  40. (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(_ctx.row, (cell, index) => {
  41. return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
  42. key: `tr3-${index}`
  43. }, [
  44. vue.unref(descriptions).border ? (vue.openBlock(), vue.createElementBlock(vue.Fragment, { key: 0 }, [
  45. vue.createVNode(vue.unref(descriptionsCell["default"]), {
  46. cell,
  47. tag: "td",
  48. type: "label"
  49. }, null, 8, ["cell"]),
  50. vue.createVNode(vue.unref(descriptionsCell["default"]), {
  51. cell,
  52. tag: "td",
  53. type: "content"
  54. }, null, 8, ["cell"])
  55. ], 64)) : (vue.openBlock(), vue.createBlock(vue.unref(descriptionsCell["default"]), {
  56. key: 1,
  57. cell,
  58. tag: "td",
  59. type: "both"
  60. }, null, 8, ["cell"]))
  61. ], 64);
  62. }), 128))
  63. ]));
  64. };
  65. }
  66. });
  67. var ElDescriptionsRow = /* @__PURE__ */ pluginVue_exportHelper["default"](_sfc_main, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/descriptions/src/descriptions-row.vue"]]);
  68. exports["default"] = ElDescriptionsRow;
  69. //# sourceMappingURL=descriptions-row2.js.map