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