@lingshugroup/web-plus 1.8.9 → 1.8.10

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.br CHANGED
Binary file
package/lib/index.css.gz CHANGED
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-96110588"]]);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-b61d25aa"]]);exports.default=u;
@@ -1,7 +1,7 @@
1
1
  import o from "./index2.js";
2
2
  /* empty css */
3
3
  import r from "../../../../../_virtual/_plugin-vue_export-helper/index.js";
4
- const m = /* @__PURE__ */ r(o, [["__scopeId", "data-v-96110588"]]);
4
+ const e = /* @__PURE__ */ r(o, [["__scopeId", "data-v-b61d25aa"]]);
5
5
  export {
6
- m as default
6
+ e as default
7
7
  };
@@ -1 +1 @@
1
- "use strict";var K=Object.defineProperty;var a=(f,p)=>K(f,"name",{value:p,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const t=require("vue"),D=,/* empty css */b=,/* empty css */z=,/* empty css */H=,/* empty css */I=,/* empty css */R=t.defineComponent({name:"LSTree"}),M=t.defineComponent({...R,props:b.lsTreeProps,emits:b.emitNames,setup(f,{expose:p,emit:x}){const k=x,c=f,N=D.useNamespace("tree"),S=N.b(),q=N.b("box"),s=t.ref(),i=t.ref(!1),u=t.ref(!1),m=t.ref([]),E=t.computed(()=>c.height?{maxHeight:c.height}:{}),y=t.computed(()=>c.treeData);t.watch(()=>y.value,async e=>{e&&e.length>0&&(i.value=!1,u.value=!1,m.value=w(),await t.nextTick(),s.value.filter(),v(),_(),await A())},{immediate:!0,deep:!0});function w(){return y.value.reduce((e,n)=>(e.push(n.id),n.children&&e.push(...g(n.children)),e),[])}a(w,"getAllNodeKeys");function g(e){return e.reduce((n,l)=>(n.push(l.id),l.children&&n.push(...g(l.children)),n),[])}a(g,"getAllChildKeys");async function A(){var n,l;await t.nextTick();const e=document.getElementsByClassName("hide-child-node");for(let r=0;r<e.length;r++){const o=e[r].parentNode;o.style.opacity=0,o.style.width=0,o.style.height=0;const d=o.parentNode.parentNode.querySelectorAll(".el-tree-node");let h=!0;for(let C=0;C<d.length;C++)if(d[C].style.display!=="none"){h=!1;break}(l=(n=o==null?void 0:o.parentNode)==null?void 0:n.parentNode)!=null&&l.previousElementSibling&&h&&(o.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.opacity=0,o.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.visibility="hidden")}}a(A,"updateHideStyle");function T(){u.value=!1,s.value&&s.value.setCheckedKeys(i.value?m.value:[])}a(T,"handleCheckAllChange");function P(e,n){const{permission:l}=n||{};if(l!=null&&l.startsWith(c.hideNodePrefix))return!1;if(!e)return!0;const{label:r}=c.dataProps||{};return r?n[r].indexOf(e)!==-1:!0}a(P,"filterNode");function B(e,n){s.value.setCheckedNodes(z.excutePowerTree(y.value,e,n)),k("handleCheck",e,n)}a(B,"handleCheck");function V(e,n){v(),k("handleChekChange",e,n)}a(V,"handleChekChange");function v(){const e=s.value.getCheckedNodes(!1,!0);let n=[];if(e.forEach(l=>{const{id:r,parentId:o}=l;n.push(r||o)}),n.length>0){const l=n.length===m.value.length;i.value=l,u.value=!l}else i.value=!1,u.value=!1}a(v,"updateAllCheckStatus");function _(){var e,n;if(c.direction=="h"){const l=(n=(e=s.value)==null?void 0:e.el$)==null?void 0:n.getElementsByClassName("el-tree-node");for(let r=0;r<l.length;r++){const o=l[r];if(o){const d=o.querySelector(".el-tree-node__content .el-icon");d&&getComputedStyle(d).visibility==="hidden"&&(o.style.display="inline-block",o.style.verticalAlign="middle")}}}}return a(_,"updateStyle"),p({lsTreeRef:s}),(e,n)=>{const l=H.ElCheckbox,r=I.ElTree;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(S))},[e.isCheckAll?(t.openBlock(),t.createBlock(l,{key:0,modelValue:t.unref(i),"onUpdate:modelValue":n[0]||(n[0]=o=>t.isRef(i)?i.value=o:null),indeterminate:t.unref(u),onChange:T},{default:t.withCtx(()=>n[1]||(n[1]=[t.createTextVNode(" 全选 ")])),_:1,__:[1]},8,["modelValue","indeterminate"])):t.createCommentVNode("",!0),t.createVNode(r,{ref_key:"lsTreeRef",ref:s,"show-checkbox":e.showCheckbox,"default-expand-all":e.defaultExpandAll,"node-key":e.nodeKey,"check-strictly":e.isCheckStrictly,style:t.normalizeStyle(t.unref(E)),class:t.normalizeClass([t.unref(q),!e.isExpand&&"expand-disabled"]),data:e.treeData,props:e.dataProps,"default-checked-keys":e.defaultCheckedKeys,"expand-on-click-node":e.isExpand,"filter-node-method":P,onCheck:B,onCheckChange:V},{default:t.withCtx(({node:o,data:d})=>{var h;return[t.createElementVNode("span",{class:t.normalizeClass(["custom-tree-node",{"hide-child-node":e.hideNodePrefix&&((h=d.permission)==null?void 0:h.startsWith(e.hideNodePrefix))}])},[t.createElementVNode("span",null,t.toDisplayString(o.label),1)],2)]}),_:1},8,["show-checkbox","default-expand-all","node-key","check-strictly","style","class","data","props","default-checked-keys","expand-on-click-node"])],2)}}});exports.default=M;
1
+ "use strict";var D=Object.defineProperty;var s=(f,p)=>D(f,"name",{value:p,configurable:!0});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});;/* empty css */;/* empty css */;/* empty css */;/* empty css */const t=require("vue"),_=,/* empty css */b=,/* empty css */z=,/* empty css */H=,/* empty css */I=,/* empty css */R=t.defineComponent({name:"LSTree"}),M=t.defineComponent({...R,props:b.lsTreeProps,emits:b.emitNames,setup(f,{expose:p,emit:x}){const y=x,d=f,N=_.useNamespace("tree"),S=N.b(),q=N.b("box"),o=t.ref(),i=t.ref(!1),u=t.ref(!1),m=t.ref([]),E=t.computed(()=>d.height?{maxHeight:d.height}:{}),C=t.computed(()=>d.treeData),w=s(({isPenultimate:e})=>e?"is-penultimate":"","customNodeClass");t.watch(()=>C.value,async e=>{e&&e.length>0&&(i.value=!1,u.value=!1,m.value=T(),await t.nextTick(),o.value.filter(),g(),await A())},{immediate:!0,deep:!0});function T(){return C.value.reduce((e,n)=>(e.push(n.id),n.children&&e.push(...v(n.children)),e),[])}s(T,"getAllNodeKeys");function v(e){return e.reduce((n,l)=>(n.push(l.id),l.children&&n.push(...v(l.children)),n),[])}s(v,"getAllChildKeys");async function A(){var n,l;await t.nextTick();const e=document.getElementsByClassName("hide-child-node");for(let r=0;r<e.length;r++){const a=e[r].parentNode;a.style.opacity=0,a.style.width=0,a.style.height=0;const h=a.parentNode.parentNode.querySelectorAll(".el-tree-node");let c=!0;for(let k=0;k<h.length;k++)if(h[k].style.display!=="none"){c=!1;break}(l=(n=a==null?void 0:a.parentNode)==null?void 0:n.parentNode)!=null&&l.previousElementSibling&&c&&(a.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.opacity=0,a.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.visibility="hidden")}}s(A,"updateHideStyle");function P(){u.value=!1,o.value&&o.value.setCheckedKeys(i.value?m.value:[])}s(P,"handleCheckAllChange");function V(e,n){const{permission:l}=n||{};if(l!=null&&l.startsWith(d.hideNodePrefix))return!1;if(!e)return!0;const{label:r}=d.dataProps||{};return r?n[r].indexOf(e)!==-1:!0}s(V,"filterNode");function B(e,n){o.value.setCheckedNodes(z.excutePowerTree(C.value,e,n)),y("handleCheck",e,n)}s(B,"handleCheck");function K(e,n){g(),y("handleChekChange",e,n)}s(K,"handleChekChange");function g(){const e=o.value.getCheckedNodes(!1,!0);let n=[];if(e.forEach(l=>{const{id:r,parentId:a}=l;n.push(r||a)}),n.length>0){const l=n.length===m.value.length;i.value=l,u.value=!l}else i.value=!1,u.value=!1}return s(g,"updateAllCheckStatus"),p({lsTreeRef:o}),(e,n)=>{const l=H.ElCheckbox,r=I.ElTree;return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(t.unref(S))},[e.isCheckAll?(t.openBlock(),t.createBlock(l,{key:0,modelValue:t.unref(i),"onUpdate:modelValue":n[0]||(n[0]=a=>t.isRef(i)?i.value=a:null),indeterminate:t.unref(u),onChange:P},{default:t.withCtx(()=>n[1]||(n[1]=[t.createTextVNode(" 全选 ")])),_:1,__:[1]},8,["modelValue","indeterminate"])):t.createCommentVNode("",!0),t.createVNode(r,{ref_key:"lsTreeRef",ref:o,"show-checkbox":e.showCheckbox,"default-expand-all":e.defaultExpandAll,"node-key":e.nodeKey,"check-strictly":e.isCheckStrictly,style:t.normalizeStyle(t.unref(E)),class:t.normalizeClass([t.unref(q),!e.isExpand&&"expand-disabled"]),data:e.treeData,props:{...e.dataProps,class:w},"default-checked-keys":e.defaultCheckedKeys,"expand-on-click-node":e.isExpand,"filter-node-method":V,onCheck:B,onCheckChange:K},{default:t.withCtx(({node:a,data:h})=>{var c;return[t.createElementVNode("span",{class:t.normalizeClass(["custom-tree-node",{"hide-child-node":e.hideNodePrefix&&((c=h.permission)==null?void 0:c.startsWith(e.hideNodePrefix))}])},[t.createElementVNode("span",null,t.toDisplayString(a.label),1)],2)]}),_:1},8,["show-checkbox","default-expand-all","node-key","check-strictly","style","class","data","props","default-checked-keys","expand-on-click-node"])],2)}}});exports.default=M;
@@ -1,154 +1,140 @@
1
1
  var L = Object.defineProperty;
2
- var a = (p, m) => L(p, "name", { value: m, configurable: !0 });
2
+ var a = (f, m) => L(f, "name", { value: m, configurable: !0 });
3
3
  /* empty css */
4
4
  /* empty css */
5
5
  /* empty css */
6
6
  /* empty css */
7
- import { defineComponent as P, ref as f, computed as x, watch as O, nextTick as E, createElementBlock as U, openBlock as A, normalizeClass as N, unref as h, createBlock as $, createCommentVNode as j, createVNode as F, isRef as G, withCtx as w, createTextVNode as J, normalizeStyle as M, createElementVNode as T, toDisplayString as Q } from "vue";
8
- import { useNamespace as X } from "../../_hooks/useNamespace/index.js";
9
- import { emitNames as Y, lsTreeProps as Z } from "../types/index.js";
7
+ import { defineComponent as P, ref as p, computed as S, watch as O, nextTick as E, createElementBlock as U, openBlock as w, normalizeClass as N, unref as u, createBlock as j, createCommentVNode as F, createVNode as G, isRef as J, withCtx as A, createTextVNode as M, normalizeStyle as Q, createElementVNode as T, toDisplayString as X } from "vue";
8
+ import { useNamespace as Y } from "../../_hooks/useNamespace/index.js";
9
+ import { emitNames as Z, lsTreeProps as $ } from "../types/index.js";
10
10
  import { excutePowerTree as ee } from "../../_utils/power/index.js";
11
11
  import { ElCheckbox as te } from "../../../../../node_modules/.pnpm/element-plus@2.10.2_vue@3.5.17_typescript@5.8.3_/node_modules/element-plus/es/components/checkbox/index/index.js";
12
12
  import { ElTree as le } from "../../../../../node_modules/.pnpm/element-plus@2.10.2_vue@3.5.17_typescript@5.8.3_/node_modules/element-plus/es/components/tree/index/index.js";
13
13
  const ne = P({
14
14
  name: "LSTree"
15
- }), ye = /* @__PURE__ */ P({
15
+ }), ke = /* @__PURE__ */ P({
16
16
  ...ne,
17
- props: Z,
18
- emits: Y,
19
- setup(p, { expose: m, emit: B }) {
20
- const g = B, d = p, v = X("tree"), K = v.b(), V = v.b("box"), i = f(), r = f(!1), c = f(!1), y = f([]), D = x(() => d.height ? {
21
- maxHeight: d.height
22
- } : {}), k = x(() => d.treeData);
17
+ props: $,
18
+ emits: Z,
19
+ setup(f, { expose: m, emit: K }) {
20
+ const g = K, i = f, v = Y("tree"), V = v.b(), B = v.b("box"), s = p(), r = p(!1), d = p(!1), k = p([]), D = S(() => i.height ? {
21
+ maxHeight: i.height
22
+ } : {}), y = S(() => i.treeData), q = /* @__PURE__ */ a(({ isPenultimate: e }) => e ? "is-penultimate" : "", "customNodeClass");
23
23
  O(
24
- () => k.value,
24
+ () => y.value,
25
25
  async (e) => {
26
- e && e.length > 0 && (r.value = !1, c.value = !1, y.value = _(), await E(), i.value.filter(), S(), W(), await q());
26
+ e && e.length > 0 && (r.value = !1, d.value = !1, k.value = H(), await E(), s.value.filter(), x(), await I());
27
27
  },
28
28
  {
29
29
  immediate: !0,
30
30
  deep: !0
31
31
  }
32
32
  );
33
- function _() {
34
- return k.value.reduce((e, t) => (e.push(t.id), t.children && e.push(...b(t.children)), e), []);
33
+ function H() {
34
+ return y.value.reduce((e, t) => (e.push(t.id), t.children && e.push(...b(t.children)), e), []);
35
35
  }
36
- a(_, "getAllNodeKeys");
36
+ a(H, "getAllNodeKeys");
37
37
  function b(e) {
38
38
  return e.reduce((t, l) => (t.push(l.id), l.children && t.push(...b(l.children)), t), []);
39
39
  }
40
40
  a(b, "getAllChildKeys");
41
- async function q() {
41
+ async function I() {
42
42
  var t, l;
43
43
  await E();
44
44
  const e = document.getElementsByClassName("hide-child-node");
45
45
  for (let o = 0; o < e.length; o++) {
46
46
  const n = e[o].parentNode;
47
47
  n.style.opacity = 0, n.style.width = 0, n.style.height = 0;
48
- const s = n.parentNode.parentNode.querySelectorAll(".el-tree-node");
49
- let u = !0;
50
- for (let C = 0; C < s.length; C++)
51
- if (s[C].style.display !== "none") {
52
- u = !1;
48
+ const h = n.parentNode.parentNode.querySelectorAll(".el-tree-node");
49
+ let c = !0;
50
+ for (let C = 0; C < h.length; C++)
51
+ if (h[C].style.display !== "none") {
52
+ c = !1;
53
53
  break;
54
54
  }
55
- (l = (t = n == null ? void 0 : n.parentNode) == null ? void 0 : t.parentNode) != null && l.previousElementSibling && u && (n.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.opacity = 0, n.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.visibility = "hidden");
55
+ (l = (t = n == null ? void 0 : n.parentNode) == null ? void 0 : t.parentNode) != null && l.previousElementSibling && c && (n.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.opacity = 0, n.parentNode.parentNode.previousElementSibling.querySelector(".el-icon").style.visibility = "hidden");
56
56
  }
57
57
  }
58
- a(q, "updateHideStyle");
59
- function H() {
60
- c.value = !1, i.value && i.value.setCheckedKeys(r.value ? y.value : []);
58
+ a(I, "updateHideStyle");
59
+ function R() {
60
+ d.value = !1, s.value && s.value.setCheckedKeys(r.value ? k.value : []);
61
61
  }
62
- a(H, "handleCheckAllChange");
63
- function I(e, t) {
62
+ a(R, "handleCheckAllChange");
63
+ function _(e, t) {
64
64
  const { permission: l } = t || {};
65
- if (l != null && l.startsWith(d.hideNodePrefix))
65
+ if (l != null && l.startsWith(i.hideNodePrefix))
66
66
  return !1;
67
67
  if (!e) return !0;
68
- const { label: o } = d.dataProps || {};
68
+ const { label: o } = i.dataProps || {};
69
69
  return o ? t[o].indexOf(e) !== -1 : !0;
70
70
  }
71
- a(I, "filterNode");
72
- function R(e, t) {
73
- i.value.setCheckedNodes(ee(k.value, e, t)), g("handleCheck", e, t);
74
- }
75
- a(R, "handleCheck");
71
+ a(_, "filterNode");
76
72
  function z(e, t) {
77
- S(), g("handleChekChange", e, t);
73
+ s.value.setCheckedNodes(ee(y.value, e, t)), g("handleCheck", e, t);
74
+ }
75
+ a(z, "handleCheck");
76
+ function W(e, t) {
77
+ x(), g("handleChekChange", e, t);
78
78
  }
79
- a(z, "handleChekChange");
80
- function S() {
81
- const e = i.value.getCheckedNodes(!1, !0);
79
+ a(W, "handleChekChange");
80
+ function x() {
81
+ const e = s.value.getCheckedNodes(!1, !0);
82
82
  let t = [];
83
83
  if (e.forEach((l) => {
84
84
  const { id: o, parentId: n } = l;
85
85
  t.push(o || n);
86
86
  }), t.length > 0) {
87
- const l = t.length === y.value.length;
88
- r.value = l, c.value = !l;
87
+ const l = t.length === k.value.length;
88
+ r.value = l, d.value = !l;
89
89
  } else
90
- r.value = !1, c.value = !1;
91
- }
92
- a(S, "updateAllCheckStatus");
93
- function W() {
94
- var e, t;
95
- if (d.direction == "h") {
96
- const l = (t = (e = i.value) == null ? void 0 : e.el$) == null ? void 0 : t.getElementsByClassName("el-tree-node");
97
- for (let o = 0; o < l.length; o++) {
98
- const n = l[o];
99
- if (n) {
100
- const s = n.querySelector(".el-tree-node__content .el-icon");
101
- s && getComputedStyle(s).visibility === "hidden" && (n.style.display = "inline-block", n.style.verticalAlign = "middle");
102
- }
103
- }
104
- }
90
+ r.value = !1, d.value = !1;
105
91
  }
106
- return a(W, "updateStyle"), m({
107
- lsTreeRef: i
92
+ return a(x, "updateAllCheckStatus"), m({
93
+ lsTreeRef: s
108
94
  }), (e, t) => {
109
95
  const l = te, o = le;
110
- return A(), U("div", {
111
- class: N(h(K))
96
+ return w(), U("div", {
97
+ class: N(u(V))
112
98
  }, [
113
- e.isCheckAll ? (A(), $(l, {
99
+ e.isCheckAll ? (w(), j(l, {
114
100
  key: 0,
115
- modelValue: h(r),
116
- "onUpdate:modelValue": t[0] || (t[0] = (n) => G(r) ? r.value = n : null),
117
- indeterminate: h(c),
118
- onChange: H
101
+ modelValue: u(r),
102
+ "onUpdate:modelValue": t[0] || (t[0] = (n) => J(r) ? r.value = n : null),
103
+ indeterminate: u(d),
104
+ onChange: R
119
105
  }, {
120
- default: w(() => t[1] || (t[1] = [
121
- J(" 全选 ")
106
+ default: A(() => t[1] || (t[1] = [
107
+ M(" 全选 ")
122
108
  ])),
123
109
  _: 1,
124
110
  __: [1]
125
- }, 8, ["modelValue", "indeterminate"])) : j("", !0),
126
- F(o, {
111
+ }, 8, ["modelValue", "indeterminate"])) : F("", !0),
112
+ G(o, {
127
113
  ref_key: "lsTreeRef",
128
- ref: i,
114
+ ref: s,
129
115
  "show-checkbox": e.showCheckbox,
130
116
  "default-expand-all": e.defaultExpandAll,
131
117
  "node-key": e.nodeKey,
132
118
  "check-strictly": e.isCheckStrictly,
133
- style: M(h(D)),
134
- class: N([h(V), !e.isExpand && "expand-disabled"]),
119
+ style: Q(u(D)),
120
+ class: N([u(B), !e.isExpand && "expand-disabled"]),
135
121
  data: e.treeData,
136
- props: e.dataProps,
122
+ props: { ...e.dataProps, class: q },
137
123
  "default-checked-keys": e.defaultCheckedKeys,
138
124
  "expand-on-click-node": e.isExpand,
139
- "filter-node-method": I,
140
- onCheck: R,
141
- onCheckChange: z
125
+ "filter-node-method": _,
126
+ onCheck: z,
127
+ onCheckChange: W
142
128
  }, {
143
- default: w(({ node: n, data: s }) => {
144
- var u;
129
+ default: A(({ node: n, data: h }) => {
130
+ var c;
145
131
  return [
146
132
  T("span", {
147
133
  class: N(["custom-tree-node", {
148
- "hide-child-node": e.hideNodePrefix && ((u = s.permission) == null ? void 0 : u.startsWith(e.hideNodePrefix))
134
+ "hide-child-node": e.hideNodePrefix && ((c = h.permission) == null ? void 0 : c.startsWith(e.hideNodePrefix))
149
135
  }])
150
136
  }, [
151
- T("span", null, Q(n.label), 1)
137
+ T("span", null, X(n.label), 1)
152
138
  ], 2)
153
139
  ];
154
140
  }),
@@ -159,5 +145,5 @@ const ne = P({
159
145
  }
160
146
  });
161
147
  export {
162
- ye as default
148
+ ke as default
163
149
  };
@@ -1 +1 @@
1
- "use strict";var l=Object.defineProperty;var e=(t,a)=>l(t,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../_utils/runtime/index.cjs"),r=d.buildProps({isExpand:{type:Boolean,default:!0},height:{type:String,default:""},dataProps:{type:Object,default:e(()=>({children:"children",label:"name",class:""}),"default")},hideNodePrefix:{type:String,default:"I"},isCheckAll:{type:Boolean,default:!1},direction:{type:String,default:"v"},showCheckbox:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!0},nodeKey:{type:String,default:"id"},isCheckStrictly:{type:Boolean,default:!1},treeData:{type:Array,default:e(()=>[],"default")},defaultCheckedKeys:{type:Array,default:e(()=>[],"default")}}),o=["handleCheck","handleChekChange"];exports.emitNames=o;exports.lsTreeProps=r;
1
+ "use strict";var l=Object.defineProperty;var e=(t,a)=>l(t,"name",{value:a,configurable:!0});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const d=require("../../_utils/runtime/index.cjs"),r=d.buildProps({isExpand:{type:Boolean,default:!0},height:{type:String,default:""},dataProps:{type:Object,default:e(()=>({children:"children",label:"name",class:""}),"default")},hideNodePrefix:{type:String,default:"I"},isCheckAll:{type:Boolean,default:!1},showCheckbox:{type:Boolean,default:!0},defaultExpandAll:{type:Boolean,default:!0},nodeKey:{type:String,default:"id"},isCheckStrictly:{type:Boolean,default:!1},treeData:{type:Array,default:e(()=>[],"default")},defaultCheckedKeys:{type:Array,default:e(()=>[],"default")}}),o=["handleCheck","handleChekChange"];exports.emitNames=o;exports.lsTreeProps=r;
@@ -31,11 +31,11 @@ const n = d({
31
31
  type: Boolean,
32
32
  default: !1
33
33
  },
34
- // 展示方式 默认:垂直展示
35
- direction: {
36
- type: String,
37
- default: "v"
38
- },
34
+ // // 展示方式 默认:垂直展示
35
+ // direction: {
36
+ // type: String as PropType<'h' | 'v'>,
37
+ // default: 'v'
38
+ // },
39
39
  showCheckbox: {
40
40
  type: Boolean,
41
41
  default: !0
@@ -60,8 +60,8 @@ const n = d({
60
60
  type: Array,
61
61
  default: /* @__PURE__ */ e(() => [], "default")
62
62
  }
63
- }), i = ["handleCheck", "handleChekChange"];
63
+ }), p = ["handleCheck", "handleChekChange"];
64
64
  export {
65
- i as emitNames,
65
+ p as emitNames,
66
66
  n as lsTreeProps
67
67
  };
@@ -1,6 +1,6 @@
1
+ import { TreeNodeData, TreeComponentProps, TreeKey, TreeStoreNodesMap, TreeData, LoadFunction, FilterNodeMethodFunction, TreeOptionProps, FilterValue, FakeNode, TreeNodeLoadedDefaultProps, Translator } from 'element-plus';
1
2
  import { DefineComponent, ComponentOptionsMixin, PublicProps, ComponentProvideOptions, CreateComponentPublicInstanceWithMixins, ComponentInternalInstance, VNodeProps, AllowedComponentProps, ComponentCustomProps, GlobalComponents, GlobalDirectives } from 'vue';
2
3
  import { EpPropFinalized, EpPropMergeType } from '../_utils/types';
3
- import { TreeComponentProps, TreeNodeData, TreeKey, TreeStoreNodesMap, TreeData, LoadFunction, FilterNodeMethodFunction, TreeOptionProps, FilterValue, FakeNode, TreeNodeLoadedDefaultProps, Translator } from 'element-plus';
4
4
  declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
5
5
  isExpand: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
6
6
  height: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
@@ -11,7 +11,6 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
11
11
  }, boolean>;
12
12
  hideNodePrefix: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
13
13
  isCheckAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
14
- direction: EpPropFinalized<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown, string, boolean>;
15
14
  showCheckbox: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
16
15
  defaultExpandAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
17
16
  nodeKey: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
@@ -45,7 +44,6 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
45
44
  }, boolean>;
46
45
  hideNodePrefix: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
47
46
  isCheckAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
48
- direction: EpPropFinalized<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown, string, boolean>;
49
47
  showCheckbox: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
50
48
  defaultExpandAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
51
49
  nodeKey: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
@@ -69,7 +67,6 @@ declare const _default: DefineComponent<globalThis.ExtractPropTypes<{
69
67
  }, unknown, unknown, () => never[], boolean>;
70
68
  }>> & Readonly<{}>, {
71
69
  height: string;
72
- direction: EpPropMergeType<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown>;
73
70
  defaultExpandAll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
74
71
  isExpand: EpPropMergeType<BooleanConstructor, unknown, unknown>;
75
72
  dataProps: Record<string, any>;
@@ -12,7 +12,6 @@ declare const LSTree: {
12
12
  }, boolean>;
13
13
  hideNodePrefix: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
14
14
  isCheckAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
15
- direction: EpPropFinalized<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown, string, boolean>;
16
15
  showCheckbox: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
17
16
  defaultExpandAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
18
17
  nodeKey: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
@@ -38,7 +37,6 @@ declare const LSTree: {
38
37
  lsTreeRef: globalThis.Ref<any, any>;
39
38
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, PublicProps, {
40
39
  height: string;
41
- direction: EpPropMergeType<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown>;
42
40
  defaultExpandAll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
43
41
  isExpand: EpPropMergeType<BooleanConstructor, unknown, unknown>;
44
42
  dataProps: Record<string, any>;
@@ -12177,7 +12175,6 @@ declare const LSTree: {
12177
12175
  }, boolean>;
12178
12176
  hideNodePrefix: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
12179
12177
  isCheckAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
12180
- direction: EpPropFinalized<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown, string, boolean>;
12181
12178
  showCheckbox: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
12182
12179
  defaultExpandAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
12183
12180
  nodeKey: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
@@ -12203,7 +12200,6 @@ declare const LSTree: {
12203
12200
  lsTreeRef: globalThis.Ref<any, any>;
12204
12201
  }, {}, {}, {}, {
12205
12202
  height: string;
12206
- direction: EpPropMergeType<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown>;
12207
12203
  defaultExpandAll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
12208
12204
  isExpand: EpPropMergeType<BooleanConstructor, unknown, unknown>;
12209
12205
  dataProps: Record<string, any>;
@@ -12228,7 +12224,6 @@ declare const LSTree: {
12228
12224
  }, boolean>;
12229
12225
  hideNodePrefix: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
12230
12226
  isCheckAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
12231
- direction: EpPropFinalized<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown, string, boolean>;
12232
12227
  showCheckbox: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
12233
12228
  defaultExpandAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
12234
12229
  nodeKey: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
@@ -12254,7 +12249,6 @@ declare const LSTree: {
12254
12249
  lsTreeRef: globalThis.Ref<any, any>;
12255
12250
  }, {}, {}, {}, ComponentOptionsMixin, ComponentOptionsMixin, {}, string, {
12256
12251
  height: string;
12257
- direction: EpPropMergeType<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown>;
12258
12252
  defaultExpandAll: EpPropMergeType<BooleanConstructor, unknown, unknown>;
12259
12253
  isExpand: EpPropMergeType<BooleanConstructor, unknown, unknown>;
12260
12254
  dataProps: Record<string, any>;
@@ -9,7 +9,6 @@ export declare const lsTreeProps: {
9
9
  }, boolean>;
10
10
  hideNodePrefix: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
11
11
  isCheckAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
12
- direction: EpPropFinalized<(new (...args: any[]) => "h" | "v") | (() => "h" | "v") | (((new (...args: any[]) => "h" | "v") | (() => "h" | "v")) | null)[], unknown, unknown, string, boolean>;
13
12
  showCheckbox: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
14
13
  defaultExpandAll: EpPropFinalized<BooleanConstructor, unknown, unknown, boolean, boolean>;
15
14
  nodeKey: EpPropFinalized<StringConstructor, unknown, unknown, string, boolean>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lingshugroup/web-plus",
3
- "version": "1.8.9",
3
+ "version": "1.8.10",
4
4
  "description": "零数科技前端UI组件库(Vue3)",
5
5
  "type": "module",
6
6
  "main": "./lib/index/index.cjs",