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