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