@lingshugroup/web-plus 1.7.4 → 1.7.6
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/layout/Index.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/layout/Index.vue/index.js +2 -2
- package/lib/packages/ls-components/components/list/List.vue/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index.js +2 -2
- package/lib/packages/ls-components/components/list/List.vue/index2.cjs +1 -1
- package/lib/packages/ls-components/components/list/List.vue/index2.js +73 -73
- package/lib/packages/ls-components/components/list/List.vue/index2.js.br +0 -0
- package/lib/packages/ls-components/components/list/List.vue/index2.js.gz +0 -0
- package/lib/packages/ls-components/components/list/types/index.cjs +1 -1
- package/lib/packages/ls-components/components/list/types/index.js +5 -0
- package/lib/packages/ls-components/components/list/types/index.js.br +0 -0
- package/lib/packages/ls-components/components/list/types/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 +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/list/List.vue.d.ts +3 -0
- package/lib/types/components/list/index.d.ts +6 -0
- package/lib/types/components/list/types.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
|
@@ -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;
|
|
@@ -1,51 +1,77 @@
|
|
|
1
1
|
var T = Object.defineProperty;
|
|
2
|
-
var
|
|
2
|
+
var a = (r, o) => T(r, "name", { value: o, configurable: !0 });
|
|
3
3
|
/* empty css */
|
|
4
4
|
/* empty css */
|
|
5
5
|
/* empty css */
|
|
6
|
-
import { defineComponent as
|
|
7
|
-
import { useNamespace as
|
|
8
|
-
import {
|
|
9
|
-
|
|
6
|
+
import { defineComponent as g, ref as u, useAttrs as $, computed as c, openBlock as b, createElementBlock as x, normalizeClass as z, unref as s, normalizeStyle as m, createElementVNode as E, toDisplayString as k, createVNode as B, mergeProps as N, withCtx as f, renderSlot as d, nextTick as R } from "vue";
|
|
7
|
+
import { useNamespace as W } from "../../_hooks/useNamespace/index.js";
|
|
8
|
+
import { lsTooltipProps as H } from "../types/index.js";
|
|
9
|
+
import { isEmpty as h } from "../../_utils/utils/index.js";
|
|
10
|
+
import { ElTooltip as M } from "../../../../../node_modules/.pnpm/element-plus@2.8.1_vue@3.5.13_typescript@5.5.4_/node_modules/element-plus/es/components/tooltip/index/index.js";
|
|
11
|
+
const P = g({
|
|
10
12
|
name: "LSTooltip"
|
|
11
|
-
}),
|
|
12
|
-
...
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
13
|
+
}), J = /* @__PURE__ */ g({
|
|
14
|
+
...P,
|
|
15
|
+
props: H,
|
|
16
|
+
setup(r) {
|
|
17
|
+
const o = r, v = W("tooltip").b(), n = u(!1), i = u(), w = $(), p = c(() => {
|
|
18
|
+
const t = o.width;
|
|
19
|
+
let e = "100%";
|
|
20
|
+
return (t.endsWith("%") || t.endsWith("px")) && !h(parseInt(t)) ? e = t : h(Number(t)) || (e = `${t}px`), {
|
|
21
|
+
width: e
|
|
22
|
+
};
|
|
23
|
+
}), y = c(() => w.content || ""), _ = c(() => {
|
|
24
|
+
const t = o.lineClamp > 1 ? Object.assign(
|
|
25
|
+
{
|
|
26
|
+
height: "auto"
|
|
27
|
+
},
|
|
28
|
+
p.value
|
|
29
|
+
) : {
|
|
30
|
+
width: "auto",
|
|
31
|
+
height: 0
|
|
32
|
+
}, e = o.fontSize;
|
|
33
|
+
e && (t.fontSize = `${e}px`);
|
|
34
|
+
const l = o.lineHeight;
|
|
35
|
+
return l && (t.lineHeight = `${l}px`), t;
|
|
36
|
+
});
|
|
37
|
+
function C() {
|
|
38
|
+
S();
|
|
17
39
|
}
|
|
18
|
-
|
|
19
|
-
async function
|
|
20
|
-
if (await
|
|
21
|
-
const t = e.value.getBoundingClientRect();
|
|
22
|
-
e.
|
|
40
|
+
a(C, "onMouseEnter");
|
|
41
|
+
async function S() {
|
|
42
|
+
if (await R(), i.value) {
|
|
43
|
+
const t = i.value.getBoundingClientRect(), e = i.value.querySelector(".temp-content").getBoundingClientRect();
|
|
44
|
+
o.lineClamp <= 1 ? e.width > t.width ? n.value = !0 : n.value = !1 : e.height > t.height ? n.value = !0 : n.value = !1;
|
|
23
45
|
}
|
|
24
46
|
}
|
|
25
|
-
return
|
|
26
|
-
const
|
|
27
|
-
return
|
|
47
|
+
return a(S, "updateTooltip"), (t, e) => {
|
|
48
|
+
const l = M;
|
|
49
|
+
return b(), x("div", {
|
|
28
50
|
ref_key: "lsTooltipRef",
|
|
29
|
-
ref:
|
|
30
|
-
class:
|
|
31
|
-
|
|
51
|
+
ref: i,
|
|
52
|
+
class: z(s(v)),
|
|
53
|
+
style: m(s(p)),
|
|
54
|
+
onMouseenter: C
|
|
32
55
|
}, [
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
56
|
+
E("div", {
|
|
57
|
+
class: "temp-content",
|
|
58
|
+
style: m(s(_))
|
|
59
|
+
}, k(s(y)), 5),
|
|
60
|
+
B(l, N({
|
|
61
|
+
disabled: !s(n)
|
|
36
62
|
}, t.$attrs), {
|
|
37
|
-
default:
|
|
38
|
-
|
|
63
|
+
default: f(() => [
|
|
64
|
+
d(t.$slots, "default", {}, void 0, !0)
|
|
39
65
|
]),
|
|
40
|
-
content:
|
|
41
|
-
|
|
66
|
+
content: f(() => [
|
|
67
|
+
d(t.$slots, "content", {}, void 0, !0)
|
|
42
68
|
]),
|
|
43
69
|
_: 3
|
|
44
70
|
}, 16, ["disabled"])
|
|
45
|
-
],
|
|
71
|
+
], 38);
|
|
46
72
|
};
|
|
47
73
|
}
|
|
48
74
|
});
|
|
49
75
|
export {
|
|
50
|
-
|
|
76
|
+
J as default
|
|
51
77
|
};
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("../../_utils/runtime/index.cjs"),t=e.buildProps({width:{type:[Number,String],default:"100%"},fontSize:{type:Number,default:null},lineClamp:{type:Number,default:1},lineHeight:{type:Number,default:null}});exports.lsTooltipProps=t;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { buildProps as e } from "../../_utils/runtime/index.js";
|
|
2
|
+
const l = e({
|
|
3
|
+
width: {
|
|
4
|
+
type: [Number, String],
|
|
5
|
+
default: "100%"
|
|
6
|
+
},
|
|
7
|
+
fontSize: {
|
|
8
|
+
type: Number,
|
|
9
|
+
default: null
|
|
10
|
+
},
|
|
11
|
+
lineClamp: {
|
|
12
|
+
type: Number,
|
|
13
|
+
default: 1
|
|
14
|
+
},
|
|
15
|
+
lineHeight: {
|
|
16
|
+
type: Number,
|
|
17
|
+
default: null
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
export {
|
|
21
|
+
l as lsTooltipProps
|
|
22
|
+
};
|
|
@@ -1428,6 +1428,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
1428
1428
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
1429
1429
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
1430
1430
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1431
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1431
1432
|
}>, {
|
|
1432
1433
|
loadData: (showLoading?: boolean, firstLoad?: boolean) => void;
|
|
1433
1434
|
handleReset: () => void;
|
|
@@ -1584,6 +1585,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
1584
1585
|
readonly tableDelText: EpPropFinalized<StringConstructor, unknown, unknown, "删除", boolean>;
|
|
1585
1586
|
readonly skeletonAttrs: EpPropFinalized<ObjectConstructor, unknown, unknown, () => void, boolean>;
|
|
1586
1587
|
readonly showSkeleton: EpPropFinalized<BooleanConstructor, unknown, unknown, true, boolean>;
|
|
1588
|
+
readonly popconfirmTxt: EpPropFinalized<StringConstructor, unknown, unknown, "", boolean>;
|
|
1587
1589
|
}>> & Readonly<{
|
|
1588
1590
|
onSubmitForm?: ((formData: any) => any) | undefined;
|
|
1589
1591
|
onHandleLoading?: ((loading: boolean) => any) | undefined;
|
|
@@ -1626,6 +1628,7 @@ declare const __VLS_component: DefineComponent<globalThis.ExtractPropTypes<{
|
|
|
1626
1628
|
readonly tableDelText: string;
|
|
1627
1629
|
readonly skeletonAttrs: Record<string, any>;
|
|
1628
1630
|
readonly showSkeleton: EpPropMergeType<BooleanConstructor, unknown, unknown>;
|
|
1631
|
+
readonly popconfirmTxt: string;
|
|
1629
1632
|
}, {}, {}, {}, string, ComponentProvideOptions, true, {}, any>;
|
|
1630
1633
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
1631
1634
|
export default _default;
|