tree2.js 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. Object.defineProperties(exports, {
  2. __esModule: { value: true },
  3. [Symbol.toStringTag]: { value: "Module" }
  4. });
  5. require("../../../_virtual/_rolldown/runtime.js");
  6. const require__plugin_vue_export_helper = require("../../../_virtual/_plugin-vue_export-helper.js");
  7. const require_tree_vue_vue_type_script_lang = require("./tree.vue_vue_type_script_lang.js");
  8. let vue = require("vue");
  9. //#region ../../packages/components/tree/src/tree.vue
  10. function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
  11. const _component_el_tree_node = (0, vue.resolveComponent)("el-tree-node");
  12. return (0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
  13. ref: "el$",
  14. class: (0, vue.normalizeClass)([
  15. _ctx.ns.b(),
  16. _ctx.ns.is("dragging", !!_ctx.dragState.draggingNode),
  17. _ctx.ns.is("drop-not-allow", !_ctx.dragState.allowDrop),
  18. _ctx.ns.is("drop-inner", _ctx.dragState.dropType === "inner"),
  19. { [_ctx.ns.m("highlight-current")]: _ctx.highlightCurrent }
  20. ]),
  21. role: "tree"
  22. }, [
  23. ((0, vue.openBlock)(true), (0, vue.createElementBlock)(vue.Fragment, null, (0, vue.renderList)(_ctx.root.childNodes, (child) => {
  24. return (0, vue.openBlock)(), (0, vue.createBlock)(_component_el_tree_node, {
  25. key: _ctx.getNodeKey(child),
  26. node: child,
  27. props: _ctx.props,
  28. accordion: _ctx.accordion,
  29. "render-after-expand": _ctx.renderAfterExpand,
  30. "show-checkbox": _ctx.showCheckbox,
  31. "render-content": _ctx.renderContent,
  32. onNodeExpand: _ctx.handleNodeExpand
  33. }, null, 8, [
  34. "node",
  35. "props",
  36. "accordion",
  37. "render-after-expand",
  38. "show-checkbox",
  39. "render-content",
  40. "onNodeExpand"
  41. ]);
  42. }), 128)),
  43. _ctx.isEmpty ? ((0, vue.openBlock)(), (0, vue.createElementBlock)("div", {
  44. key: 0,
  45. class: (0, vue.normalizeClass)(_ctx.ns.e("empty-block"))
  46. }, [(0, vue.renderSlot)(_ctx.$slots, "empty", {}, () => [(0, vue.createElementVNode)("span", { class: (0, vue.normalizeClass)(_ctx.ns.e("empty-text")) }, (0, vue.toDisplayString)(_ctx.emptyText ?? _ctx.t("el.tree.emptyText")), 3)])], 2)) : (0, vue.createCommentVNode)("v-if", true),
  47. (0, vue.withDirectives)((0, vue.createElementVNode)("div", {
  48. ref: "dropIndicator$",
  49. class: (0, vue.normalizeClass)(_ctx.ns.e("drop-indicator"))
  50. }, null, 2), [[vue.vShow, _ctx.dragState.showDropIndicator]])
  51. ], 2);
  52. }
  53. var tree_default = /* @__PURE__ */ require__plugin_vue_export_helper.default(require_tree_vue_vue_type_script_lang.default, [["render", _sfc_render]]);
  54. //#endregion
  55. exports.default = tree_default;
  56. //# sourceMappingURL=tree2.js.map