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

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 +2 -2
  2. package/front-end/i18n/front-end-page/dasui_zh-CN.js +2 -2
  3. package/front-end/i18n/front-end-page/dasui_zh-MO.js +2 -2
  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 +325 -289
  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 +377 -364
  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 +9 -3
  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,339 @@
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";
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
3
  import { withInstall as Ee } from "@das-fed/upf-utils/with-install/index";
4
4
  import { ElPopover as We } 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";
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
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) {
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";
16
+ var ee = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
17
+ function Ke(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 _e(e) {
21
+ var u = typeof e;
22
+ return e != null && (u == "object" || u == "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 $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)); )
29
29
  ;
30
- return i;
30
+ return u;
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 dt = ut, ft = dt, ct = /^\s+/;
33
+ function pt(e) {
34
+ return e && e.slice(0, ft(e) + 1).replace(ct, "");
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 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];
39
39
  try {
40
- e[q] = void 0;
40
+ e[U] = void 0;
41
41
  var d = !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 b = bt.call(e);
45
+ return d && (u ? e[U] = c : delete e[U]), b;
46
46
  }
47
- var gt = yt, kt = Object.prototype, St = kt.toString;
48
- function Tt(e) {
49
- return St.call(e);
47
+ var kt = gt, St = Object.prototype, Tt = St.toString;
48
+ function Ct(e) {
49
+ return Tt.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;
51
+ var wt = Ct, ke = Ve, $t = kt, Lt = wt, Vt = "[object Null]", Dt = "[object Undefined]", Se = ke ? ke.toStringTag : void 0;
52
52
  function jt(e) {
53
- return e == null ? e === void 0 ? Dt : Lt : Se && Se in Object(e) ? wt(e) : $t(e);
53
+ return e == null ? e === void 0 ? Dt : Vt : Se && Se in Object(e) ? $t(e) : Lt(e);
54
54
  }
55
- var Nt = jt;
56
- function Pt(e) {
55
+ var Pt = jt;
56
+ function Nt(e) {
57
57
  return e != null && typeof e == "object";
58
58
  }
59
- var Vt = Pt, xt = Nt, Ot = Vt, Bt = "[object Symbol]";
59
+ var xt = Nt, Ot = Pt, Bt = xt, It = "[object Symbol]";
60
60
  function Rt(e) {
61
- return typeof e == "symbol" || Ot(e) && xt(e) == Bt;
61
+ return typeof e == "symbol" || Bt(e) && Ot(e) == It;
62
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;
64
- function At(e) {
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) {
65
65
  if (typeof e == "number")
66
66
  return e;
67
67
  if (Wt(e))
68
68
  return Ce;
69
69
  if (Te(e)) {
70
- var i = typeof e.valueOf == "function" ? e.valueOf() : e;
71
- e = Te(i) ? i + "" : i;
70
+ var u = typeof e.valueOf == "function" ? e.valueOf() : e;
71
+ e = Te(u) ? u + "" : u;
72
72
  }
73
73
  if (typeof e != "string")
74
74
  return e === 0 ? e : +e;
75
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;
76
+ var c = At.test(e);
77
+ return c || Gt.test(e) ? zt(e.slice(2), c ? 2 : 8) : Ft.test(e) ? Ce : +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 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;
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(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;
88
88
  }
89
- function S(s) {
90
- return N = s, m = setTimeout(V, i), w ? b(s) : g;
89
+ function y(s) {
90
+ return D = s, h = setTimeout(P, u), T ? m(s) : g;
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 M(s) {
93
+ var w = s - v, N = s - D, W = u - w;
94
+ return k ? Qt(W, L - N) : W;
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 I(s) {
97
+ var w = s - v, N = s - D;
98
+ return v === void 0 || w >= u || w < 0 || k && N >= L;
99
99
  }
100
- function V() {
100
+ function P() {
101
101
  var s = pe();
102
- if (u(s))
103
- return G(s);
104
- m = setTimeout(V, E(s));
102
+ if (I(s))
103
+ return E(s);
104
+ h = setTimeout(P, M(s));
105
105
  }
106
- function G(s) {
107
- return m = void 0, B && d ? b(s) : (d = y = void 0, g);
106
+ function E(s) {
107
+ return h = void 0, O && d ? m(s) : (d = b = void 0, g);
108
108
  }
109
- function M() {
110
- m !== void 0 && clearTimeout(m), N = 0, d = p = y = m = void 0;
109
+ function R() {
110
+ h !== void 0 && clearTimeout(h), D = 0, d = v = b = h = void 0;
111
111
  }
112
- function D() {
113
- return m === void 0 ? g : G(pe());
112
+ function C() {
113
+ return h === void 0 ? g : E(pe());
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);
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
120
  if (k)
121
- return clearTimeout(m), m = setTimeout(V, i), b(p);
121
+ return clearTimeout(h), h = setTimeout(P, u), m(v);
122
122
  }
123
- return m === void 0 && (m = setTimeout(V, i)), g;
123
+ return h === void 0 && (h = setTimeout(P, u)), g;
124
124
  }
125
- return v.cancel = M, v.flush = D, v;
125
+ return i.cancel = R, i.flush = C, i;
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 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 = {
130
130
  label: "name",
131
131
  children: "children",
132
132
  pathName: "pathName",
133
133
  disabled: "disabled",
134
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({
135
+ }, M = Fe.value === "zh-CN" ? "," : ", ", I = (t) => {
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({
141
140
  get: () => e.keyword || "",
142
141
  set: (t) => {
143
- i("update:keyword", t);
142
+ u("update:keyword", t);
144
143
  }
145
- }), G = T({
144
+ }), E = S({
146
145
  get: () => e.path,
147
146
  set: (t) => {
148
- i("update:path", t);
147
+ u("update:path", t);
149
148
  }
150
- }), M = (t, n, o = []) => {
151
- 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;
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;
157
156
  }
158
- o.pop();
157
+ l.pop();
159
158
  }
160
159
  return null;
161
- }, D = T(() => {
162
- var o;
160
+ }, C = S(() => {
161
+ var l;
163
162
  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) => ({
165
- ...r,
166
- [S.pathName]: r[S.pathName] ? r[S.pathName] : y.value ? r[S.label] : M(e.data, r[S.label])
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])
167
166
  }))), t;
168
- }), v = P(""), s = P(!0), L = () => {
167
+ }), i = S({
168
+ get: () => {
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;
177
+ },
178
+ set: (t) => {
179
+ u("update:modelValue", t);
180
+ }
181
+ }), s = j(""), w = j(!0), N = () => {
169
182
  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) {
173
- 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));
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));
176
189
  } else
177
- return u.value ? !!D.value.find((r) => r[c.value] === u.value) : !0;
190
+ return !i.value || C.value.find((o) => o[c.value] === i.value) ? !0 : I(e.modelValue);
178
191
  };
179
192
  ve(
180
- () => [D.value, u.value],
193
+ () => [C.value, i.value],
181
194
  ([t, n]) => {
182
- if (s.value = !L(), !s.value)
183
- if (b.value)
184
- if (!n || !(n != null && n.length))
185
- v.value = "";
195
+ if (w.value = !N(), !w.value)
196
+ if (m.value)
197
+ if (!Array.isArray(n) || !n.length)
198
+ s.value = "";
186
199
  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 = "";
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 = "";
189
202
  }
190
203
  else if (!n)
191
- v.value = "";
204
+ s.value = "";
192
205
  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 = "";
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 : "";
195
208
  }
196
209
  },
197
210
  { immediate: !0 }
198
211
  );
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);
212
+ const W = S(() => ({
213
+ height: e.poppverHeight ? te(e.poppverHeight) : void 0,
214
+ maxHeight: e.poppverMaxHeight ? te(e.poppverMaxHeight) : void 0
215
+ })), q = () => {
216
+ u("visible-change", !0);
204
217
  }, X = () => {
205
218
  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();
219
+ P.value = "", (t = v.value) == null || t.searchClear(), u("visible-change", !1);
220
+ }, J = Kt(() => {
221
+ e.disabled || e.isView || (T.value ? T.value = !1 : (document.body.click(), T.value = !0));
222
+ }, 200), F = async () => {
223
+ var n, l;
224
+ await _();
212
225
  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;
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;
216
229
  }, 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);
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);
222
235
  }
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)));
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)));
230
243
  }
231
244
  }
232
245
  }
233
- z();
246
+ F();
234
247
  }
235
248
  }, ae = (t) => {
236
249
  if (!e.filter) return;
237
250
  const n = t && (t == null ? void 0 : t.trim());
238
- V.value = n, w.value || (w.value = !0);
239
- }, re = () => {
251
+ P.value = n, T.value || (T.value = !0);
252
+ }, ne = () => {
240
253
  var t, n;
241
- b.value || (w.value = !1, e.filter && ((n = (t = m.value) == null ? void 0 : t.$select) == null || n.focus()));
254
+ m.value || (T.value = !1, e.filter && ((n = (t = h.value) == null ? void 0 : t.$select) == null || n.focus()));
242
255
  }, 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();
256
+ _(() => {
257
+ k.value = e.width ? te(e.width) : Q(), O.value = e.poppverWidth ? te(e.poppverWidth) : Q();
245
258
  });
246
- }, ne = (t) => {
247
- var n;
248
- W.value && (W.value = !1), (n = m.value) == null || n.toChangeMaxCount(!0), i("focus", t);
249
259
  }, Z = (t) => {
250
- i("blur", 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);
251
264
  };
252
265
  ve(
253
- () => w.value,
266
+ () => T.value,
254
267
  (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();
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();
260
273
  });
261
274
  }
262
275
  );
263
- const F = P(null), oe = () => new Promise((t) => {
276
+ const K = j(null), oe = () => new Promise((t) => {
264
277
  const n = () => {
265
- var r;
266
- const o = (r = g.value) == null ? void 0 : r.querySelector(".ant-select-selector");
267
- if (o) return t(o);
278
+ var o;
279
+ const l = (o = g.value) == null ? void 0 : o.querySelector(".ant-select-selector");
280
+ if (l) return t(l);
268
281
  setTimeout(() => n(), 50);
269
282
  };
270
283
  n();
271
284
  }), ie = (t) => {
272
- u.value = t;
285
+ i.value = t;
273
286
  };
274
- return Ne(async () => {
287
+ return Pe(async () => {
275
288
  Y();
276
289
  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();
290
+ t && (K.value = Je((n) => {
291
+ _(() => {
292
+ var l, o, $;
293
+ ($ = (o = (l = a(D)) == null ? void 0 : l.popperRef) == null ? void 0 : o.popperInstanceRef) == null || $.update(), Y();
281
294
  });
282
295
  }, t));
283
- }), Pe(() => {
296
+ }), Ne(() => {
284
297
  var t;
285
- (t = F.value) == null || t.disconnect();
298
+ (t = K.value) == null || t.disconnect();
286
299
  }), {
287
- innerValue: u,
288
- popoverRef: N,
300
+ innerValue: i,
301
+ popoverRef: D,
289
302
  dasTreeSelectRef: g,
290
- $tree: p,
291
- $select: m,
292
- innerKeyword: V,
303
+ $tree: v,
304
+ $select: h,
305
+ innerKeyword: P,
293
306
  realWidth: k,
294
- realPoppverWidth: B,
295
- poppverContentStyle: R,
296
- treePath: G,
297
- treeProps: S,
298
- selectOptions: D,
299
- currentLabel: v,
300
- poppverShow: I,
307
+ realPoppverWidth: O,
308
+ poppverContentStyle: W,
309
+ treePath: E,
310
+ treeProps: y,
311
+ selectOptions: C,
312
+ currentLabel: s,
313
+ poppverShow: q,
301
314
  poppverHide: X,
302
- treeChange: z,
303
- nodeChange: re,
315
+ treeChange: F,
316
+ nodeChange: ne,
304
317
  deselect: le,
305
318
  selectSearch: ae,
306
- selectClear: te,
307
- popoverVisible: w,
319
+ selectClear: re,
320
+ popoverVisible: T,
308
321
  selectMouseDown: J,
309
322
  resetDefaultVal: ie,
310
- focus: ne,
311
- blur: Z,
312
- checkselectOptionsData: L,
313
- textHide: s,
314
- showCheckbox: b
323
+ focus: Z,
324
+ blur: G,
325
+ checkselectOptionsData: N,
326
+ textHide: w,
327
+ showCheckbox: m
315
328
  };
316
- }, el = {
329
+ }, tr = {
317
330
  key: 1,
318
331
  class: "das-tree-select__selct-text-content"
319
- }, tl = {
332
+ }, rr = {
320
333
  name: "DasTreeSelect",
321
334
  inheritAttrs: !1
322
- }, ll = /* @__PURE__ */ Ve({
323
- ...tl,
335
+ }, lr = /* @__PURE__ */ xe({
336
+ ...rr,
324
337
  props: {
325
338
  data: { default: () => [] },
326
339
  mode: { default: void 0 },
@@ -355,262 +368,262 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
355
368
  virtual: { type: Boolean, default: !1 }
356
369
  },
357
370
  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 = {
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 = {
360
373
  fn: () => {
361
- console.log("click-out"), F.value = !1;
374
+ G.value = !1;
362
375
  }
363
- }, V = (l) => {
364
- l.key === "Enter" && l.stopPropagation();
376
+ }, P = (r) => {
377
+ r.key === "Enter" && r.stopPropagation();
365
378
  }, {
366
- dasTreeSelectRef: G,
367
- $tree: M,
368
- $select: D,
369
- innerValue: v,
379
+ dasTreeSelectRef: E,
380
+ $tree: R,
381
+ $select: C,
382
+ innerValue: i,
370
383
  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,
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,
394
+ deselect: ae,
395
+ poppverShow: ne,
396
+ poppverHide: Q,
397
+ selectSearch: Y,
385
398
  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({
399
+ popoverVisible: G,
400
+ resetDefaultVal: K,
401
+ selectClear: oe,
402
+ focus: ie,
403
+ blur: t,
404
+ textHide: n,
405
+ checkselectOptionsData: l,
406
+ 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({
396
409
  /** das-select */
397
- $select: D,
410
+ $select: C,
398
411
  /** das-tree */
399
- $tree: M,
412
+ $tree: R,
400
413
  /** 设置默认值,当默认值为动态设置时使用(兼容老版本) */
401
- resetDefaultVal: oe
402
- }), (l, f) => he((H(), ue("div", {
414
+ resetDefaultVal: K
415
+ }), (r, f) => he((z(), ue("div", {
403
416
  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) })
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) })
407
420
  }, [
408
421
  de(a(We), {
409
422
  ref_key: "popoverRef",
410
- ref: ae,
411
- visible: a(F),
423
+ ref: le,
424
+ visible: a(G),
412
425
  "popper-class": "das-tree-select-popper",
413
426
  placement: "bottom-start",
414
427
  "show-arrow": !1,
415
- width: a(I),
416
- disabled: S.value,
428
+ width: a(W),
429
+ disabled: y.value,
417
430
  "fallback-placements": ["bottom", "top", "right", "left"],
418
- onShow: a(Q),
419
- onHide: a(Y)
431
+ onShow: a(ne),
432
+ onHide: a(Q)
420
433
  }, {
421
- reference: j(() => [
422
- l.showSelectDom ? (H(), ue("div", {
434
+ reference: V(() => [
435
+ r.showSelectDom ? (z(), ue("div", {
423
436
  key: 0,
424
437
  class: "das-tree-select__select-content",
425
438
  onMousedown: f[1] || (f[1] = fe(
426
439
  //@ts-ignore
427
- (...h) => a(Z) && a(Z)(...h),
440
+ (...p) => a(Z) && a(Z)(...p),
428
441
  ["stop"]
429
442
  ))
430
443
  }, [
431
- de(a(Ie), ce({
444
+ de(a(Ge), ce({
432
445
  ref_key: "$select",
433
- ref: D,
434
- class: { "is-active": a(F) },
446
+ ref: C,
447
+ class: { "is-active": a(G) },
435
448
  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, {
449
+ modelValue: a(i),
450
+ "onUpdate:modelValue": f[0] || (f[0] = (p) => H(i) ? i.value = p : null)
451
+ }, m.value, {
439
452
  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,
453
+ options: a(A),
454
+ disabled: r.disabled,
455
+ isView: r.isView,
456
+ size: r.size,
457
+ mode: r.mode,
458
+ borderType: r.borderType,
446
459
  placeholder: g.value,
447
- "show-search": l.filter,
448
- filterOption: l.filter,
449
- width: a(L),
460
+ "show-search": r.filter,
461
+ filterOption: r.filter,
462
+ width: a(w),
450
463
  fieldNames: {
451
- value: m.value,
452
- label: l.showFullPath ? a(W).pathName : a(W).label
464
+ value: h.value,
465
+ label: r.showFullPath ? a(F).pathName : a(F).label
453
466
  },
454
- isTooltip: x.value,
455
- errorMode: l.errorMode,
456
- error: l.error,
457
- errorLabel: l.errorLabel,
467
+ isTooltip: $.value,
468
+ errorMode: r.errorMode,
469
+ error: r.error,
470
+ errorLabel: r.errorLabel,
458
471
  autoClearSearchValue: !1,
459
472
  isExterControlCount: "",
460
- onDeselect: a(re),
461
- onSearch: a(ne),
462
- onInputKeyDown: V,
463
- onFocus: a(t),
464
- onBlur: a(n),
465
- onClear: a(ie)
473
+ onDeselect: a(ae),
474
+ onSearch: a(Y),
475
+ onInputKeyDown: P,
476
+ onFocus: a(ie),
477
+ onBlur: a(t),
478
+ onClear: a(oe)
466
479
  }), {
467
- suffixIcon: j(() => [
468
- de(a(Ue), {
480
+ suffixIcon: V(() => [
481
+ de(a(qe), {
469
482
  size: "medium",
470
483
  style: { transition: "transform 0.5s" },
471
- iconColor: a(F) ? "#5582F3" : "currentColor"
484
+ iconColor: a(G) ? "#5582F3" : "currentColor"
472
485
  }, null, 8, ["iconColor"])
473
486
  ]),
474
487
  _: 1
475
488
  }, 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)
489
+ ], 32)) : he((z(), ue("div", tr, [
490
+ Ie(Re(a(re)), 1)
478
491
  ])), [
479
- [a(qe)]
492
+ [a(Xe)]
480
493
  ])
481
494
  ]),
482
- default: j(() => [
495
+ default: V(() => [
483
496
  Me("div", {
484
497
  class: "das-tree-select__tree-content",
485
- style: me(a(R)),
498
+ style: me(a(N)),
486
499
  onClick: f[6] || (f[6] = fe(() => {
487
500
  }, ["stop"])),
488
501
  onMousedown: f[7] || (f[7] = fe(() => {
489
502
  }, ["stop"]))
490
503
  }, [
491
- l.virtual ? (H(), be(a(ze), ce({
504
+ r.virtual ? (z(), ye(a(ze), ce({
492
505
  key: 1,
493
506
  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),
507
+ ref: R
508
+ }, a(L), {
509
+ data: r.data,
510
+ modelValue: a(i),
511
+ "onUpdate:modelValue": f[4] || (f[4] = (p) => H(i) ? i.value = p : null),
499
512
  "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,
513
+ "onUpdate:filterValue": f[5] || (f[5] = (p) => H(s) ? s.value = p : null),
514
+ "show-checkbox": a(o),
515
+ "is-filter": r.filter,
503
516
  "show-filter-input": !1,
504
517
  "filter-mode": "input",
505
518
  lazy: k.value,
506
- load: p.value,
519
+ load: v.value,
507
520
  "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
521
+ search: D.value,
522
+ path: a(J),
523
+ "default-expand-all": O.value,
524
+ "check-strictly": k.value ? !0 : M.value,
525
+ parentLinkChildrenStrictly: r.parentLinkChildrenStrictly,
526
+ getGrandChildren: T.value,
527
+ 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
522
535
  })
523
536
  ]),
524
537
  _: 2
525
538
  }, [
526
- l.$slots.prefix ? {
539
+ r.$slots.prefix ? {
527
540
  name: "prefix",
528
- fn: j(() => [
529
- O(l.$slots, "prefix")
541
+ fn: V(() => [
542
+ x(r.$slots, "prefix")
530
543
  ]),
531
544
  key: "0"
532
545
  } : void 0,
533
- l.$slots.suffix ? {
546
+ r.$slots.suffix ? {
534
547
  name: "suffix",
535
- fn: j(() => [
536
- O(l.$slots, "suffix")
548
+ fn: V(() => [
549
+ x(r.$slots, "suffix")
537
550
  ]),
538
551
  key: "1"
539
552
  } : void 0,
540
- l.$slots.prepend ? {
553
+ r.$slots.prepend ? {
541
554
  name: "prepend",
542
- fn: j(() => [
543
- O(l.$slots, "prepend")
555
+ fn: V(() => [
556
+ x(r.$slots, "prepend")
544
557
  ]),
545
558
  key: "2"
546
559
  } : void 0,
547
- l.$slots.append ? {
560
+ r.$slots.append ? {
548
561
  name: "append",
549
- fn: j(() => [
550
- O(l.$slots, "append")
562
+ fn: V(() => [
563
+ x(r.$slots, "append")
551
564
  ]),
552
565
  key: "3"
553
566
  } : 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({
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({
555
568
  key: 0,
556
569
  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),
570
+ ref: R
571
+ }, a(L), {
572
+ data: r.data,
573
+ modelValue: a(i),
574
+ "onUpdate:modelValue": f[2] || (f[2] = (p) => H(i) ? i.value = p : null),
562
575
  "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,
576
+ "onUpdate:filterValue": f[3] || (f[3] = (p) => H(s) ? s.value = p : null),
577
+ "show-checkbox": a(o),
578
+ "is-filter": r.filter,
566
579
  "show-filter-input": !1,
567
580
  "filter-mode": "input",
568
581
  lazy: k.value,
569
- load: p.value,
582
+ load: v.value,
570
583
  "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
584
+ search: D.value,
585
+ path: a(J),
586
+ "default-expand-all": O.value,
587
+ "check-strictly": k.value ? !0 : M.value,
588
+ parentLinkChildrenStrictly: r.parentLinkChildrenStrictly,
589
+ getGrandChildren: T.value,
590
+ 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
585
598
  })
586
599
  ]),
587
600
  _: 2
588
601
  }, [
589
- l.$slots.prefix ? {
602
+ r.$slots.prefix ? {
590
603
  name: "prefix",
591
- fn: j(() => [
592
- O(l.$slots, "prefix")
604
+ fn: V(() => [
605
+ x(r.$slots, "prefix")
593
606
  ]),
594
607
  key: "0"
595
608
  } : void 0,
596
- l.$slots.suffix ? {
609
+ r.$slots.suffix ? {
597
610
  name: "suffix",
598
- fn: j(() => [
599
- O(l.$slots, "suffix")
611
+ fn: V(() => [
612
+ x(r.$slots, "suffix")
600
613
  ]),
601
614
  key: "1"
602
615
  } : void 0,
603
- l.$slots.prepend ? {
616
+ r.$slots.prepend ? {
604
617
  name: "prepend",
605
- fn: j(() => [
606
- O(l.$slots, "prepend")
618
+ fn: V(() => [
619
+ x(r.$slots, "prepend")
607
620
  ]),
608
621
  key: "2"
609
622
  } : void 0,
610
- l.$slots.append ? {
623
+ r.$slots.append ? {
611
624
  name: "append",
612
- fn: j(() => [
613
- O(l.$slots, "append")
625
+ fn: V(() => [
626
+ x(r.$slots, "append")
614
627
  ]),
615
628
  key: "3"
616
629
  } : void 0
@@ -620,17 +633,17 @@ const Zt = /* @__PURE__ */ Ze(Yt), Kt = (e) => /^[+-]?\d+(\.\d+)?(px|em|rem|vw|v
620
633
  _: 3
621
634
  }, 8, ["visible", "width", "disabled", "onShow", "onHide"])
622
635
  ], 6)), [
623
- [a(Qe), u]
636
+ [a(Ye), I]
624
637
  ]);
625
638
  }
626
- }), al = {
639
+ }), ar = {
627
640
  "--das-ui-tree-select-keyword-input-active": "#5582F3",
628
641
  "--das-ui-tree-select-search-no-data": "#999999"
629
642
  };
630
- Ye(al);
631
- const yl = Ee(ll), gl = () => P(null), kl = { title: "tree-select 树选择" };
643
+ Ze(ar);
644
+ const gr = Ee(lr), kr = () => j(null), Sr = { title: "tree-select 树选择" };
632
645
  export {
633
- yl as DasTreeSelect,
634
- gl as DasTreeSelectRef,
635
- kl as default
646
+ gr as DasTreeSelect,
647
+ kr as DasTreeSelectRef,
648
+ Sr as default
636
649
  };