@das-fed/upf-ui 6.4.0-dev.211 → 6.4.0-dev.212

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.
@@ -1,339 +1,344 @@
1
1
  import '@das-fed/upf-ui/packages/components/tree-select/style.css';
2
- import { ref as j, computed as S, watch as ve, nextTick as _, unref as a, onMounted as Pe, onBeforeUnmount as Ne, defineComponent as xe, useAttrs as Oe, withDirectives as he, openBlock as z, createElementBlock as ue, normalizeClass as Be, normalizeStyle as me, createVNode as de, withCtx as V, withModifiers as fe, mergeProps as ce, isRef as H, createTextVNode as Ie, toDisplayString as Re, createElementVNode as Me, createBlock as ye, createSlots as be, renderSlot as x } from "vue";
3
- import { withInstall as Ee } from "@das-fed/upf-utils/with-install/index";
4
- import { ElPopover as We } from "element-plus";
2
+ import { ref as N, computed as k, watch as ye, nextTick as _, unref as a, onMounted as Ie, onBeforeUnmount as Be, defineComponent as Oe, useAttrs as Re, withDirectives as be, openBlock as q, createElementBlock as ce, normalizeClass as Ee, normalizeStyle as ge, createVNode as pe, withCtx as L, withModifiers as ve, mergeProps as he, isRef as X, createTextVNode as Me, toDisplayString as Ae, createElementVNode as We, createBlock as ke, createSlots as Se, renderSlot as P } from "vue";
3
+ import { withInstall as Fe } from "@das-fed/upf-utils/with-install/index";
4
+ import { ElPopover as Ge } from "element-plus";
5
5
  import "element-plus/es/components/popover/style/css";
6
- import { currentLang as Fe, t as Ae } from "@das-fed/upf-web/packages/i18n/index";
7
- import { DasSelect as Ge } from "@das-fed/upf-ui/packages/components/select/index";
8
- import { DasTreeV2 as ze } from "@das-fed/upf-ui/packages/components/tree-v2/index";
9
- import { DasTreeRef as He, DasTree as Ue } from "@das-fed/upf-ui/packages/components/tree/index";
10
- import { DasIconXiala as qe } from "@das-fed/upf-ui/packages/icons/xiala/index";
11
- import { vDasTooltip as Xe } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
12
- import { SizeWatcher as Je } from "@das-fed/upf-utils/size-watcher";
13
- import { flatTree as Qe } from "@das-fed/upf-utils/common-tools";
14
- import { vClickOutside as Ye } from "@das-fed/upf-utils/directive";
15
- import { setThemeRule as Ze } from "@das-fed/upf-web/packages/theme/index";
6
+ import { currentLang as ze, t as He } from "@das-fed/upf-web/packages/i18n/index";
7
+ import { DasSelect as Ue } from "@das-fed/upf-ui/packages/components/select/index";
8
+ import { DasTreeV2 as qe } from "@das-fed/upf-ui/packages/components/tree-v2/index";
9
+ import { DasTreeRef as Xe, DasTree as Je } from "@das-fed/upf-ui/packages/components/tree/index";
10
+ import { DasIconXiala as Qe } from "@das-fed/upf-ui/packages/icons/xiala/index";
11
+ import { vDasTooltip as Ye } from "@das-fed/upf-ui/packages/components/text-tooltip/index";
12
+ import { SizeWatcher as Ze } from "@das-fed/upf-utils/size-watcher";
13
+ import { flatTree as Ke } from "@das-fed/upf-utils/common-tools";
14
+ import { vClickOutside as _e } from "@das-fed/upf-utils/directive";
15
+ import { setThemeRule as et } from "@das-fed/upf-web/packages/theme/index";
16
16
  var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17
- function Ke(e) {
17
+ function tt(e) {
18
18
  return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
19
19
  }
20
- function _e(e) {
21
- var u = typeof e;
22
- return e != null && (u == "object" || u == "function");
20
+ function rt(e) {
21
+ var d = typeof e;
22
+ return e != null && (d == "object" || d == "function");
23
23
  }
24
- var $e = _e, et = typeof ee == "object" && ee && ee.Object === Object && ee, tt = et, rt = tt, lt = typeof self == "object" && self && self.Object === Object && self, at = rt || lt || Function("return this")(), Le = at, nt = Le, ot = function() {
25
- return nt.Date.now();
26
- }, it = ot, st = /\s/;
27
- function ut(e) {
28
- for (var u = e.length; u-- && st.test(e.charAt(u)); )
24
+ var De = rt, at = typeof ee == "object" && ee && ee.Object === Object && ee, lt = at, nt = lt, ot = typeof self == "object" && self && self.Object === Object && self, it = nt || ot || Function("return this")(), je = it, st = je, ut = function() {
25
+ return st.Date.now();
26
+ }, dt = ut, ft = /\s/;
27
+ function ct(e) {
28
+ for (var d = e.length; d-- && ft.test(e.charAt(d)); )
29
29
  ;
30
- return u;
30
+ return d;
31
31
  }
32
- var dt = ut, ft = dt, ct = /^\s+/;
33
- function pt(e) {
34
- return e && e.slice(0, ft(e) + 1).replace(ct, "");
32
+ var pt = ct, vt = pt, ht = /^\s+/;
33
+ function mt(e) {
34
+ return e && e.slice(0, vt(e) + 1).replace(ht, "");
35
35
  }
36
- var vt = pt, ht = Le, mt = ht.Symbol, Ve = mt, ge = Ve, De = Object.prototype, yt = De.hasOwnProperty, bt = De.toString, U = ge ? ge.toStringTag : void 0;
37
- function gt(e) {
38
- var u = yt.call(e, U), c = e[U];
36
+ var yt = mt, bt = je, gt = bt.Symbol, Ne = gt, Te = Ne, Pe = Object.prototype, kt = Pe.hasOwnProperty, St = Pe.toString, J = Te ? Te.toStringTag : void 0;
37
+ function Tt(e) {
38
+ var d = kt.call(e, J), c = e[J];
39
39
  try {
40
- e[U] = void 0;
41
- var d = !0;
40
+ e[J] = void 0;
41
+ var f = !0;
42
42
  } catch {
43
43
  }
44
- var b = bt.call(e);
45
- return d && (u ? e[U] = c : delete e[U]), b;
44
+ var m = St.call(e);
45
+ return f && (d ? e[J] = c : delete e[J]), m;
46
46
  }
47
- var kt = gt, St = Object.prototype, Tt = St.toString;
48
- function Ct(e) {
49
- return Tt.call(e);
47
+ var Ct = Tt, wt = Object.prototype, $t = wt.toString;
48
+ function Lt(e) {
49
+ return $t.call(e);
50
50
  }
51
- var wt = Ct, ke = Ve, $t = kt, Lt = wt, Vt = "[object Null]", Dt = "[object Undefined]", Se = ke ? ke.toStringTag : void 0;
52
- function jt(e) {
53
- return e == null ? e === void 0 ? Dt : Vt : Se && Se in Object(e) ? $t(e) : Lt(e);
51
+ var Vt = Lt, Ce = Ne, Dt = Ct, jt = Vt, Nt = "[object Null]", Pt = "[object Undefined]", we = Ce ? Ce.toStringTag : void 0;
52
+ function xt(e) {
53
+ return e == null ? e === void 0 ? Pt : Nt : we && we in Object(e) ? Dt(e) : jt(e);
54
54
  }
55
- var Pt = jt;
56
- function Nt(e) {
55
+ var It = xt;
56
+ function Bt(e) {
57
57
  return e != null && typeof e == "object";
58
58
  }
59
- var xt = Nt, Ot = Pt, Bt = xt, It = "[object Symbol]";
60
- function Rt(e) {
61
- return typeof e == "symbol" || Bt(e) && Ot(e) == It;
59
+ var Ot = Bt, Rt = It, Et = Ot, Mt = "[object Symbol]";
60
+ function At(e) {
61
+ return typeof e == "symbol" || Et(e) && Rt(e) == Mt;
62
62
  }
63
- var Mt = Rt, Et = vt, Te = $e, Wt = Mt, Ce = NaN, Ft = /^[-+]0x[0-9a-f]+$/i, At = /^0b[01]+$/i, Gt = /^0o[0-7]+$/i, zt = parseInt;
64
- function Ht(e) {
63
+ var Wt = At, Ft = yt, $e = De, Gt = Wt, Le = NaN, zt = /^[-+]0x[0-9a-f]+$/i, Ht = /^0b[01]+$/i, Ut = /^0o[0-7]+$/i, qt = parseInt;
64
+ function Xt(e) {
65
65
  if (typeof e == "number")
66
66
  return e;
67
- if (Wt(e))
68
- return Ce;
69
- if (Te(e)) {
70
- var u = typeof e.valueOf == "function" ? e.valueOf() : e;
71
- e = Te(u) ? u + "" : u;
67
+ if (Gt(e))
68
+ return Le;
69
+ if ($e(e)) {
70
+ var d = typeof e.valueOf == "function" ? e.valueOf() : e;
71
+ e = $e(d) ? d + "" : d;
72
72
  }
73
73
  if (typeof e != "string")
74
74
  return e === 0 ? e : +e;
75
- e = Et(e);
76
- var c = At.test(e);
77
- return c || Gt.test(e) ? zt(e.slice(2), c ? 2 : 8) : Ft.test(e) ? Ce : +e;
75
+ e = Ft(e);
76
+ var c = Ht.test(e);
77
+ return c || Ut.test(e) ? qt(e.slice(2), c ? 2 : 8) : zt.test(e) ? Le : +e;
78
78
  }
79
- var Ut = Ht, qt = $e, pe = it, we = Ut, Xt = "Expected a function", Jt = Math.max, Qt = Math.min;
80
- function Yt(e, u, c) {
81
- var d, b, L, g, h, v, D = 0, T = !1, k = !1, O = !0;
79
+ var Jt = Xt, Qt = De, me = dt, Ve = Jt, Yt = "Expected a function", Zt = Math.max, Kt = Math.min;
80
+ function _t(e, d, c) {
81
+ var f, m, w, y, v, p, V = 0, T = !1, b = !1, x = !0;
82
82
  if (typeof e != "function")
83
- throw new TypeError(Xt);
84
- u = we(u) || 0, qt(c) && (T = !!c.leading, k = "maxWait" in c, L = k ? Jt(we(c.maxWait) || 0, u) : L, O = "trailing" in c ? !!c.trailing : O);
85
- function m(s) {
86
- var w = d, N = b;
87
- return d = b = void 0, D = s, g = e.apply(N, w), g;
83
+ throw new TypeError(Yt);
84
+ d = Ve(d) || 0, Qt(c) && (T = !!c.leading, b = "maxWait" in c, w = b ? Zt(Ve(c.maxWait) || 0, d) : w, x = "trailing" in c ? !!c.trailing : x);
85
+ function h(i) {
86
+ var u = f, $ = m;
87
+ return f = m = void 0, V = i, y = e.apply($, u), y;
88
88
  }
89
- function y(s) {
90
- return D = s, h = setTimeout(P, u), T ? m(s) : g;
89
+ function g(i) {
90
+ return V = i, v = setTimeout(j, d), T ? h(i) : y;
91
91
  }
92
- function M(s) {
93
- var w = s - v, N = s - D, W = u - w;
94
- return k ? Qt(W, L - N) : W;
92
+ function R(i) {
93
+ var u = i - p, $ = i - V, O = d - u;
94
+ return b ? Kt(O, w - $) : O;
95
95
  }
96
- function I(s) {
97
- var w = s - v, N = s - D;
98
- return v === void 0 || w >= u || w < 0 || k && N >= L;
96
+ function M(i) {
97
+ var u = i - p, $ = i - V;
98
+ return p === void 0 || u >= d || u < 0 || b && $ >= w;
99
99
  }
100
- function P() {
101
- var s = pe();
102
- if (I(s))
103
- return E(s);
104
- h = setTimeout(P, M(s));
100
+ function j() {
101
+ var i = me();
102
+ if (M(i))
103
+ return B(i);
104
+ v = setTimeout(j, R(i));
105
105
  }
106
- function E(s) {
107
- return h = void 0, O && d ? m(s) : (d = b = void 0, g);
106
+ function B(i) {
107
+ return v = void 0, x && f ? h(i) : (f = m = void 0, y);
108
108
  }
109
- function R() {
110
- h !== void 0 && clearTimeout(h), D = 0, d = v = b = h = void 0;
109
+ function I() {
110
+ v !== void 0 && clearTimeout(v), V = 0, f = p = m = v = void 0;
111
111
  }
112
- function C() {
113
- return h === void 0 ? g : E(pe());
112
+ function A() {
113
+ return v === void 0 ? y : B(me());
114
114
  }
115
- function i() {
116
- var s = pe(), w = I(s);
117
- if (d = arguments, b = this, v = s, w) {
118
- if (h === void 0)
119
- return y(v);
120
- if (k)
121
- return clearTimeout(h), h = setTimeout(P, u), m(v);
115
+ function S() {
116
+ var i = me(), u = M(i);
117
+ if (f = arguments, m = this, p = i, u) {
118
+ if (v === void 0)
119
+ return g(p);
120
+ if (b)
121
+ return clearTimeout(v), v = setTimeout(j, d), h(p);
122
122
  }
123
- return h === void 0 && (h = setTimeout(P, u)), g;
123
+ return v === void 0 && (v = setTimeout(j, d)), y;
124
124
  }
125
- return i.cancel = R, i.flush = C, i;
125
+ return S.cancel = I, S.flush = A, S;
126
126
  }
127
- var Zt = Yt;
128
- const Kt = /* @__PURE__ */ Ke(Zt), _t = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), te = (e) => typeof e == "string" && _t(e) ? e : e + "px", er = (e, u, c, d, b, L) => {
129
- const g = j(null), h = j(null), v = He(), D = j(), T = j(!1), k = j(""), O = j(""), m = S(() => e.mode === "multiple" || e.mode === "tags"), y = {
127
+ var er = _t;
128
+ const tr = /* @__PURE__ */ tt(er), rr = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc|%)$/.test(e), te = (e) => typeof e == "string" && rr(e) ? e : e + "px", ar = (e, d, c, f, m, w) => {
129
+ const y = N(null), v = N(null), p = Xe(), V = N(), T = N(!1), b = N(""), x = N(""), h = k(() => e.mode === "multiple" || e.mode === "tags"), g = {
130
130
  label: "name",
131
131
  children: "children",
132
132
  pathName: "pathName",
133
133
  disabled: "disabled",
134
- ...d.props ?? {}
135
- }, M = Fe.value === "zh-CN" ? "," : ", ", I = (t) => {
134
+ ...f.props ?? {}
135
+ }, R = ze.value === "zh-CN" ? "," : ", ", M = (t) => {
136
136
  if (typeof t != "string") return !1;
137
- const n = t.trim();
138
- return n ? !!(/[\u4e00-\u9fa5]/.test(n) || /\s/.test(n) || /[()()【】\[\]]/.test(n)) : !1;
139
- }, P = S({
137
+ const o = t.trim();
138
+ return o ? /^\d+$/.test(o) : !1;
139
+ }, j = (t) => typeof t == "number" || M(t), B = (t) => typeof t != "string" ? !1 : t.trim() !== "", I = k({
140
140
  get: () => e.keyword || "",
141
141
  set: (t) => {
142
- u("update:keyword", t);
142
+ d("update:keyword", t);
143
143
  }
144
- }), E = S({
144
+ }), A = k({
145
145
  get: () => e.path,
146
146
  set: (t) => {
147
- u("update:path", t);
147
+ d("update:path", t);
148
148
  }
149
- }), R = (t, n, l = []) => {
150
- for (let o = 0; o < t.length; o++) {
151
- const $ = t[o], r = $[y.label];
152
- if (l.push(r), r === n) return l.join("/");
153
- if ($.children && $.children.length > 0) {
154
- const f = R($[y.children], n, l);
155
- if (f) return f;
149
+ }), S = (t, o, s = []) => {
150
+ for (let r = 0; r < t.length; r++) {
151
+ const l = t[r], n = l[g.label];
152
+ if (s.push(n), n === o) return s.join("/");
153
+ if (l.children && l.children.length > 0) {
154
+ const C = S(l[g.children], o, s);
155
+ if (C) return C;
156
156
  }
157
- l.pop();
157
+ s.pop();
158
158
  }
159
159
  return null;
160
- }, C = S(() => {
161
- var l;
162
- let t = [], n = [];
163
- return b.value ? n = ((l = v.value) == null ? void 0 : l.lazyData) || [] : e.data && (n = Qe(e.data, y.children) || []), n.length && (t = n.map((o) => ({
164
- ...o,
165
- [y.pathName]: o[y.pathName] ? o[y.pathName] : b.value ? o[y.label] : R(e.data, o[y.label])
160
+ }, i = k(() => {
161
+ var s;
162
+ let t = [], o = [];
163
+ return m.value ? o = ((s = p.value) == null ? void 0 : s.lazyData) || [] : e.data && (o = Ke(e.data, g.children) || []), o.length && (t = o.map((r) => ({
164
+ ...r,
165
+ [g.pathName]: r[g.pathName] ? r[g.pathName] : m.value ? r[g.label] : S(e.data, r[g.label])
166
166
  }))), t;
167
- }), i = S({
167
+ }), u = k({
168
168
  get: () => {
169
169
  const t = e.modelValue;
170
- if (t === "" || t === null || t === void 0) return;
171
- if (m.value || C.value.find((l) => (l == null ? void 0 : l[c.value]) === t)) return t;
172
- if (typeof t == "string") {
173
- const l = C.value.find((o) => (o == null ? void 0 : o[y.label]) === t);
174
- if (l) return l == null ? void 0 : l[c.value];
175
- }
176
- return t;
170
+ return t === "" || t === null || t === void 0 ? void 0 : (h.value || i.value.find((s) => (s == null ? void 0 : s[c.value]) === t), t);
177
171
  },
178
172
  set: (t) => {
179
- u("update:modelValue", t);
173
+ d("update:modelValue", t);
180
174
  }
181
- }), s = j(""), w = j(!0), N = () => {
182
- var t, n;
183
- if (!e.showTextStrict || !b.value || e.parentLinkChildrenStrictly) return !0;
184
- if (C.value.length === 0) return I(e.modelValue);
185
- if (m.value) {
186
- if (!i.value || !((t = i.value) != null && t.length)) return !0;
187
- const l = C.value.map((o) => o[c.value]);
188
- return (n = i.value) == null ? void 0 : n.some((o) => l.includes(o));
175
+ }), $ = N(""), O = N(!0), z = () => {
176
+ var t;
177
+ if (!e.showTextStrict || !m.value || e.parentLinkChildrenStrictly) return !0;
178
+ if (i.value.length === 0) return B(e.modelValue);
179
+ if (h.value) {
180
+ if (!u.value || !((t = u.value) != null && t.length)) return !0;
181
+ const o = i.value.map((n) => n[c.value]), s = Array.isArray(u.value) ? u.value : [], r = s.some((n) => B(n)), l = s.some((n) => j(n) && o.includes(n));
182
+ return r || l;
189
183
  } else
190
- return !i.value || C.value.find((o) => o[c.value] === i.value) ? !0 : I(e.modelValue);
184
+ return !u.value || i.value.find((s) => s[c.value] === u.value) ? !0 : B(e.modelValue);
191
185
  };
192
- ve(
193
- () => [C.value, i.value],
194
- ([t, n]) => {
195
- if (w.value = !N(), !w.value)
196
- if (m.value)
197
- if (!Array.isArray(n) || !n.length)
198
- s.value = "";
186
+ ye(
187
+ () => [i.value, u.value],
188
+ ([t, o]) => {
189
+ if (O.value = !z(), !O.value)
190
+ if (h.value)
191
+ if (!Array.isArray(o) || !o.length)
192
+ $.value = "";
199
193
  else {
200
- const l = t == null ? void 0 : t.filter((o) => n.includes(o[c.value]));
201
- l != null && l.length ? s.value = l.map((o) => e.showFullPath ? o[y.pathName] : o[y.label]).join(M) : s.value = "";
194
+ const r = (o ?? []).map((l) => {
195
+ var C;
196
+ const n = (C = t == null ? void 0 : t.find) == null ? void 0 : C.call(t, (G) => (G == null ? void 0 : G[c.value]) === l);
197
+ return n ? e.showFullPath ? n == null ? void 0 : n[g.pathName] : n == null ? void 0 : n[g.label] : j(l) || l == null ? "" : String(l);
198
+ }).filter((l) => !!l);
199
+ $.value = r.join(R);
202
200
  }
203
- else if (!n)
204
- s.value = "";
201
+ else if (!o)
202
+ $.value = "";
205
203
  else {
206
- const l = t == null ? void 0 : t.find((o) => o[c.value] === n);
207
- l ? s.value = e.showFullPath ? l[y.pathName] : l[y.label] : s.value = I(e.modelValue) ? e.modelValue : "";
204
+ const s = t == null ? void 0 : t.find((r) => r[c.value] === o);
205
+ s ? $.value = e.showFullPath ? s[g.pathName] : s[g.label] : $.value = e.modelValue === null || e.modelValue === void 0 ? "" : String(e.modelValue);
208
206
  }
209
207
  },
210
208
  { immediate: !0 }
211
209
  );
212
- const W = S(() => ({
210
+ const Q = k(() => ({
213
211
  height: e.poppverHeight ? te(e.poppverHeight) : void 0,
214
212
  maxHeight: e.poppverMaxHeight ? te(e.poppverMaxHeight) : void 0
215
- })), q = () => {
216
- u("visible-change", !0);
217
- }, X = () => {
213
+ })), Y = () => {
214
+ d("visible-change", !0);
215
+ }, Z = () => {
218
216
  var t;
219
- P.value = "", (t = v.value) == null || t.searchClear(), u("visible-change", !1);
220
- }, J = Kt(() => {
217
+ I.value = "", (t = p.value) == null || t.searchClear(), d("visible-change", !1);
218
+ }, re = tr(() => {
221
219
  e.disabled || e.isView || (T.value ? T.value = !1 : (document.body.click(), T.value = !0));
222
- }, 200), F = async () => {
223
- var n, l;
220
+ }, 200), W = async () => {
221
+ var o, s;
224
222
  await _();
225
223
  let t = [];
226
- m.value || (i.value || i.value === 0) && (b.value && await ((n = v.value) == null ? void 0 : n.lazyDataNextTick(i.value)), t = C.value.filter((o) => o[c.value] === i.value)), m.value && (i.value || i.value.length) && (b.value && await ((l = v.value) == null ? void 0 : l.lazyDataNextTick(i.value)), t = C.value.filter((o) => i.value.includes(o[c.value]))), u("change", i.value, t);
227
- }, A = j(!1), re = async () => {
228
- T.value = !1, i.value = m.value ? [] : "", F(), A.value = !0;
224
+ if (h.value || (u.value || u.value === 0) && (m.value && j(u.value) && await ((o = p.value) == null ? void 0 : o.lazyDataNextTick(u.value)), t = i.value.filter((r) => r[c.value] === u.value)), h.value && (u.value || u.value.length)) {
225
+ const l = (Array.isArray(u.value) ? u.value : []).filter((n) => j(n));
226
+ m.value && l.length && await ((s = p.value) == null ? void 0 : s.lazyDataNextTick(l)), t = i.value.filter((n) => l.includes(n[c.value]));
227
+ }
228
+ d("change", u.value, t);
229
+ }, F = N(!1), ae = async () => {
230
+ T.value = !1, u.value = h.value ? [] : "", W(), F.value = !0;
229
231
  }, le = async (t) => {
230
- var n, l, o, $, r, f;
231
- if (!A.value && m.value) {
232
- if (!b.value && !L.value) {
233
- let p = (l = (n = v.value) == null ? void 0 : n.treeRef) == null ? void 0 : l.getNode(t);
234
- p.checked = !1, (o = v.value) == null || o.childLinkParent(p, p.checked), ($ = v.value) == null || $.parentLinkChild(p, p.checked);
235
- }
236
- if (b.value && e.parentLinkChildrenStrictly) {
237
- let p = C.value.find((B) => B[c.value] === t);
238
- if (p && ((r = v.value) != null && r.getGrandChildrenFn)) {
239
- const B = await v.value.getGrandChildrenFn(p);
240
- if (B && B.length) {
241
- const je = B.map((se) => se[c.value]);
242
- i.value && ((f = i.value) != null && f.length) && (i.value = i.value.filter((se) => !je.includes(se)));
243
- }
232
+ var s, r, l, n, C, G;
233
+ if (F.value || !h.value) return;
234
+ if (!i.value.find((D) => (D == null ? void 0 : D[c.value]) === t)) {
235
+ W();
236
+ return;
237
+ }
238
+ if (!m.value && !w.value) {
239
+ let D = (r = (s = p.value) == null ? void 0 : s.treeRef) == null ? void 0 : r.getNode(t);
240
+ D.checked = !1, (l = p.value) == null || l.childLinkParent(D, D.checked), (n = p.value) == null || n.parentLinkChild(D, D.checked);
241
+ }
242
+ if (m.value && e.parentLinkChildrenStrictly) {
243
+ let D = i.value.find((U) => U[c.value] === t);
244
+ if (D && ((C = p.value) != null && C.getGrandChildrenFn)) {
245
+ const U = await p.value.getGrandChildrenFn(D);
246
+ if (U && U.length) {
247
+ const xe = U.map((fe) => fe[c.value]);
248
+ u.value && ((G = u.value) != null && G.length) && (u.value = u.value.filter((fe) => !xe.includes(fe)));
244
249
  }
245
250
  }
246
- F();
247
251
  }
248
- }, ae = (t) => {
252
+ W();
253
+ }, ne = (t) => {
249
254
  if (!e.filter) return;
250
- const n = t && (t == null ? void 0 : t.trim());
251
- P.value = n, T.value || (T.value = !0);
252
- }, ne = () => {
253
- var t, n;
254
- m.value || (T.value = !1, e.filter && ((n = (t = h.value) == null ? void 0 : t.$select) == null || n.focus()));
255
- }, Q = () => g != null && g.value && g.value.offsetWidth ? g.value.offsetWidth + "px" : "100%", Y = () => {
255
+ const o = t && (t == null ? void 0 : t.trim());
256
+ I.value = o, T.value || (T.value = !0);
257
+ }, oe = () => {
258
+ var t, o;
259
+ h.value || (T.value = !1, e.filter && ((o = (t = v.value) == null ? void 0 : t.$select) == null || o.focus()));
260
+ }, H = () => y != null && y.value && y.value.offsetWidth ? y.value.offsetWidth + "px" : "100%", E = () => {
256
261
  _(() => {
257
- k.value = e.width ? te(e.width) : Q(), O.value = e.poppverWidth ? te(e.poppverWidth) : Q();
262
+ b.value = e.width ? te(e.width) : H(), x.value = e.poppverWidth ? te(e.poppverWidth) : H();
258
263
  });
259
- }, Z = (t) => {
260
- var n;
261
- A.value && (A.value = !1), (n = h.value) == null || n.toChangeMaxCount(!0), u("focus", t);
262
- }, G = (t) => {
263
- u("blur", t);
264
+ }, ie = (t) => {
265
+ var o;
266
+ F.value && (F.value = !1), (o = v.value) == null || o.toChangeMaxCount(!0), d("focus", t);
267
+ }, se = (t) => {
268
+ d("blur", t);
264
269
  };
265
- ve(
270
+ ye(
266
271
  () => T.value,
267
272
  (t) => {
268
- var l, o;
269
- const n = (l = g.value) == null ? void 0 : l.querySelector(".ant-select-arrow>.das-icon");
270
- t ? n.style.transform = "rotate(180deg)" : n.style.transform = "", (o = h.value) == null || o.toChangeMaxCount(t), _(() => {
271
- var $, r, f;
272
- (f = (r = ($ = a(D)) == null ? void 0 : $.popperRef) == null ? void 0 : r.popperInstanceRef) == null || f.update();
273
+ var s, r;
274
+ const o = (s = y.value) == null ? void 0 : s.querySelector(".ant-select-arrow>.das-icon");
275
+ t ? o.style.transform = "rotate(180deg)" : o.style.transform = "", (r = v.value) == null || r.toChangeMaxCount(t), _(() => {
276
+ var l, n, C;
277
+ (C = (n = (l = a(V)) == null ? void 0 : l.popperRef) == null ? void 0 : n.popperInstanceRef) == null || C.update();
273
278
  });
274
279
  }
275
280
  );
276
- const K = j(null), oe = () => new Promise((t) => {
277
- const n = () => {
278
- var o;
279
- const l = (o = g.value) == null ? void 0 : o.querySelector(".ant-select-selector");
280
- if (l) return t(l);
281
- setTimeout(() => n(), 50);
281
+ const K = N(null), ue = () => new Promise((t) => {
282
+ const o = () => {
283
+ var r;
284
+ const s = (r = y.value) == null ? void 0 : r.querySelector(".ant-select-selector");
285
+ if (s) return t(s);
286
+ setTimeout(() => o(), 50);
282
287
  };
283
- n();
284
- }), ie = (t) => {
285
- i.value = t;
288
+ o();
289
+ }), de = (t) => {
290
+ u.value = t;
286
291
  };
287
- return Pe(async () => {
288
- Y();
289
- const t = await oe();
290
- t && (K.value = Je((n) => {
292
+ return Ie(async () => {
293
+ E();
294
+ const t = await ue();
295
+ t && (K.value = Ze((o) => {
291
296
  _(() => {
292
- var l, o, $;
293
- ($ = (o = (l = a(D)) == null ? void 0 : l.popperRef) == null ? void 0 : o.popperInstanceRef) == null || $.update(), Y();
297
+ var s, r, l;
298
+ (l = (r = (s = a(V)) == null ? void 0 : s.popperRef) == null ? void 0 : r.popperInstanceRef) == null || l.update(), E();
294
299
  });
295
300
  }, t));
296
- }), Ne(() => {
301
+ }), Be(() => {
297
302
  var t;
298
303
  (t = K.value) == null || t.disconnect();
299
304
  }), {
300
- innerValue: i,
301
- popoverRef: D,
302
- dasTreeSelectRef: g,
303
- $tree: v,
304
- $select: h,
305
- innerKeyword: P,
306
- realWidth: k,
307
- realPoppverWidth: O,
308
- poppverContentStyle: W,
309
- treePath: E,
310
- treeProps: y,
311
- selectOptions: C,
312
- currentLabel: s,
313
- poppverShow: q,
314
- poppverHide: X,
315
- treeChange: F,
316
- nodeChange: ne,
305
+ innerValue: u,
306
+ popoverRef: V,
307
+ dasTreeSelectRef: y,
308
+ $tree: p,
309
+ $select: v,
310
+ innerKeyword: I,
311
+ realWidth: b,
312
+ realPoppverWidth: x,
313
+ poppverContentStyle: Q,
314
+ treePath: A,
315
+ treeProps: g,
316
+ selectOptions: i,
317
+ currentLabel: $,
318
+ poppverShow: Y,
319
+ poppverHide: Z,
320
+ treeChange: W,
321
+ nodeChange: oe,
317
322
  deselect: le,
318
- selectSearch: ae,
319
- selectClear: re,
323
+ selectSearch: ne,
324
+ selectClear: ae,
320
325
  popoverVisible: T,
321
- selectMouseDown: J,
322
- resetDefaultVal: ie,
323
- focus: Z,
324
- blur: G,
325
- checkselectOptionsData: N,
326
- textHide: w,
327
- showCheckbox: m
326
+ selectMouseDown: re,
327
+ resetDefaultVal: de,
328
+ focus: ie,
329
+ blur: se,
330
+ checkselectOptionsData: z,
331
+ textHide: O,
332
+ showCheckbox: h
328
333
  };
329
- }, tr = {
334
+ }, lr = {
330
335
  key: 1,
331
336
  class: "das-tree-select__selct-text-content"
332
- }, rr = {
337
+ }, nr = {
333
338
  name: "DasTreeSelect",
334
339
  inheritAttrs: !1
335
- }, lr = /* @__PURE__ */ xe({
336
- ...rr,
340
+ }, or = /* @__PURE__ */ Oe({
341
+ ...nr,
337
342
  props: {
338
343
  data: { default: () => [] },
339
344
  mode: { default: void 0 },
@@ -368,262 +373,262 @@ const Kt = /* @__PURE__ */ Ke(Zt), _t = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
368
373
  virtual: { type: Boolean, default: !1 }
369
374
  },
370
375
  emits: ["update:modelValue", "update:path", "update:keyword", "change", "focus", "blur", "visible-change"],
371
- setup(e, { expose: u, emit: c }) {
372
- const d = e, b = c, L = Oe(), g = S(() => d.placeholder || Ae("请选择")), h = S(() => L.nodeKey ?? L["node-key"] ?? "id"), v = S(() => d.load ?? void 0), D = S(() => d.search ?? void 0), T = S(() => d.getGrandChildren ?? void 0), k = S(() => L.lazy ?? !!v.value), O = S(() => k.value ? !1 : d.defaultExpandAll), m = S(() => d.selectAttrs ? d.selectAttrs : {}), y = S(() => !!(d.disabled || d.isView)), M = S(() => d.parentLinkChildrenStrictly || d.childLinkParentStrictly ? !0 : !!(d.checkStrictly ?? k.value)), I = {
376
+ setup(e, { expose: d, emit: c }) {
377
+ const f = e, m = c, w = Re(), y = k(() => f.placeholder || He("请选择")), v = k(() => w.nodeKey ?? w["node-key"] ?? "id"), p = k(() => f.load ?? void 0), V = k(() => f.search ?? void 0), T = k(() => f.getGrandChildren ?? void 0), b = k(() => w.lazy ?? !!p.value), x = k(() => b.value ? !1 : f.defaultExpandAll), h = k(() => f.selectAttrs ? f.selectAttrs : {}), g = k(() => !!(f.disabled || f.isView)), R = k(() => f.parentLinkChildrenStrictly || f.childLinkParentStrictly ? !0 : !!(f.checkStrictly ?? b.value)), M = {
373
378
  fn: () => {
374
- G.value = !1;
379
+ E.value = !1;
375
380
  }
376
- }, P = (r) => {
381
+ }, j = (r) => {
377
382
  r.key === "Enter" && r.stopPropagation();
378
383
  }, {
379
- dasTreeSelectRef: E,
380
- $tree: R,
381
- $select: C,
382
- innerValue: i,
383
- innerKeyword: s,
384
- realWidth: w,
385
- poppverContentStyle: N,
386
- realPoppverWidth: W,
387
- treeChange: q,
388
- nodeChange: X,
389
- treePath: J,
390
- treeProps: F,
391
- selectOptions: A,
392
- currentLabel: re,
393
- popoverRef: le,
384
+ dasTreeSelectRef: B,
385
+ $tree: I,
386
+ $select: A,
387
+ innerValue: S,
388
+ innerKeyword: i,
389
+ realWidth: u,
390
+ poppverContentStyle: $,
391
+ realPoppverWidth: O,
392
+ treeChange: z,
393
+ nodeChange: Q,
394
+ treePath: Y,
395
+ treeProps: Z,
396
+ selectOptions: re,
397
+ currentLabel: W,
398
+ popoverRef: F,
394
399
  deselect: ae,
395
- poppverShow: ne,
396
- poppverHide: Q,
397
- selectSearch: Y,
398
- selectMouseDown: Z,
399
- popoverVisible: G,
400
- resetDefaultVal: K,
401
- selectClear: oe,
402
- focus: ie,
403
- blur: t,
404
- textHide: n,
405
- checkselectOptionsData: l,
400
+ poppverShow: le,
401
+ poppverHide: ne,
402
+ selectSearch: oe,
403
+ selectMouseDown: H,
404
+ popoverVisible: E,
405
+ resetDefaultVal: ie,
406
+ selectClear: se,
407
+ focus: K,
408
+ blur: ue,
409
+ textHide: de,
410
+ checkselectOptionsData: t,
406
411
  showCheckbox: o
407
- } = er(d, b, h, L, k, M), $ = S(() => m.value.isTooltip ? m.value.isTooltip && l() : m.value["is-tooltip"] ? m.value["is-tooltip"] && l() : l());
408
- return u({
412
+ } = ar(f, m, v, w, b, R), s = k(() => h.value.isTooltip ? h.value.isTooltip && t() : h.value["is-tooltip"] ? h.value["is-tooltip"] && t() : t());
413
+ return d({
409
414
  /** das-select */
410
- $select: C,
415
+ $select: A,
411
416
  /** das-tree */
412
- $tree: R,
417
+ $tree: I,
413
418
  /** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
414
- resetDefaultVal: K
415
- }), (r, f) => he((z(), ue("div", {
419
+ resetDefaultVal: ie
420
+ }), (r, l) => be((q(), ce("div", {
416
421
  ref_key: "dasTreeSelectRef",
417
- ref: E,
418
- class: Be({ "das-ui-tree-select": !0, "is-lazy": k.value, "text-hide": a(n), "show-select": r.showSelectDom }),
419
- style: me({ width: a(w) })
422
+ ref: B,
423
+ class: Ee({ "das-ui-tree-select": !0, "is-lazy": b.value, "text-hide": a(de), "show-select": r.showSelectDom }),
424
+ style: ge({ width: a(u) })
420
425
  }, [
421
- de(a(We), {
426
+ pe(a(Ge), {
422
427
  ref_key: "popoverRef",
423
- ref: le,
424
- visible: a(G),
428
+ ref: F,
429
+ visible: a(E),
425
430
  "popper-class": "das-tree-select-popper",
426
431
  placement: "bottom-start",
427
432
  "show-arrow": !1,
428
- width: a(W),
429
- disabled: y.value,
433
+ width: a(O),
434
+ disabled: g.value,
430
435
  "fallback-placements": ["bottom", "top", "right", "left"],
431
- onShow: a(ne),
432
- onHide: a(Q)
436
+ onShow: a(le),
437
+ onHide: a(ne)
433
438
  }, {
434
- reference: V(() => [
435
- r.showSelectDom ? (z(), ue("div", {
439
+ reference: L(() => [
440
+ r.showSelectDom ? (q(), ce("div", {
436
441
  key: 0,
437
442
  class: "das-tree-select__select-content",
438
- onMousedown: f[1] || (f[1] = fe(
443
+ onMousedown: l[1] || (l[1] = ve(
439
444
  //@ts-ignore
440
- (...p) => a(Z) && a(Z)(...p),
445
+ (...n) => a(H) && a(H)(...n),
441
446
  ["stop"]
442
447
  ))
443
448
  }, [
444
- de(a(Ge), ce({
449
+ pe(a(Ue), he({
445
450
  ref_key: "$select",
446
- ref: C,
447
- class: { "is-active": a(G) },
451
+ ref: A,
452
+ class: { "is-active": a(E) },
448
453
  dropdownClassName: "das-tree-select-dropdown",
449
- modelValue: a(i),
450
- "onUpdate:modelValue": f[0] || (f[0] = (p) => H(i) ? i.value = p : null)
451
- }, m.value, {
452
- searchValue: a(s),
453
- options: a(A),
454
+ modelValue: a(S),
455
+ "onUpdate:modelValue": l[0] || (l[0] = (n) => X(S) ? S.value = n : null)
456
+ }, h.value, {
457
+ searchValue: a(i),
458
+ options: a(re),
454
459
  disabled: r.disabled,
455
460
  isView: r.isView,
456
461
  size: r.size,
457
462
  mode: r.mode,
458
463
  borderType: r.borderType,
459
- placeholder: g.value,
464
+ placeholder: y.value,
460
465
  "show-search": r.filter,
461
466
  filterOption: r.filter,
462
- width: a(w),
467
+ width: a(u),
463
468
  fieldNames: {
464
- value: h.value,
465
- label: r.showFullPath ? a(F).pathName : a(F).label
469
+ value: v.value,
470
+ label: r.showFullPath ? a(Z).pathName : a(Z).label
466
471
  },
467
- isTooltip: $.value,
472
+ isTooltip: s.value,
468
473
  errorMode: r.errorMode,
469
474
  error: r.error,
470
475
  errorLabel: r.errorLabel,
471
476
  autoClearSearchValue: !1,
472
477
  isExterControlCount: "",
473
478
  onDeselect: a(ae),
474
- onSearch: a(Y),
475
- onInputKeyDown: P,
476
- onFocus: a(ie),
477
- onBlur: a(t),
478
- onClear: a(oe)
479
+ onSearch: a(oe),
480
+ onInputKeyDown: j,
481
+ onFocus: a(K),
482
+ onBlur: a(ue),
483
+ onClear: a(se)
479
484
  }), {
480
- suffixIcon: V(() => [
481
- de(a(qe), {
485
+ suffixIcon: L(() => [
486
+ pe(a(Qe), {
482
487
  size: "medium",
483
488
  style: { transition: "transform 0.5s" },
484
- iconColor: a(G) ? "#5582F3" : "currentColor"
489
+ iconColor: a(E) ? "#5582F3" : "currentColor"
485
490
  }, null, 8, ["iconColor"])
486
491
  ]),
487
492
  _: 1
488
493
  }, 16, ["class", "modelValue", "searchValue", "options", "disabled", "isView", "size", "mode", "borderType", "placeholder", "show-search", "filterOption", "width", "fieldNames", "isTooltip", "errorMode", "error", "errorLabel", "onDeselect", "onSearch", "onFocus", "onBlur", "onClear"])
489
- ], 32)) : he((z(), ue("div", tr, [
490
- Ie(Re(a(re)), 1)
494
+ ], 32)) : be((q(), ce("div", lr, [
495
+ Me(Ae(a(W)), 1)
491
496
  ])), [
492
- [a(Xe)]
497
+ [a(Ye)]
493
498
  ])
494
499
  ]),
495
- default: V(() => [
496
- Me("div", {
500
+ default: L(() => [
501
+ We("div", {
497
502
  class: "das-tree-select__tree-content",
498
- style: me(a(N)),
499
- onClick: f[6] || (f[6] = fe(() => {
503
+ style: ge(a($)),
504
+ onClick: l[6] || (l[6] = ve(() => {
500
505
  }, ["stop"])),
501
- onMousedown: f[7] || (f[7] = fe(() => {
506
+ onMousedown: l[7] || (l[7] = ve(() => {
502
507
  }, ["stop"]))
503
508
  }, [
504
- r.virtual ? (z(), ye(a(ze), ce({
509
+ r.virtual ? (q(), ke(a(qe), he({
505
510
  key: 1,
506
511
  ref_key: "$tree",
507
- ref: R
508
- }, a(L), {
512
+ ref: I
513
+ }, a(w), {
509
514
  data: r.data,
510
- modelValue: a(i),
511
- "onUpdate:modelValue": f[4] || (f[4] = (p) => H(i) ? i.value = p : null),
512
- "filter-value": a(s),
513
- "onUpdate:filterValue": f[5] || (f[5] = (p) => H(s) ? s.value = p : null),
515
+ modelValue: a(S),
516
+ "onUpdate:modelValue": l[4] || (l[4] = (n) => X(S) ? S.value = n : null),
517
+ "filter-value": a(i),
518
+ "onUpdate:filterValue": l[5] || (l[5] = (n) => X(i) ? i.value = n : null),
514
519
  "show-checkbox": a(o),
515
520
  "is-filter": r.filter,
516
521
  "show-filter-input": !1,
517
522
  "filter-mode": "input",
518
- lazy: k.value,
519
- load: v.value,
520
- "batch-load": d.batchLoad,
521
- search: D.value,
522
- path: a(J),
523
- "default-expand-all": O.value,
524
- "check-strictly": k.value ? !0 : M.value,
523
+ lazy: b.value,
524
+ load: p.value,
525
+ "batch-load": f.batchLoad,
526
+ search: V.value,
527
+ path: a(Y),
528
+ "default-expand-all": x.value,
529
+ "check-strictly": b.value ? !0 : R.value,
525
530
  parentLinkChildrenStrictly: r.parentLinkChildrenStrictly,
526
531
  getGrandChildren: T.value,
527
532
  childLinkParentStrictly: r.childLinkParentStrictly,
528
- onChange: a(q),
529
- onNodeChange: a(X)
530
- }), be({
531
- default: V(({ node: p, data: B }) => [
532
- x(r.$slots, "default", {
533
- node: p,
534
- data: B
533
+ onChange: a(z),
534
+ onNodeChange: a(Q)
535
+ }), Se({
536
+ default: L(({ node: n, data: C }) => [
537
+ P(r.$slots, "default", {
538
+ node: n,
539
+ data: C
535
540
  })
536
541
  ]),
537
542
  _: 2
538
543
  }, [
539
544
  r.$slots.prefix ? {
540
545
  name: "prefix",
541
- fn: V(() => [
542
- x(r.$slots, "prefix")
546
+ fn: L(() => [
547
+ P(r.$slots, "prefix")
543
548
  ]),
544
549
  key: "0"
545
550
  } : void 0,
546
551
  r.$slots.suffix ? {
547
552
  name: "suffix",
548
- fn: V(() => [
549
- x(r.$slots, "suffix")
553
+ fn: L(() => [
554
+ P(r.$slots, "suffix")
550
555
  ]),
551
556
  key: "1"
552
557
  } : void 0,
553
558
  r.$slots.prepend ? {
554
559
  name: "prepend",
555
- fn: V(() => [
556
- x(r.$slots, "prepend")
560
+ fn: L(() => [
561
+ P(r.$slots, "prepend")
557
562
  ]),
558
563
  key: "2"
559
564
  } : void 0,
560
565
  r.$slots.append ? {
561
566
  name: "append",
562
- fn: V(() => [
563
- x(r.$slots, "append")
567
+ fn: L(() => [
568
+ P(r.$slots, "append")
564
569
  ]),
565
570
  key: "3"
566
571
  } : void 0
567
- ]), 1040, ["data", "modelValue", "filter-value", "show-checkbox", "is-filter", "lazy", "load", "batch-load", "search", "path", "default-expand-all", "check-strictly", "parentLinkChildrenStrictly", "getGrandChildren", "childLinkParentStrictly", "onChange", "onNodeChange"])) : (z(), ye(a(Ue), ce({
572
+ ]), 1040, ["data", "modelValue", "filter-value", "show-checkbox", "is-filter", "lazy", "load", "batch-load", "search", "path", "default-expand-all", "check-strictly", "parentLinkChildrenStrictly", "getGrandChildren", "childLinkParentStrictly", "onChange", "onNodeChange"])) : (q(), ke(a(Je), he({
568
573
  key: 0,
569
574
  ref_key: "$tree",
570
- ref: R
571
- }, a(L), {
575
+ ref: I
576
+ }, a(w), {
572
577
  data: r.data,
573
- modelValue: a(i),
574
- "onUpdate:modelValue": f[2] || (f[2] = (p) => H(i) ? i.value = p : null),
575
- "filter-value": a(s),
576
- "onUpdate:filterValue": f[3] || (f[3] = (p) => H(s) ? s.value = p : null),
578
+ modelValue: a(S),
579
+ "onUpdate:modelValue": l[2] || (l[2] = (n) => X(S) ? S.value = n : null),
580
+ "filter-value": a(i),
581
+ "onUpdate:filterValue": l[3] || (l[3] = (n) => X(i) ? i.value = n : null),
577
582
  "show-checkbox": a(o),
578
583
  "is-filter": r.filter,
579
584
  "show-filter-input": !1,
580
585
  "filter-mode": "input",
581
- lazy: k.value,
582
- load: v.value,
583
- "batch-load": d.batchLoad,
584
- search: D.value,
585
- path: a(J),
586
- "default-expand-all": O.value,
587
- "check-strictly": k.value ? !0 : M.value,
586
+ lazy: b.value,
587
+ load: p.value,
588
+ "batch-load": f.batchLoad,
589
+ search: V.value,
590
+ path: a(Y),
591
+ "default-expand-all": x.value,
592
+ "check-strictly": b.value ? !0 : R.value,
588
593
  parentLinkChildrenStrictly: r.parentLinkChildrenStrictly,
589
594
  getGrandChildren: T.value,
590
595
  childLinkParentStrictly: r.childLinkParentStrictly,
591
- onChange: a(q),
592
- onNodeChange: a(X)
593
- }), be({
594
- default: V(({ node: p, data: B }) => [
595
- x(r.$slots, "default", {
596
- node: p,
597
- data: B
596
+ onChange: a(z),
597
+ onNodeChange: a(Q)
598
+ }), Se({
599
+ default: L(({ node: n, data: C }) => [
600
+ P(r.$slots, "default", {
601
+ node: n,
602
+ data: C
598
603
  })
599
604
  ]),
600
605
  _: 2
601
606
  }, [
602
607
  r.$slots.prefix ? {
603
608
  name: "prefix",
604
- fn: V(() => [
605
- x(r.$slots, "prefix")
609
+ fn: L(() => [
610
+ P(r.$slots, "prefix")
606
611
  ]),
607
612
  key: "0"
608
613
  } : void 0,
609
614
  r.$slots.suffix ? {
610
615
  name: "suffix",
611
- fn: V(() => [
612
- x(r.$slots, "suffix")
616
+ fn: L(() => [
617
+ P(r.$slots, "suffix")
613
618
  ]),
614
619
  key: "1"
615
620
  } : void 0,
616
621
  r.$slots.prepend ? {
617
622
  name: "prepend",
618
- fn: V(() => [
619
- x(r.$slots, "prepend")
623
+ fn: L(() => [
624
+ P(r.$slots, "prepend")
620
625
  ]),
621
626
  key: "2"
622
627
  } : void 0,
623
628
  r.$slots.append ? {
624
629
  name: "append",
625
- fn: V(() => [
626
- x(r.$slots, "append")
630
+ fn: L(() => [
631
+ P(r.$slots, "append")
627
632
  ]),
628
633
  key: "3"
629
634
  } : void 0
@@ -633,17 +638,17 @@ const Kt = /* @__PURE__ */ Ke(Zt), _t = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
633
638
  _: 3
634
639
  }, 8, ["visible", "width", "disabled", "onShow", "onHide"])
635
640
  ], 6)), [
636
- [a(Ye), I]
641
+ [a(_e), M]
637
642
  ]);
638
643
  }
639
- }), ar = {
644
+ }), ir = {
640
645
  "--das-ui-tree-select-keyword-input-active": "#5582F3",
641
646
  "--das-ui-tree-select-search-no-data": "#999999"
642
647
  };
643
- Ze(ar);
644
- const gr = Ee(lr), kr = () => j(null), Sr = { title: "tree-select 树选择" };
648
+ et(ir);
649
+ const Tr = Fe(or), Cr = () => N(null), wr = { title: "tree-select 树选择" };
645
650
  export {
646
- gr as DasTreeSelect,
647
- kr as DasTreeSelectRef,
648
- Sr as default
651
+ Tr as DasTreeSelect,
652
+ Cr as DasTreeSelectRef,
653
+ wr as default
649
654
  };