lew-ui 2.6.13 → 2.6.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -8363,9 +8363,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
8363
8363
  emits: ["change"],
8364
8364
  setup(__props2, { emit: __emit2 }) {
8365
8365
  const props2 = __props2;
8366
- const { modelValue: modelValue2, expandKeys, modelValueKeyPath, collapsed } = inject(
8367
- "lew-menu-tree"
8368
- );
8366
+ const { modelValue: modelValue2, expandKeys, modelValueKeyPath, collapsed } = inject("lew-menu-tree");
8369
8367
  const emit2 = __emit2;
8370
8368
  const change2 = () => {
8371
8369
  if (props2.disabled) return;
@@ -8411,7 +8409,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
8411
8409
  props: props2
8412
8410
  }, void 0, true) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
8413
8411
  (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon()), { class: "lew-menu-tree-item-icon" })),
8414
- unref(isFunction$1)(_ctx.label) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.label()), {
8412
+ unref(isVueComponent)(_ctx.label) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.label), {
8415
8413
  key: 0,
8416
8414
  class: "lew-menu-tree-item-text"
8417
8415
  })) : (openBlock(), createBlock(_component_lew_text_trim, {
@@ -8456,7 +8454,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
8456
8454
  };
8457
8455
  }
8458
8456
  });
8459
- const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-97c363cd"]]);
8457
+ const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-56731985"]]);
8460
8458
  const _sfc_main$R = /* @__PURE__ */ defineComponent({
8461
8459
  __name: "LewMenuTree",
8462
8460
  props: /* @__PURE__ */ mergeModels(menuTreeProps, {
@@ -8853,9 +8851,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8853
8851
  default: withCtx(() => [
8854
8852
  (openBlock(true), createElementBlock(Fragment, null, renderList(visibleOptions.value, (option, index2) => {
8855
8853
  return openBlock(), createElementBlock(Fragment, null, [
8856
- unref(isVueComponent)(option.customRender) ? (openBlock(), createBlock(resolveDynamicComponent(
8857
- unref(isFunction$1)(option.customRender) ? option.customRender() : option.customRender
8858
- ), {
8854
+ unref(isVueComponent)(option.customRender) ? (openBlock(), createBlock(resolveDynamicComponent(option.customRender), {
8859
8855
  key: 0,
8860
8856
  onClick: ($event) => {
8861
8857
  var _a;
@@ -8869,11 +8865,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8869
8865
  },
8870
8866
  class: "lew-action-box-item"
8871
8867
  }, [
8872
- unref(isVueComponent)(option.icon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(isFunction$1)(option.icon) ? option.icon() : option.icon), {
8868
+ unref(isVueComponent)(option.icon) ? (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
8873
8869
  key: 0,
8874
8870
  class: "lew-action-box-icon"
8875
8871
  })) : createCommentVNode("", true),
8876
- unref(isVueComponent)(option.label) ? (openBlock(), createBlock(resolveDynamicComponent(unref(isFunction$1)(option.label) ? option.label() : option.label), {
8872
+ unref(isVueComponent)(option.label) ? (openBlock(), createBlock(resolveDynamicComponent(option.label), {
8877
8873
  key: 1,
8878
8874
  onClick: ($event) => {
8879
8875
  var _a;
@@ -8892,15 +8888,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8892
8888
  }, {
8893
8889
  default: withCtx(() => [
8894
8890
  createElementVNode("div", _hoisted_3$g, [
8895
- unref(isVueComponent)(props2.dropdownIcon) ? (openBlock(), createBlock(resolveDynamicComponent(
8896
- unref(isFunction$1)(props2.dropdownIcon) ? props2.dropdownIcon() : props2.dropdownIcon
8897
- ), {
8891
+ unref(isVueComponent)(_ctx.dropdownIcon) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon), {
8898
8892
  key: 0,
8899
8893
  class: "lew-action-box-icon"
8900
8894
  })) : createCommentVNode("", true),
8901
- unref(isVueComponent)(props2.dropdownLabel) ? (openBlock(), createBlock(resolveDynamicComponent(
8902
- unref(isFunction$1)(props2.dropdownLabel) ? props2.dropdownLabel() : props2.dropdownLabel
8903
- ), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
8895
+ unref(isVueComponent)(_ctx.dropdownLabel) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownLabel), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
8904
8896
  createTextVNode(toDisplayString$1(_ctx.dropdownLabel), 1)
8905
8897
  ], 64))
8906
8898
  ])
@@ -8913,7 +8905,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
8913
8905
  };
8914
8906
  }
8915
8907
  });
8916
- const LewActionBox = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-f860c550"]]);
8908
+ const LewActionBox = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-19fa6d64"]]);
8917
8909
  const _hoisted_1$C = ["width", "height"];
8918
8910
  const _sfc_main$N = /* @__PURE__ */ defineComponent({
8919
8911
  __name: "RequiredIcon",
@@ -25980,7 +25972,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
25980
25972
  })) : createCommentVNode("", true)
25981
25973
  ])) : createCommentVNode("", true),
25982
25974
  createElementVNode("div", _hoisted_3$1, [
25983
- unref(isVueComponent)(item.icon) ? (openBlock(), createBlock(resolveDynamicComponent(unref(isFunction$1)(item.icon) ? item.icon() : item.icon), { key: 0 })) : createCommentVNode("", true),
25975
+ unref(isVueComponent)(item.icon) ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : createCommentVNode("", true),
25984
25976
  createElementVNode("div", _hoisted_4$1, toDisplayString$1(item.label), 1)
25985
25977
  ]),
25986
25978
  _ctx.options.filter((e) => e.children).length > 0 ? (openBlock(), createBlock(Icon, {
@@ -26008,7 +26000,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
26008
26000
  };
26009
26001
  }
26010
26002
  });
26011
- const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-f32e0e4e"]]);
26003
+ const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ad419d70"]]);
26012
26004
  const initLewHoverMenu = () => {
26013
26005
  window.LewHoverMenu = {
26014
26006
  menu: {},