@lingshugroup/web-plus 1.7.4 → 1.7.5
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/lib/index.css +1 -1
- package/lib/index.css.br +0 -0
- package/lib/index.css.gz +0 -0
- package/lib/packages/ls-components/components/_constants/token/index.cjs +1 -1
- package/lib/packages/ls-components/components/_constants/token/index.js +3 -2
- package/lib/packages/ls-components/components/editor/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/editor/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/menu/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/menu/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js +51 -48
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/menu/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.js +62 -57
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.js.br +0 -0
- package/lib/packages/ls-components/components/menu/MenuItem.vue/index.js.gz +0 -0
- package/lib/packages/ls-components/components/menu/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/menu/types/index.js +4 -0
- package/lib/packages/ls-components/components/menu/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/menu/types/index.js.gz +0 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/tooltip/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.js +57 -31
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/tooltip/types/index.cjs +1 -0
- package/lib/packages/ls-components/components/tooltip/types/index.js +22 -0
- package/lib/types/components/_constants/token.d.ts +1 -0
- package/lib/types/components/menu/Index.vue.d.ts +3 -0
- package/lib/types/components/menu/index.d.ts +6 -0
- package/lib/types/components/menu/types.d.ts +1 -0
- package/lib/types/components/tooltip/Index.vue.d.ts +17 -1
- package/lib/types/components/tooltip/types.d.ts +7 -1
- package/package.json +1 -1
package/lib/index.css.br
CHANGED
|
Binary file
|
package/lib/index.css.gz
CHANGED
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Symbol("lsBtnKey");exports.lsBtnKey=e;
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=Symbol("lsBtnKey"),l=Symbol("lsMenuKey");exports.lsBtnKey=e;exports.lsMenuKey=l;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */;/* empty css */const t=,/* empty css */r=t.default(e.default,[["__scopeId","data-v-2aec0554"]]);exports.default=r;
|
|
@@ -2,7 +2,7 @@ import o from "./index2.js";
|
|
|
2
2
|
/* empty css */
|
|
3
3
|
/* empty css */
|
|
4
4
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
5
|
-
const
|
|
5
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-2aec0554"]]);
|
|
6
6
|
export {
|
|
7
|
-
|
|
7
|
+
a as default
|
|
8
8
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const u=,/* empty css */t=u.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const u=,/* empty css */t=u.default(e.default,[["__scopeId","data-v-dfb7eb9a"]]);exports.default=t;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const e = /* @__PURE__ */ t(o, [["__scopeId", "data-v-dfb7eb9a"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
e as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var A=Object.defineProperty;var o=(c,l)=>A(c,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("vue"),g=,/* empty css */h=,/* empty css */N=,/* empty css */B=,/* empty css */E=,/* empty css */
|
|
1
|
+
"use strict";var A=Object.defineProperty;var o=(c,l)=>A(c,"name",{value:l,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const s=require("vue"),g=,/* empty css */h=,/* empty css */N=,/* empty css */B=,/* empty css */E=,/* empty css */D=,/* empty css */P=s.defineComponent({name:"LSMenu"}),I=s.defineComponent({...P,props:h.lsMenuProps,emits:h.lsEmitNames,setup(c,{expose:l,emit:y}){s.useCssVars(e=>({"9bf28f8e":e.hoverColor}));const{currentRouter:r}=N.default(),S=g.useNamespace("menu").b(),a=c,f=y,q=s.useAttrs();s.provide(E.lsMenuKey,{fontSize:a.fontSize});const C=s.ref(!1),_=s.ref(""),u=s.ref();s.watch(()=>a.permissionList,e=>{a.needPermission&&e&&e.length>0&&m()},{immediate:!0,deep:!0}),s.watch(()=>r.value,()=>{m()},{immediate:!0,deep:!0}),s.watch(()=>q["default-active"],async e=>{e&&(await s.nextTick(),d(e.toString()))},{immediate:!0,deep:!0});function m(){if(!C.value)return;const{meta:e}=(r==null?void 0:r.value)||{};_.value=(e==null?void 0:e.key)||"1"}o(m,"initMenuSider");function M(e){f("onJump",e)}o(M,"onJump");function L(e){const{key:i}=e;d(i),f("defineSubClick",e)}o(L,"defineSubClickFunc");function b(e){const{key:i}=e;d(i),f("defineChildClick",e)}o(b,"defineChildClickFunc");function d(e){if(u.value){let i=!1;const p=u.value.$el.querySelectorAll(".el-sub-menu"),n=u.value.$el.querySelectorAll(".el-menu-item"),v="is-sub-active",k="is-active";n.forEach(t=>{Array.from(t.classList).includes(k)&&t.classList.remove(k),e===t.dataset.index&&(i=!0,t.classList.add(k))}),p.forEach(t=>{Array.from(t.classList).includes(v)&&t.classList.remove(v),!i&&e===t.dataset.index&&t.classList.add(v)})}}return o(d,"updateActiveClass"),s.onMounted(()=>{C.value=!0,m()}),l({lsComMenuRef:u}),(e,i)=>{const p=D.ElMenu;return s.openBlock(),s.createBlock(p,s.mergeProps({ref_key:"lsComMenuRef",ref:u},e.$attrs,{class:s.unref(S),"default-active":s.unref(_)}),{default:s.withCtx(()=>[(s.openBlock(!0),s.createElementBlock(s.Fragment,null,s.renderList(e.menuConfigList,n=>(s.openBlock(),s.createBlock(B.default,{key:n.key,item:n,"permission-list":e.permissionList,"need-permission":e.needPermission,"is-define-click":e.isDefineClick,"show-tooltip":e.showTooltip,onOnJump:M,onDefineSubClick:L,onDefineChildClick:b},{[n.iconSlot]:s.withCtx(()=>[s.renderSlot(e.$slots,n.iconSlot,{},void 0,!0)]),_:2},1032,["item","permission-list","need-permission","is-define-click","show-tooltip"]))),128))]),_:3},16,["class","default-active"])}}});exports.default=I;
|
|
@@ -1,103 +1,106 @@
|
|
|
1
1
|
var P = Object.defineProperty;
|
|
2
|
-
var o = (
|
|
2
|
+
var o = (l, c) => P(l, "name", { value: c, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
6
|
/* empty css */
|
|
7
|
-
import { defineComponent as
|
|
7
|
+
import { defineComponent as M, useCssVars as B, useAttrs as F, provide as J, ref as k, watch as v, nextTick as q, onMounted as z, openBlock as h, createBlock as L, mergeProps as I, unref as b, withCtx as A, createElementBlock as K, Fragment as R, renderList as T, renderSlot as H } from "vue";
|
|
8
8
|
import { useNamespace as O } from "../../_hooks/useNamespace/index.js";
|
|
9
9
|
import { lsMenuProps as j, lsEmitNames as x } from "../types/index.js";
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
10
|
+
import G from "../../_hooks/useRouterHook/index.js";
|
|
11
|
+
import Q from "../MenuItem.vue/index.js";
|
|
12
|
+
import { lsMenuKey as U } from "../../_constants/token/index.js";
|
|
13
|
+
import { ElMenu as V } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/menu/index/index.js";
|
|
14
|
+
const W = M({
|
|
14
15
|
name: "LSMenu"
|
|
15
|
-
}),
|
|
16
|
-
...
|
|
16
|
+
}), ae = /* @__PURE__ */ M({
|
|
17
|
+
...W,
|
|
17
18
|
props: j,
|
|
18
19
|
emits: x,
|
|
19
|
-
setup(
|
|
20
|
+
setup(l, { expose: c, emit: _ }) {
|
|
20
21
|
B((e) => ({
|
|
21
|
-
"
|
|
22
|
+
"9bf28f8e": e.hoverColor
|
|
22
23
|
}));
|
|
23
|
-
const { currentRouter: r } =
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
const { currentRouter: r } = G(), w = O("menu").b(), u = l, a = _, E = F();
|
|
25
|
+
J(U, { fontSize: u.fontSize });
|
|
26
|
+
const y = k(!1), S = k(""), n = k();
|
|
27
|
+
v(
|
|
28
|
+
() => u.permissionList,
|
|
26
29
|
(e) => {
|
|
27
|
-
|
|
30
|
+
u.needPermission && e && e.length > 0 && m();
|
|
28
31
|
},
|
|
29
32
|
{
|
|
30
33
|
immediate: !0,
|
|
31
34
|
deep: !0
|
|
32
35
|
}
|
|
33
|
-
),
|
|
36
|
+
), v(
|
|
34
37
|
() => r.value,
|
|
35
38
|
() => {
|
|
36
|
-
|
|
39
|
+
m();
|
|
37
40
|
},
|
|
38
41
|
{
|
|
39
42
|
immediate: !0,
|
|
40
43
|
deep: !0
|
|
41
44
|
}
|
|
42
|
-
),
|
|
45
|
+
), v(
|
|
43
46
|
() => E["default-active"],
|
|
44
47
|
async (e) => {
|
|
45
|
-
e && (await
|
|
48
|
+
e && (await q(), f(e.toString()));
|
|
46
49
|
},
|
|
47
50
|
{
|
|
48
51
|
immediate: !0,
|
|
49
52
|
deep: !0
|
|
50
53
|
}
|
|
51
54
|
);
|
|
52
|
-
function
|
|
55
|
+
function m() {
|
|
53
56
|
if (!y.value)
|
|
54
57
|
return;
|
|
55
58
|
const { meta: e } = (r == null ? void 0 : r.value) || {};
|
|
56
|
-
|
|
59
|
+
S.value = (e == null ? void 0 : e.key) || "1";
|
|
57
60
|
}
|
|
58
|
-
o(
|
|
61
|
+
o(m, "initMenuSider");
|
|
59
62
|
function N(e) {
|
|
60
|
-
|
|
63
|
+
a("onJump", e);
|
|
61
64
|
}
|
|
62
65
|
o(N, "onJump");
|
|
63
66
|
function g(e) {
|
|
64
|
-
const { key:
|
|
65
|
-
|
|
67
|
+
const { key: i } = e;
|
|
68
|
+
f(i), a("defineSubClick", e);
|
|
66
69
|
}
|
|
67
70
|
o(g, "defineSubClickFunc");
|
|
68
71
|
function D(e) {
|
|
69
|
-
const { key:
|
|
70
|
-
|
|
72
|
+
const { key: i } = e;
|
|
73
|
+
f(i), a("defineChildClick", e);
|
|
71
74
|
}
|
|
72
75
|
o(D, "defineChildClickFunc");
|
|
73
|
-
function
|
|
76
|
+
function f(e) {
|
|
74
77
|
if (n.value) {
|
|
75
|
-
let
|
|
76
|
-
const
|
|
77
|
-
|
|
78
|
-
Array.from(s.classList).includes(
|
|
79
|
-
}),
|
|
80
|
-
Array.from(s.classList).includes(
|
|
78
|
+
let i = !1;
|
|
79
|
+
const d = n.value.$el.querySelectorAll(".el-sub-menu"), t = n.value.$el.querySelectorAll(".el-menu-item"), p = "is-sub-active", C = "is-active";
|
|
80
|
+
t.forEach((s) => {
|
|
81
|
+
Array.from(s.classList).includes(C) && s.classList.remove(C), e === s.dataset.index && (i = !0, s.classList.add(C));
|
|
82
|
+
}), d.forEach((s) => {
|
|
83
|
+
Array.from(s.classList).includes(p) && s.classList.remove(p), !i && e === s.dataset.index && s.classList.add(p);
|
|
81
84
|
});
|
|
82
85
|
}
|
|
83
86
|
}
|
|
84
|
-
return o(
|
|
85
|
-
y.value = !0,
|
|
86
|
-
}),
|
|
87
|
+
return o(f, "updateActiveClass"), z(() => {
|
|
88
|
+
y.value = !0, m();
|
|
89
|
+
}), c({
|
|
87
90
|
lsComMenuRef: n
|
|
88
|
-
}), (e,
|
|
89
|
-
const
|
|
90
|
-
return
|
|
91
|
+
}), (e, i) => {
|
|
92
|
+
const d = V;
|
|
93
|
+
return h(), L(d, I({
|
|
91
94
|
ref_key: "lsComMenuRef",
|
|
92
95
|
ref: n
|
|
93
96
|
}, e.$attrs, {
|
|
94
|
-
class:
|
|
95
|
-
"default-active":
|
|
97
|
+
class: b(w),
|
|
98
|
+
"default-active": b(S)
|
|
96
99
|
}), {
|
|
97
|
-
default:
|
|
98
|
-
(
|
|
99
|
-
key:
|
|
100
|
-
item:
|
|
100
|
+
default: A(() => [
|
|
101
|
+
(h(!0), K(R, null, T(e.menuConfigList, (t) => (h(), L(Q, {
|
|
102
|
+
key: t.key,
|
|
103
|
+
item: t,
|
|
101
104
|
"permission-list": e.permissionList,
|
|
102
105
|
"need-permission": e.needPermission,
|
|
103
106
|
"is-define-click": e.isDefineClick,
|
|
@@ -106,8 +109,8 @@ const U = b({
|
|
|
106
109
|
onDefineSubClick: g,
|
|
107
110
|
onDefineChildClick: D
|
|
108
111
|
}, {
|
|
109
|
-
[
|
|
110
|
-
|
|
112
|
+
[t.iconSlot]: A(() => [
|
|
113
|
+
H(e.$slots, t.iconSlot, {}, void 0, !0)
|
|
111
114
|
]),
|
|
112
115
|
_: 2
|
|
113
116
|
}, 1032, ["item", "permission-list", "need-permission", "is-define-click", "show-tooltip"]))), 128))
|
|
@@ -118,5 +121,5 @@ const U = b({
|
|
|
118
121
|
}
|
|
119
122
|
});
|
|
120
123
|
export {
|
|
121
|
-
|
|
124
|
+
ae as default
|
|
122
125
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var B=Object.defineProperty;var o=(r,m)=>B(r,"name",{value:m,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),p=,/* empty css */g=,/* empty css */f=,/* empty css */v=,/* empty css */E=,/* empty css */k=,/* empty css */M={class:"menu-title"},q={key:1,class:"menu-title"},D=e.defineComponent({name:"LSMenuItem"}),N=e.defineComponent({...D,props:f.lsMenuItemProps,emits:f.lsEmitNames,setup(r,{emit:m}){const{jumpRouteCom:C}=v.default(),l=m,u=r,y=e.inject(E.lsMenuKey),S=o((i,n)=>{if(u.isDefineClick)c(n);else{const{link:s,defJump:d}=n||{};d?l("onJump",n):s?window.open(s,"_blank"):C(n)}},"jumpRoute");function h(i){l("onJump",i)}o(h,"onJump");function a(i){u.isDefineClick&&l("defineSubClick",i)}o(a,"defineSubClickFunc");function c(i){u.isDefineClick&&l("defineChildClick",i)}return o(c,"defineChildClickFunc"),(i,n)=>{const s=k.ElMenuItem,d=e.resolveComponent("MenuItem",!0),w=k.ElSubMenu;return!i.needPermission||i.permissionList.includes(i.item.pCode)?(e.openBlock(),e.createElementBlock(e.Fragment,{key:0},[!i.item.children||i.item.leaf?(e.openBlock(),e.createElementBlock("div",{key:0,onClick:n[1]||(n[1]=e.withModifiers(()=>{},["stop"]))},[e.createVNode(s,{index:i.item.key,"data-index":i.item.key,onClick:n[0]||(n[0]=t=>S(i.item.key,i.item))},{title:e.withCtx(()=>{var t;return[i.showTooltip?(e.openBlock(),e.createBlock(g.default,{key:0,content:i.item.title,placement:"right","font-size":(t=e.unref(y))==null?void 0:t.fontSize},{default:e.withCtx(()=>[e.createElementVNode("span",M,[e.createElementVNode("p",null,e.toDisplayString(i.item.title),1)])]),_:1},8,["content","font-size"])):(e.openBlock(),e.createElementBlock("span",q,[e.createElementVNode("p",null,e.toDisplayString(i.item.title),1)]))]}),default:e.withCtx(()=>[e.createVNode(p.default,e.normalizeProps(e.guardReactiveProps(i.item.iconConfig)),e.createSlots({_:2},[i.item.iconSlot?{name:"default",fn:e.withCtx(()=>[e.renderSlot(i.$slots,i.item.iconSlot)]),key:"0"}:void 0]),1040)]),_:3},8,["index","data-index"])])):(e.openBlock(),e.createBlock(w,{key:1,index:i.item.key,"data-index":i.item.key,onClick:n[2]||(n[2]=e.withModifiers(t=>a(i.item),["stop"]))},{title:e.withCtx(()=>[e.createVNode(p.default,e.normalizeProps(e.guardReactiveProps(i.item.iconConfig)),e.createSlots({_:2},[i.item.iconSlot?{name:"default",fn:e.withCtx(()=>[e.renderSlot(i.$slots,i.item.iconSlot)]),key:"0"}:void 0]),1040),e.createElementVNode("span",null,e.toDisplayString(i.item.title),1)]),default:e.withCtx(()=>[(e.openBlock(!0),e.createElementBlock(e.Fragment,null,e.renderList(i.item.children,t=>(e.openBlock(),e.createBlock(d,{key:t.key,item:t,"permission-list":i.permissionList,"need-permission":i.needPermission,"is-define-click":i.isDefineClick,"show-tooltip":i.showTooltip,onOnJump:h,onDefineSubClick:a,onDefineChildClick:c},null,8,["item","permission-list","need-permission","is-define-click","show-tooltip"]))),128))]),_:3},8,["index","data-index"]))],64)):e.createCommentVNode("",!0)}}});exports.default=N;
|
|
@@ -1,77 +1,82 @@
|
|
|
1
1
|
var N = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var s = (u, d) => N(u, "name", { value: d, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { defineComponent as I,
|
|
6
|
+
import { defineComponent as I, inject as R, resolveComponent as $, openBlock as o, createElementBlock as r, Fragment as h, withModifiers as w, createVNode as k, withCtx as t, createBlock as c, unref as j, createElementVNode as p, toDisplayString as C, normalizeProps as M, guardReactiveProps as v, createSlots as D, renderSlot as b, renderList as B, createCommentVNode as F } from "vue";
|
|
7
7
|
import g from "../../icon/Index.vue/index.js";
|
|
8
|
-
import
|
|
9
|
-
import { lsMenuItemProps as
|
|
10
|
-
import
|
|
11
|
-
import {
|
|
12
|
-
|
|
8
|
+
import T from "../../tooltip/Index.vue/index.js";
|
|
9
|
+
import { lsMenuItemProps as V, lsEmitNames as H } from "../types/index.js";
|
|
10
|
+
import K from "../../_hooks/useRouterHook/index.js";
|
|
11
|
+
import { lsMenuKey as O } from "../../_constants/token/index.js";
|
|
12
|
+
import { ElMenuItem as q, ElSubMenu as A } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/menu/index/index.js";
|
|
13
|
+
const G = { class: "menu-title" }, Q = {
|
|
13
14
|
key: 1,
|
|
14
15
|
class: "menu-title"
|
|
15
|
-
},
|
|
16
|
+
}, U = I({
|
|
16
17
|
name: "LSMenuItem"
|
|
17
|
-
}),
|
|
18
|
-
...
|
|
19
|
-
props:
|
|
20
|
-
emits:
|
|
18
|
+
}), se = /* @__PURE__ */ I({
|
|
19
|
+
...U,
|
|
20
|
+
props: V,
|
|
21
|
+
emits: H,
|
|
21
22
|
setup(u, { emit: d }) {
|
|
22
|
-
const { jumpRouteCom: L } =
|
|
23
|
+
const { jumpRouteCom: L } = K(), m = d, f = u, P = R(O), E = /* @__PURE__ */ s((e, i) => {
|
|
23
24
|
if (f.isDefineClick)
|
|
24
25
|
S(i);
|
|
25
26
|
else {
|
|
26
|
-
const { link:
|
|
27
|
-
a ?
|
|
27
|
+
const { link: l, defJump: a } = i || {};
|
|
28
|
+
a ? m("onJump", i) : l ? window.open(l, "_blank") : L(i);
|
|
28
29
|
}
|
|
29
30
|
}, "jumpRoute");
|
|
30
31
|
function J(e) {
|
|
31
|
-
|
|
32
|
+
m("onJump", e);
|
|
32
33
|
}
|
|
33
|
-
|
|
34
|
+
s(J, "onJump");
|
|
34
35
|
function y(e) {
|
|
35
|
-
f.isDefineClick &&
|
|
36
|
+
f.isDefineClick && m("defineSubClick", e);
|
|
36
37
|
}
|
|
37
|
-
|
|
38
|
+
s(y, "defineSubClickFunc");
|
|
38
39
|
function S(e) {
|
|
39
|
-
f.isDefineClick &&
|
|
40
|
+
f.isDefineClick && m("defineChildClick", e);
|
|
40
41
|
}
|
|
41
|
-
return
|
|
42
|
-
const
|
|
43
|
-
return !e.needPermission || e.permissionList.includes(e.item.pCode) ? (
|
|
44
|
-
!e.item.children || e.item.leaf ? (
|
|
42
|
+
return s(S, "defineChildClickFunc"), (e, i) => {
|
|
43
|
+
const l = q, a = $("MenuItem", !0), z = A;
|
|
44
|
+
return !e.needPermission || e.permissionList.includes(e.item.pCode) ? (o(), r(h, { key: 0 }, [
|
|
45
|
+
!e.item.children || e.item.leaf ? (o(), r("div", {
|
|
45
46
|
key: 0,
|
|
46
47
|
onClick: i[1] || (i[1] = w(() => {
|
|
47
48
|
}, ["stop"]))
|
|
48
49
|
}, [
|
|
49
|
-
k(
|
|
50
|
+
k(l, {
|
|
50
51
|
index: e.item.key,
|
|
51
52
|
"data-index": e.item.key,
|
|
52
|
-
onClick: i[0] || (i[0] = (
|
|
53
|
+
onClick: i[0] || (i[0] = (n) => E(e.item.key, e.item))
|
|
53
54
|
}, {
|
|
54
|
-
title:
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
55
|
+
title: t(() => {
|
|
56
|
+
var n;
|
|
57
|
+
return [
|
|
58
|
+
e.showTooltip ? (o(), c(T, {
|
|
59
|
+
key: 0,
|
|
60
|
+
content: e.item.title,
|
|
61
|
+
placement: "right",
|
|
62
|
+
"font-size": (n = j(P)) == null ? void 0 : n.fontSize
|
|
63
|
+
}, {
|
|
64
|
+
default: t(() => [
|
|
65
|
+
p("span", G, [
|
|
66
|
+
p("p", null, C(e.item.title), 1)
|
|
67
|
+
])
|
|
68
|
+
]),
|
|
69
|
+
_: 1
|
|
70
|
+
}, 8, ["content", "font-size"])) : (o(), r("span", Q, [
|
|
71
|
+
p("p", null, C(e.item.title), 1)
|
|
72
|
+
]))
|
|
73
|
+
];
|
|
74
|
+
}),
|
|
75
|
+
default: t(() => [
|
|
76
|
+
k(g, M(v(e.item.iconConfig)), D({ _: 2 }, [
|
|
72
77
|
e.item.iconSlot ? {
|
|
73
78
|
name: "default",
|
|
74
|
-
fn:
|
|
79
|
+
fn: t(() => [
|
|
75
80
|
b(e.$slots, e.item.iconSlot)
|
|
76
81
|
]),
|
|
77
82
|
key: "0"
|
|
@@ -80,28 +85,28 @@ const O = { class: "menu-title" }, q = {
|
|
|
80
85
|
]),
|
|
81
86
|
_: 3
|
|
82
87
|
}, 8, ["index", "data-index"])
|
|
83
|
-
])) : (
|
|
88
|
+
])) : (o(), c(z, {
|
|
84
89
|
key: 1,
|
|
85
90
|
index: e.item.key,
|
|
86
91
|
"data-index": e.item.key,
|
|
87
|
-
onClick: i[2] || (i[2] = w((
|
|
92
|
+
onClick: i[2] || (i[2] = w((n) => y(e.item), ["stop"]))
|
|
88
93
|
}, {
|
|
89
|
-
title:
|
|
90
|
-
k(g, v(
|
|
94
|
+
title: t(() => [
|
|
95
|
+
k(g, M(v(e.item.iconConfig)), D({ _: 2 }, [
|
|
91
96
|
e.item.iconSlot ? {
|
|
92
97
|
name: "default",
|
|
93
|
-
fn:
|
|
98
|
+
fn: t(() => [
|
|
94
99
|
b(e.$slots, e.item.iconSlot)
|
|
95
100
|
]),
|
|
96
101
|
key: "0"
|
|
97
102
|
} : void 0
|
|
98
103
|
]), 1040),
|
|
99
|
-
p("span", null,
|
|
104
|
+
p("span", null, C(e.item.title), 1)
|
|
100
105
|
]),
|
|
101
|
-
default:
|
|
102
|
-
(
|
|
103
|
-
key:
|
|
104
|
-
item:
|
|
106
|
+
default: t(() => [
|
|
107
|
+
(o(!0), r(h, null, B(e.item.children, (n) => (o(), c(a, {
|
|
108
|
+
key: n.key,
|
|
109
|
+
item: n,
|
|
105
110
|
"permission-list": e.permissionList,
|
|
106
111
|
"need-permission": e.needPermission,
|
|
107
112
|
"is-define-click": e.isDefineClick,
|
|
@@ -113,10 +118,10 @@ const O = { class: "menu-title" }, q = {
|
|
|
113
118
|
]),
|
|
114
119
|
_: 3
|
|
115
120
|
}, 8, ["index", "data-index"]))
|
|
116
|
-
], 64)) :
|
|
121
|
+
], 64)) : F("", !0);
|
|
117
122
|
};
|
|
118
123
|
}
|
|
119
124
|
});
|
|
120
125
|
export {
|
|
121
|
-
|
|
126
|
+
se as default
|
|
122
127
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var s=Object.defineProperty;var e=(o,l)=>s(o,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_utils/runtime/index.cjs"),i=["onJump","defineSubClick","defineChildClick"],r=t.buildProps({menuConfigList:{type:Array,default:e(()=>[],"default")},needPermission:{type:Boolean,default:!1},permissionList:{type:Array,default:e(()=>[],"default")},hoverColor:{type:String,default:""},isDefineClick:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0}}),n=t.buildProps({needPermission:{type:Boolean,default:!0},permissionList:{type:Array,default:e(()=>[],"default")},item:{type:Object,required:!0,default:e(()=>({}),"default")},isDefineClick:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}});exports.lsEmitNames=i;exports.lsMenuItemProps=n;exports.lsMenuProps=r;
|
|
1
|
+
"use strict";var s=Object.defineProperty;var e=(o,l)=>s(o,"name",{value:l,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("../../_utils/runtime/index.cjs"),i=["onJump","defineSubClick","defineChildClick"],r=t.buildProps({menuConfigList:{type:Array,default:e(()=>[],"default")},needPermission:{type:Boolean,default:!1},permissionList:{type:Array,default:e(()=>[],"default")},hoverColor:{type:String,default:""},isDefineClick:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!0},fontSize:{type:Number,default:14}}),n=t.buildProps({needPermission:{type:Boolean,default:!0},permissionList:{type:Array,default:e(()=>[],"default")},item:{type:Object,required:!0,default:e(()=>({}),"default")},isDefineClick:{type:Boolean,default:!1},showTooltip:{type:Boolean,default:!1}});exports.lsEmitNames=i;exports.lsMenuItemProps=n;exports.lsMenuProps=r;
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=;/* empty css */;/* empty css */const t=,/* empty css */u=t.default(e.default,[["__scopeId","data-v-610acd0b"]]);exports.default=u;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import o from "./index2.js";
|
|
2
2
|
/* empty css */
|
|
3
3
|
import t from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
|
|
4
|
-
const
|
|
4
|
+
const a = /* @__PURE__ */ t(o, [["__scopeId", "data-v-610acd0b"]]);
|
|
5
5
|
export {
|
|
6
|
-
|
|
6
|
+
a as default
|
|
7
7
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
1
|
+
"use strict";var v=Object.defineProperty;var u=(r,o)=>v(r,"name",{value:o,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */const e=require("vue"),y=,/* empty css */S=,/* empty css */a=,/* empty css */w=,/* empty css */_=e.defineComponent({name:"LSTooltip"}),C=e.defineComponent({..._,props:S.lsTooltipProps,setup(r){const o=r,p=y.useNamespace("tooltip").b(),s=e.ref(!1),i=e.ref(),d=e.useAttrs(),c=e.computed(()=>{const t=o.width;let n="100%";return(t.endsWith("%")||t.endsWith("px"))&&!a.isEmpty(parseInt(t))?n=t:a.isEmpty(Number(t))||(n=`${t}px`),{width:n}}),f=e.computed(()=>d.content||""),m=e.computed(()=>{const t=o.lineClamp>1?Object.assign({height:"auto"},c.value):{width:"auto",height:0},n=o.fontSize;n&&(t.fontSize=`${n}px`);const l=o.lineHeight;return l&&(t.lineHeight=`${l}px`),t});function h(){g()}u(h,"onMouseEnter");async function g(){if(await e.nextTick(),i.value){const t=i.value.getBoundingClientRect(),n=i.value.querySelector(".temp-content").getBoundingClientRect();o.lineClamp<=1?n.width>t.width?s.value=!0:s.value=!1:n.height>t.height?s.value=!0:s.value=!1}}return u(g,"updateTooltip"),(t,n)=>{const l=w.ElTooltip;return e.openBlock(),e.createElementBlock("div",{ref_key:"lsTooltipRef",ref:i,class:e.normalizeClass(e.unref(p)),style:e.normalizeStyle(e.unref(c)),onMouseenter:h},[e.createElementVNode("div",{class:"temp-content",style:e.normalizeStyle(e.unref(m))},e.toDisplayString(e.unref(f)),5),e.createVNode(l,e.mergeProps({disabled:!e.unref(s)},t.$attrs),{default:e.withCtx(()=>[e.renderSlot(t.$slots,"default",{},void 0,!0)]),content:e.withCtx(()=>[e.renderSlot(t.$slots,"content",{},void 0,!0)]),_:3},16,["disabled"])],38)}}});exports.default=C;
|