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