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