lew-ui 2.6.13 → 2.6.15
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 +20 -27
- package/dist/index.umd.js +2 -2
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -3499,9 +3499,7 @@ const isVueComponent = (value) => {
|
|
|
3499
3499
|
return false;
|
|
3500
3500
|
}
|
|
3501
3501
|
if (typeof value === "function") {
|
|
3502
|
-
|
|
3503
|
-
if (str.includes("return h(") || str.includes("() => h(") || str.includes("createElement"))
|
|
3504
|
-
return true;
|
|
3502
|
+
return true;
|
|
3505
3503
|
}
|
|
3506
3504
|
if (value && typeof value === "object") {
|
|
3507
3505
|
if (value.__file || value.__name || value.setup || value.render || value.template)
|
|
@@ -8363,9 +8361,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
8363
8361
|
emits: ["change"],
|
|
8364
8362
|
setup(__props2, { emit: __emit2 }) {
|
|
8365
8363
|
const props2 = __props2;
|
|
8366
|
-
const { modelValue: modelValue2, expandKeys, modelValueKeyPath, collapsed } = inject(
|
|
8367
|
-
"lew-menu-tree"
|
|
8368
|
-
);
|
|
8364
|
+
const { modelValue: modelValue2, expandKeys, modelValueKeyPath, collapsed } = inject("lew-menu-tree");
|
|
8369
8365
|
const emit2 = __emit2;
|
|
8370
8366
|
const change2 = () => {
|
|
8371
8367
|
if (props2.disabled) return;
|
|
@@ -8401,7 +8397,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
8401
8397
|
"lew-menu-tree-item-label-collapsed": unref(collapsed)
|
|
8402
8398
|
}]),
|
|
8403
8399
|
style: normalizeStyle({
|
|
8404
|
-
paddingLeft: unref(collapsed) ? "0px" : _ctx.icon
|
|
8400
|
+
paddingLeft: unref(collapsed) ? "0px" : unref(isVueComponent)(_ctx.icon) ? "36px" : "11.5px"
|
|
8405
8401
|
}),
|
|
8406
8402
|
onClick: withModifiers(change2, ["stop"])
|
|
8407
8403
|
}, {
|
|
@@ -8410,22 +8406,25 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
8410
8406
|
key: 0,
|
|
8411
8407
|
props: props2
|
|
8412
8408
|
}, void 0, true) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
8413
|
-
(openBlock(), createBlock(resolveDynamicComponent(_ctx.icon
|
|
8414
|
-
unref(isFunction$1)(_ctx.label) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.label()), {
|
|
8409
|
+
unref(isVueComponent)(_ctx.icon) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.icon), {
|
|
8415
8410
|
key: 0,
|
|
8411
|
+
class: "lew-menu-tree-item-icon"
|
|
8412
|
+
})) : createCommentVNode("", true),
|
|
8413
|
+
unref(isVueComponent)(_ctx.label) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.label), {
|
|
8414
|
+
key: 1,
|
|
8416
8415
|
class: "lew-menu-tree-item-text"
|
|
8417
8416
|
})) : (openBlock(), createBlock(_component_lew_text_trim, {
|
|
8418
|
-
key:
|
|
8417
|
+
key: 2,
|
|
8419
8418
|
class: "lew-menu-tree-item-text",
|
|
8420
8419
|
placement: "right",
|
|
8421
8420
|
style: normalizeStyle({
|
|
8422
|
-
maxWidth: `calc(100% - ${_ctx.icon
|
|
8421
|
+
maxWidth: `calc(100% - ${unref(isVueComponent)(_ctx.icon) ? 30 : 0}px)`
|
|
8423
8422
|
}),
|
|
8424
8423
|
text: _ctx.label,
|
|
8425
8424
|
delay: [250, 250]
|
|
8426
8425
|
}, null, 8, ["style", "text"])),
|
|
8427
8426
|
!_ctx.isLeaf ? (openBlock(), createBlock(Icon, {
|
|
8428
|
-
key:
|
|
8427
|
+
key: 3,
|
|
8429
8428
|
class: "lew-menu-tree-item-chevron-right",
|
|
8430
8429
|
size: 14,
|
|
8431
8430
|
style: normalizeStyle({
|
|
@@ -8456,7 +8455,7 @@ const _sfc_main$S = /* @__PURE__ */ defineComponent({
|
|
|
8456
8455
|
};
|
|
8457
8456
|
}
|
|
8458
8457
|
});
|
|
8459
|
-
const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-
|
|
8458
|
+
const LewMenuTreeItem = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["__scopeId", "data-v-b1e91664"]]);
|
|
8460
8459
|
const _sfc_main$R = /* @__PURE__ */ defineComponent({
|
|
8461
8460
|
__name: "LewMenuTree",
|
|
8462
8461
|
props: /* @__PURE__ */ mergeModels(menuTreeProps, {
|
|
@@ -8853,9 +8852,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8853
8852
|
default: withCtx(() => [
|
|
8854
8853
|
(openBlock(true), createElementBlock(Fragment, null, renderList(visibleOptions.value, (option, index2) => {
|
|
8855
8854
|
return openBlock(), createElementBlock(Fragment, null, [
|
|
8856
|
-
unref(isVueComponent)(option.customRender) ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
8857
|
-
unref(isFunction$1)(option.customRender) ? option.customRender() : option.customRender
|
|
8858
|
-
), {
|
|
8855
|
+
unref(isVueComponent)(option.customRender) ? (openBlock(), createBlock(resolveDynamicComponent(option.customRender), {
|
|
8859
8856
|
key: 0,
|
|
8860
8857
|
onClick: ($event) => {
|
|
8861
8858
|
var _a;
|
|
@@ -8869,11 +8866,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8869
8866
|
},
|
|
8870
8867
|
class: "lew-action-box-item"
|
|
8871
8868
|
}, [
|
|
8872
|
-
unref(isVueComponent)(option.icon) ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
8869
|
+
unref(isVueComponent)(option.icon) ? (openBlock(), createBlock(resolveDynamicComponent(option.icon), {
|
|
8873
8870
|
key: 0,
|
|
8874
8871
|
class: "lew-action-box-icon"
|
|
8875
8872
|
})) : createCommentVNode("", true),
|
|
8876
|
-
unref(isVueComponent)(option.label) ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
8873
|
+
unref(isVueComponent)(option.label) ? (openBlock(), createBlock(resolveDynamicComponent(option.label), {
|
|
8877
8874
|
key: 1,
|
|
8878
8875
|
onClick: ($event) => {
|
|
8879
8876
|
var _a;
|
|
@@ -8892,15 +8889,11 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8892
8889
|
}, {
|
|
8893
8890
|
default: withCtx(() => [
|
|
8894
8891
|
createElementVNode("div", _hoisted_3$g, [
|
|
8895
|
-
unref(isVueComponent)(
|
|
8896
|
-
unref(isFunction$1)(props2.dropdownIcon) ? props2.dropdownIcon() : props2.dropdownIcon
|
|
8897
|
-
), {
|
|
8892
|
+
unref(isVueComponent)(_ctx.dropdownIcon) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownIcon), {
|
|
8898
8893
|
key: 0,
|
|
8899
8894
|
class: "lew-action-box-icon"
|
|
8900
8895
|
})) : createCommentVNode("", true),
|
|
8901
|
-
unref(isVueComponent)(
|
|
8902
|
-
unref(isFunction$1)(props2.dropdownLabel) ? props2.dropdownLabel() : props2.dropdownLabel
|
|
8903
|
-
), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
8896
|
+
unref(isVueComponent)(_ctx.dropdownLabel) ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.dropdownLabel), { key: 1 })) : (openBlock(), createElementBlock(Fragment, { key: 2 }, [
|
|
8904
8897
|
createTextVNode(toDisplayString$1(_ctx.dropdownLabel), 1)
|
|
8905
8898
|
], 64))
|
|
8906
8899
|
])
|
|
@@ -8913,7 +8906,7 @@ const _sfc_main$O = /* @__PURE__ */ defineComponent({
|
|
|
8913
8906
|
};
|
|
8914
8907
|
}
|
|
8915
8908
|
});
|
|
8916
|
-
const LewActionBox = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-
|
|
8909
|
+
const LewActionBox = /* @__PURE__ */ _export_sfc(_sfc_main$O, [["__scopeId", "data-v-19fa6d64"]]);
|
|
8917
8910
|
const _hoisted_1$C = ["width", "height"];
|
|
8918
8911
|
const _sfc_main$N = /* @__PURE__ */ defineComponent({
|
|
8919
8912
|
__name: "RequiredIcon",
|
|
@@ -25980,7 +25973,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
25980
25973
|
})) : createCommentVNode("", true)
|
|
25981
25974
|
])) : createCommentVNode("", true),
|
|
25982
25975
|
createElementVNode("div", _hoisted_3$1, [
|
|
25983
|
-
unref(isVueComponent)(item.icon) ? (openBlock(), createBlock(resolveDynamicComponent(
|
|
25976
|
+
unref(isVueComponent)(item.icon) ? (openBlock(), createBlock(resolveDynamicComponent(item.icon), { key: 0 })) : createCommentVNode("", true),
|
|
25984
25977
|
createElementVNode("div", _hoisted_4$1, toDisplayString$1(item.label), 1)
|
|
25985
25978
|
]),
|
|
25986
25979
|
_ctx.options.filter((e) => e.children).length > 0 ? (openBlock(), createBlock(Icon, {
|
|
@@ -26008,7 +26001,7 @@ const _sfc_main$1 = /* @__PURE__ */ defineComponent({
|
|
|
26008
26001
|
};
|
|
26009
26002
|
}
|
|
26010
26003
|
});
|
|
26011
|
-
const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-
|
|
26004
|
+
const _LewContextMenu = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["__scopeId", "data-v-ad419d70"]]);
|
|
26012
26005
|
const initLewHoverMenu = () => {
|
|
26013
26006
|
window.LewHoverMenu = {
|
|
26014
26007
|
menu: {},
|