@lingshugroup/web-plus 1.7.3 → 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/index.cjs +1 -1
- package/lib/index/index.js +20 -18
- package/lib/index/index.js.br +0 -0
- package/lib/index/index.js.gz +0 -0
- 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/index/index.cjs +1 -1
- package/lib/packages/ls-components/components/index/index.js +21 -19
- package/lib/packages/ls-components/components/index/index.js.br +0 -0
- package/lib/packages/ls-components/components/index/index.js.gz +0 -0
- 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 +63 -59
- 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 +76 -53
- 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 +16 -4
- 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 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index.js +7 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.cjs +1 -0
- package/lib/packages/ls-components/components/tooltip/Index.vue/index2.js +77 -0
- 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/tooltip/index.cjs +1 -0
- package/lib/tooltip/index.js +12 -0
- package/lib/types/components/_constants/token.d.ts +1 -0
- package/lib/types/components/menu/Index.vue.d.ts +6 -0
- package/lib/types/components/menu/MenuItem.vue.d.ts +3 -0
- package/lib/types/components/menu/index.d.ts +12 -0
- package/lib/types/components/menu/types.d.ts +3 -0
- package/lib/types/components/tooltip/Index.vue.d.ts +37 -0
- package/lib/types/components/tooltip/index.d.ts +6 -0
- package/lib/types/components/tooltip/types.d.ts +7 -0
- package/package.json +5 -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";var l=Object.defineProperty;var o=(t,r)=>l(t,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("@element-plus/icons-vue"),i=require("../../../../button/index.cjs"),a=require("../../../../descriptions/index.cjs"),c=require("../../../../form/index.cjs"),d=require("../../../../table/index.cjs"),f=require("../../../../upload/index.cjs"),S=require("../../../../preview/index.cjs"),L=require("../../../../menu/index.cjs"),q=require("../../../../icon/index.cjs"),m=require("../../../../confirm/index.cjs"),p=require("../../../../chart/index.cjs"),b=require("../../../../breadcrumb/index.cjs"),v=require("../../../../bellMessage/index.cjs"),g=require("../../../../live/index.cjs"),w=require("../../../../tree/index.cjs"),P=require("../../../../print/index.cjs"),y=require("../../../../containerBox/index.cjs"),B=require("../../../../backTop/index.cjs"),_=require("../../../../map/index.cjs"),O=require("../../../../editor/index.cjs"),j=require("../../../../dialog/index.cjs"),x=require("../../../../layout/index.cjs"),M=require("../../../../list/index.cjs"),
|
|
1
|
+
"use strict";var l=Object.defineProperty;var o=(t,r)=>l(t,"name",{value:r,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const s=require("@element-plus/icons-vue"),i=require("../../../../button/index.cjs"),a=require("../../../../descriptions/index.cjs"),c=require("../../../../form/index.cjs"),d=require("../../../../table/index.cjs"),f=require("../../../../upload/index.cjs"),S=require("../../../../preview/index.cjs"),L=require("../../../../menu/index.cjs"),q=require("../../../../icon/index.cjs"),m=require("../../../../confirm/index.cjs"),p=require("../../../../chart/index.cjs"),b=require("../../../../breadcrumb/index.cjs"),v=require("../../../../bellMessage/index.cjs"),g=require("../../../../live/index.cjs"),w=require("../../../../tree/index.cjs"),P=require("../../../../print/index.cjs"),y=require("../../../../containerBox/index.cjs"),B=require("../../../../backTop/index.cjs"),_=require("../../../../map/index.cjs"),O=require("../../../../editor/index.cjs"),j=require("../../../../dialog/index.cjs"),x=require("../../../../layout/index.cjs"),M=require("../../../../list/index.cjs"),T=require("../../../../preview_image/index.cjs"),k=require("../../../../preview_docx/index.cjs"),D=require("../../../../preview_pdf/index.cjs"),F=require("../../../../preview_xlsx/index.cjs"),I=require("../../../../downloadFile/index.cjs"),C=require("../../../../tooltip/index.cjs");function E(t){const r=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(t){for(const e in t)if(e!=="default"){const n=Object.getOwnPropertyDescriptor(t,e);Object.defineProperty(r,e,n.get?n:{enumerable:!0,get:o(()=>t[e],"get")})}}return r.default=t,Object.freeze(r)}o(E,"_interopNamespaceDefault");const h=E(s),u={LSButtonGroup:i.LSButtonGroup,LSButton:i.LSButton,LSDescriptions:a.default,LSUpload:f.default,LSPreview:S.default,LSForm:c.LSForm,LSFormItem:c.LSFormItem,LSTable:d.default,LSMenu:L.default,LSIcon:q.default,LSConfirm:m.default,LSChart:p.default,LSBreadcrumb:b.default,LSBellMessage:v.default,LSLive:g.default,LSTree:w.default,LSPrint:P.default,LSContainerBox:y.default,LSBackTop:B.default,LSMap:_.default,LSEditor:O.default,LSDialog:j.default,LSLayout:x.default,LSList:M.default,LSPreviewImage:T.default,LSPreviewDocx:k.default,LSPreviewPdf:D.default,LSPreviewXlsx:F.default,LSDownloadFile:I.default,LSTooltip:C.default},G=o(t=>{for(const[r,e]of Object.entries(h))t.component(r,e);for(const r of Object.keys(u)){const e=u[r];t.component(e==null?void 0:e.name,e)}},"install"),V={...u,install:G};exports.default=V;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var e = Object.defineProperty;
|
|
2
2
|
var i = (m, r) => e(m, "name", { value: r, configurable: !0 });
|
|
3
|
-
import * as
|
|
4
|
-
import { LSButtonGroup as
|
|
3
|
+
import * as p from "@element-plus/icons-vue";
|
|
4
|
+
import { LSButtonGroup as f, LSButton as L } from "../../../../button/index.js";
|
|
5
5
|
import S from "../../../../descriptions/index.js";
|
|
6
6
|
import { LSForm as n, LSFormItem as s } from "../../../../form/index.js";
|
|
7
7
|
import c from "../../../../table/index.js";
|
|
@@ -19,17 +19,18 @@ import x from "../../../../print/index.js";
|
|
|
19
19
|
import y from "../../../../containerBox/index.js";
|
|
20
20
|
import D from "../../../../backTop/index.js";
|
|
21
21
|
import I from "../../../../map/index.js";
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import
|
|
25
|
-
import
|
|
26
|
-
import
|
|
22
|
+
import T from "../../../../editor/index.js";
|
|
23
|
+
import g from "../../../../dialog/index.js";
|
|
24
|
+
import C from "../../../../layout/index.js";
|
|
25
|
+
import F from "../../../../list/index.js";
|
|
26
|
+
import M from "../../../../preview_image/index.js";
|
|
27
27
|
import j from "../../../../preview_docx/index.js";
|
|
28
28
|
import E from "../../../../preview_pdf/index.js";
|
|
29
29
|
import O from "../../../../preview_xlsx/index.js";
|
|
30
30
|
import h from "../../../../downloadFile/index.js";
|
|
31
|
+
import G from "../../../../tooltip/index.js";
|
|
31
32
|
const t = {
|
|
32
|
-
LSButtonGroup:
|
|
33
|
+
LSButtonGroup: f,
|
|
33
34
|
LSButton: L,
|
|
34
35
|
LSDescriptions: S,
|
|
35
36
|
LSUpload: a,
|
|
@@ -49,26 +50,27 @@ const t = {
|
|
|
49
50
|
LSContainerBox: y,
|
|
50
51
|
LSBackTop: D,
|
|
51
52
|
LSMap: I,
|
|
52
|
-
LSEditor:
|
|
53
|
-
LSDialog:
|
|
54
|
-
LSLayout:
|
|
55
|
-
LSList:
|
|
56
|
-
LSPreviewImage:
|
|
53
|
+
LSEditor: T,
|
|
54
|
+
LSDialog: g,
|
|
55
|
+
LSLayout: C,
|
|
56
|
+
LSList: F,
|
|
57
|
+
LSPreviewImage: M,
|
|
57
58
|
LSPreviewDocx: j,
|
|
58
59
|
LSPreviewPdf: E,
|
|
59
60
|
LSPreviewXlsx: O,
|
|
60
|
-
LSDownloadFile: h
|
|
61
|
-
|
|
62
|
-
|
|
61
|
+
LSDownloadFile: h,
|
|
62
|
+
LSTooltip: G
|
|
63
|
+
}, U = /* @__PURE__ */ i((m) => {
|
|
64
|
+
for (const [r, o] of Object.entries(p))
|
|
63
65
|
m.component(r, o);
|
|
64
66
|
for (const r of Object.keys(t)) {
|
|
65
67
|
const o = t[r];
|
|
66
68
|
m.component(o == null ? void 0 : o.name, o);
|
|
67
69
|
}
|
|
68
|
-
}, "install"),
|
|
70
|
+
}, "install"), ao = {
|
|
69
71
|
...t,
|
|
70
|
-
install:
|
|
72
|
+
install: U
|
|
71
73
|
};
|
|
72
74
|
export {
|
|
73
|
-
|
|
75
|
+
ao as default
|
|
74
76
|
};
|
|
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 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
|
|
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,115 +1,119 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var P = Object.defineProperty;
|
|
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
|
-
import { lsMenuProps as
|
|
10
|
-
import
|
|
11
|
-
import
|
|
12
|
-
import {
|
|
13
|
-
|
|
9
|
+
import { lsMenuProps as j, lsEmitNames as x } from "../types/index.js";
|
|
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
|
-
...
|
|
17
|
-
props:
|
|
18
|
-
emits:
|
|
19
|
-
setup(
|
|
16
|
+
}), ae = /* @__PURE__ */ M({
|
|
17
|
+
...W,
|
|
18
|
+
props: j,
|
|
19
|
+
emits: x,
|
|
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
|
-
),
|
|
43
|
-
() =>
|
|
45
|
+
), v(
|
|
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
|
|
53
|
-
if (!
|
|
55
|
+
function m() {
|
|
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
|
-
|
|
59
|
-
function
|
|
60
|
-
|
|
61
|
+
o(m, "initMenuSider");
|
|
62
|
+
function N(e) {
|
|
63
|
+
a("onJump", e);
|
|
61
64
|
}
|
|
62
|
-
|
|
63
|
-
function
|
|
65
|
+
o(N, "onJump");
|
|
66
|
+
function g(e) {
|
|
64
67
|
const { key: i } = e;
|
|
65
|
-
|
|
68
|
+
f(i), a("defineSubClick", e);
|
|
66
69
|
}
|
|
67
|
-
|
|
68
|
-
function
|
|
70
|
+
o(g, "defineSubClickFunc");
|
|
71
|
+
function D(e) {
|
|
69
72
|
const { key: i } = e;
|
|
70
|
-
|
|
73
|
+
f(i), a("defineChildClick", e);
|
|
71
74
|
}
|
|
72
|
-
|
|
73
|
-
function
|
|
74
|
-
if (
|
|
75
|
+
o(D, "defineChildClickFunc");
|
|
76
|
+
function f(e) {
|
|
77
|
+
if (n.value) {
|
|
75
78
|
let i = !1;
|
|
76
|
-
const
|
|
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";
|
|
77
80
|
t.forEach((s) => {
|
|
78
|
-
Array.from(s.classList).includes(
|
|
79
|
-
}),
|
|
80
|
-
Array.from(s.classList).includes(
|
|
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
|
|
85
|
-
|
|
86
|
-
}),
|
|
87
|
-
lsComMenuRef:
|
|
87
|
+
return o(f, "updateActiveClass"), z(() => {
|
|
88
|
+
y.value = !0, m();
|
|
89
|
+
}), c({
|
|
90
|
+
lsComMenuRef: n
|
|
88
91
|
}), (e, i) => {
|
|
89
|
-
const
|
|
90
|
-
return
|
|
92
|
+
const d = V;
|
|
93
|
+
return h(), L(d, I({
|
|
91
94
|
ref_key: "lsComMenuRef",
|
|
92
|
-
ref:
|
|
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
|
-
(
|
|
100
|
+
default: A(() => [
|
|
101
|
+
(h(!0), K(R, null, T(e.menuConfigList, (t) => (h(), L(Q, {
|
|
99
102
|
key: t.key,
|
|
100
103
|
item: t,
|
|
101
104
|
"permission-list": e.permissionList,
|
|
102
105
|
"need-permission": e.needPermission,
|
|
103
106
|
"is-define-click": e.isDefineClick,
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
+
"show-tooltip": e.showTooltip,
|
|
108
|
+
onOnJump: N,
|
|
109
|
+
onDefineSubClick: g,
|
|
110
|
+
onDefineChildClick: D
|
|
107
111
|
}, {
|
|
108
|
-
[t.iconSlot]:
|
|
109
|
-
|
|
112
|
+
[t.iconSlot]: A(() => [
|
|
113
|
+
H(e.$slots, t.iconSlot, {}, void 0, !0)
|
|
110
114
|
]),
|
|
111
115
|
_: 2
|
|
112
|
-
}, 1032, ["item", "permission-list", "need-permission", "is-define-click"]))), 128))
|
|
116
|
+
}, 1032, ["item", "permission-list", "need-permission", "is-define-click", "show-tooltip"]))), 128))
|
|
113
117
|
]),
|
|
114
118
|
_: 3
|
|
115
119
|
}, 16, ["class", "default-active"]);
|
|
@@ -117,5 +121,5 @@ const U = A({
|
|
|
117
121
|
}
|
|
118
122
|
});
|
|
119
123
|
export {
|
|
120
|
-
|
|
124
|
+
ae as default
|
|
121
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,61 +1,83 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var N = Object.defineProperty;
|
|
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
|
|
7
|
-
import
|
|
8
|
-
import
|
|
9
|
-
import
|
|
10
|
-
import
|
|
11
|
-
|
|
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
|
+
import g from "../../icon/Index.vue/index.js";
|
|
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 = {
|
|
14
|
+
key: 1,
|
|
15
|
+
class: "menu-title"
|
|
16
|
+
}, U = I({
|
|
12
17
|
name: "LSMenuItem"
|
|
13
|
-
}),
|
|
14
|
-
...
|
|
18
|
+
}), se = /* @__PURE__ */ I({
|
|
19
|
+
...U,
|
|
15
20
|
props: V,
|
|
16
|
-
emits:
|
|
17
|
-
setup(
|
|
18
|
-
const { jumpRouteCom: L } =
|
|
19
|
-
if (
|
|
20
|
-
|
|
21
|
+
emits: H,
|
|
22
|
+
setup(u, { emit: d }) {
|
|
23
|
+
const { jumpRouteCom: L } = K(), m = d, f = u, P = R(O), E = /* @__PURE__ */ s((e, i) => {
|
|
24
|
+
if (f.isDefineClick)
|
|
25
|
+
S(i);
|
|
21
26
|
else {
|
|
22
|
-
const { link: l, defJump:
|
|
23
|
-
|
|
27
|
+
const { link: l, defJump: a } = i || {};
|
|
28
|
+
a ? m("onJump", i) : l ? window.open(l, "_blank") : L(i);
|
|
24
29
|
}
|
|
25
30
|
}, "jumpRoute");
|
|
26
|
-
function
|
|
31
|
+
function J(e) {
|
|
27
32
|
m("onJump", e);
|
|
28
33
|
}
|
|
29
|
-
|
|
30
|
-
function
|
|
31
|
-
|
|
34
|
+
s(J, "onJump");
|
|
35
|
+
function y(e) {
|
|
36
|
+
f.isDefineClick && m("defineSubClick", e);
|
|
32
37
|
}
|
|
33
|
-
|
|
34
|
-
function
|
|
35
|
-
|
|
38
|
+
s(y, "defineSubClickFunc");
|
|
39
|
+
function S(e) {
|
|
40
|
+
f.isDefineClick && m("defineChildClick", e);
|
|
36
41
|
}
|
|
37
|
-
return
|
|
38
|
-
const l =
|
|
39
|
-
return !e.needPermission || e.permissionList.includes(e.item.pCode) ? (
|
|
40
|
-
!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", {
|
|
41
46
|
key: 0,
|
|
42
|
-
onClick: i[1] || (i[1] =
|
|
47
|
+
onClick: i[1] || (i[1] = w(() => {
|
|
43
48
|
}, ["stop"]))
|
|
44
49
|
}, [
|
|
45
50
|
k(l, {
|
|
46
51
|
index: e.item.key,
|
|
47
52
|
"data-index": e.item.key,
|
|
48
|
-
onClick: i[0] || (i[0] = (
|
|
53
|
+
onClick: i[0] || (i[0] = (n) => E(e.item.key, e.item))
|
|
49
54
|
}, {
|
|
50
|
-
title:
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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 }, [
|
|
55
77
|
e.item.iconSlot ? {
|
|
56
78
|
name: "default",
|
|
57
|
-
fn:
|
|
58
|
-
|
|
79
|
+
fn: t(() => [
|
|
80
|
+
b(e.$slots, e.item.iconSlot)
|
|
59
81
|
]),
|
|
60
82
|
key: "0"
|
|
61
83
|
} : void 0
|
|
@@ -63,35 +85,36 @@ const O = J({
|
|
|
63
85
|
]),
|
|
64
86
|
_: 3
|
|
65
87
|
}, 8, ["index", "data-index"])
|
|
66
|
-
])) : (
|
|
88
|
+
])) : (o(), c(z, {
|
|
67
89
|
key: 1,
|
|
68
90
|
index: e.item.key,
|
|
69
91
|
"data-index": e.item.key,
|
|
70
|
-
onClick: i[2] || (i[2] =
|
|
92
|
+
onClick: i[2] || (i[2] = w((n) => y(e.item), ["stop"]))
|
|
71
93
|
}, {
|
|
72
|
-
title:
|
|
73
|
-
k(
|
|
94
|
+
title: t(() => [
|
|
95
|
+
k(g, M(v(e.item.iconConfig)), D({ _: 2 }, [
|
|
74
96
|
e.item.iconSlot ? {
|
|
75
97
|
name: "default",
|
|
76
|
-
fn:
|
|
77
|
-
|
|
98
|
+
fn: t(() => [
|
|
99
|
+
b(e.$slots, e.item.iconSlot)
|
|
78
100
|
]),
|
|
79
101
|
key: "0"
|
|
80
102
|
} : void 0
|
|
81
103
|
]), 1040),
|
|
82
|
-
|
|
104
|
+
p("span", null, C(e.item.title), 1)
|
|
83
105
|
]),
|
|
84
|
-
default:
|
|
85
|
-
(
|
|
86
|
-
key:
|
|
87
|
-
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,
|
|
88
110
|
"permission-list": e.permissionList,
|
|
89
111
|
"need-permission": e.needPermission,
|
|
90
112
|
"is-define-click": e.isDefineClick,
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
113
|
+
"show-tooltip": e.showTooltip,
|
|
114
|
+
onOnJump: J,
|
|
115
|
+
onDefineSubClick: y,
|
|
116
|
+
onDefineChildClick: S
|
|
117
|
+
}, null, 8, ["item", "permission-list", "need-permission", "is-define-click", "show-tooltip"]))), 128))
|
|
95
118
|
]),
|
|
96
119
|
_: 3
|
|
97
120
|
}, 8, ["index", "data-index"]))
|
|
@@ -100,5 +123,5 @@ const O = J({
|
|
|
100
123
|
}
|
|
101
124
|
});
|
|
102
125
|
export {
|
|
103
|
-
|
|
126
|
+
se as default
|
|
104
127
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var
|
|
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;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
var
|
|
2
|
-
var e = (
|
|
1
|
+
var i = Object.defineProperty;
|
|
2
|
+
var e = (o, l) => i(o, "name", { value: l, configurable: !0 });
|
|
3
3
|
import { buildProps as t } from "../../_utils/runtime/index.js";
|
|
4
|
-
const
|
|
4
|
+
const r = ["onJump", "defineSubClick", "defineChildClick"], a = t({
|
|
5
5
|
menuConfigList: {
|
|
6
6
|
type: Array,
|
|
7
7
|
default: /* @__PURE__ */ e(() => [], "default")
|
|
@@ -21,6 +21,14 @@ const n = ["onJump", "defineSubClick", "defineChildClick"], a = t({
|
|
|
21
21
|
isDefineClick: {
|
|
22
22
|
type: Boolean,
|
|
23
23
|
default: !1
|
|
24
|
+
},
|
|
25
|
+
showTooltip: {
|
|
26
|
+
type: Boolean,
|
|
27
|
+
default: !0
|
|
28
|
+
},
|
|
29
|
+
fontSize: {
|
|
30
|
+
type: Number,
|
|
31
|
+
default: 14
|
|
24
32
|
}
|
|
25
33
|
}), u = t({
|
|
26
34
|
needPermission: {
|
|
@@ -39,10 +47,14 @@ const n = ["onJump", "defineSubClick", "defineChildClick"], a = t({
|
|
|
39
47
|
isDefineClick: {
|
|
40
48
|
type: Boolean,
|
|
41
49
|
default: !1
|
|
50
|
+
},
|
|
51
|
+
showTooltip: {
|
|
52
|
+
type: Boolean,
|
|
53
|
+
default: !1
|
|
42
54
|
}
|
|
43
55
|
});
|
|
44
56
|
export {
|
|
45
|
-
|
|
57
|
+
r as lsEmitNames,
|
|
46
58
|
u as lsMenuItemProps,
|
|
47
59
|
a as lsMenuProps
|
|
48
60
|
};
|
|
Binary file
|