feikuai-element-plus-virtual-component 1.0.22 → 1.0.24
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.
|
@@ -1,201 +1,201 @@
|
|
|
1
|
-
import './cascader/cascader.css';var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
import './cascader/cascader.css';var ht = Object.defineProperty, yt = Object.defineProperties;
|
|
2
|
+
var bt = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var se = Object.getOwnPropertySymbols;
|
|
4
4
|
var Ae = Object.prototype.hasOwnProperty, Be = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var Me = (t, s,
|
|
6
|
-
for (var
|
|
7
|
-
Ae.call(s,
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
Be.call(s,
|
|
5
|
+
var Me = (t, s, a) => s in t ? ht(t, s, { enumerable: !0, configurable: !0, writable: !0, value: a }) : t[s] = a, ge = (t, s) => {
|
|
6
|
+
for (var a in s || (s = {}))
|
|
7
|
+
Ae.call(s, a) && Me(t, a, s[a]);
|
|
8
|
+
if (se)
|
|
9
|
+
for (var a of se(s))
|
|
10
|
+
Be.call(s, a) && Me(t, a, s[a]);
|
|
11
11
|
return t;
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
}, he = (t, s) => yt(t, bt(s));
|
|
13
|
+
var ye = (t, s) => {
|
|
14
|
+
var a = {};
|
|
15
15
|
for (var i in t)
|
|
16
|
-
Ae.call(t, i) && s.indexOf(i) < 0 && (
|
|
17
|
-
if (t != null &&
|
|
18
|
-
for (var i of
|
|
19
|
-
s.indexOf(i) < 0 && Be.call(t, i) && (
|
|
20
|
-
return
|
|
16
|
+
Ae.call(t, i) && s.indexOf(i) < 0 && (a[i] = t[i]);
|
|
17
|
+
if (t != null && se)
|
|
18
|
+
for (var i of se(t))
|
|
19
|
+
s.indexOf(i) < 0 && Be.call(t, i) && (a[i] = t[i]);
|
|
20
|
+
return a;
|
|
21
21
|
};
|
|
22
|
-
var ze = (t, s,
|
|
22
|
+
var ze = (t, s, a) => new Promise((i, r) => {
|
|
23
23
|
var c = (p) => {
|
|
24
24
|
try {
|
|
25
|
-
u(
|
|
26
|
-
} catch (
|
|
27
|
-
r(
|
|
25
|
+
u(a.next(p));
|
|
26
|
+
} catch (l) {
|
|
27
|
+
r(l);
|
|
28
28
|
}
|
|
29
29
|
}, h = (p) => {
|
|
30
30
|
try {
|
|
31
|
-
u(
|
|
32
|
-
} catch (
|
|
33
|
-
r(
|
|
31
|
+
u(a.throw(p));
|
|
32
|
+
} catch (l) {
|
|
33
|
+
r(l);
|
|
34
34
|
}
|
|
35
35
|
}, u = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(c, h);
|
|
36
|
-
u((
|
|
36
|
+
u((a = a.apply(t, s)).next());
|
|
37
37
|
});
|
|
38
|
-
import { getCurrentScope as
|
|
39
|
-
import { i as
|
|
40
|
-
import { CHANGE_EVENT as
|
|
41
|
-
import { Check as
|
|
42
|
-
var
|
|
43
|
-
function Zt(t) {
|
|
44
|
-
return typeof t == "symbol" || Pt(t) && $t(t) == Yt;
|
|
45
|
-
}
|
|
46
|
-
var en = /\s/;
|
|
38
|
+
import { getCurrentScope as Ct, onScopeDispose as kt, watch as M, computed as y, toValue as H, shallowRef as qe, getCurrentInstance as Tt, onMounted as Ge, defineComponent as Et, useAttrs as wt, ref as k, nextTick as J, openBlock as C, createBlock as R, unref as d, withCtx as $, createVNode as U, withDirectives as oe, vShow as Re, normalizeClass as V, createElementBlock as D, Fragment as be, renderList as Ce, createElementVNode as Q, toDisplayString as Y, createCommentVNode as le, renderSlot as St, normalizeStyle as xt, withModifiers as ke, withKeys as Pt, vModelText as $t } from "vue";
|
|
39
|
+
import { i as Nt, b as Vt, a as we, r as It, c as Ot, d as Ft, e as Wt, f as Le, g as Dt, h as Mt, E as At, j as Bt, k as zt } from "./index2.js";
|
|
40
|
+
import { CHANGE_EVENT as Xe, UPDATE_MODEL_EVENT as Je, tagProps as Rt, useTooltipContentProps as Lt, useSizeProp as Kt, CommonProps as Ht, useNamespace as Ke, useLocale as _t, useFormItem as Ut, useFormSize as jt, ElConfigProvider as qt, ElTooltip as He, ElScrollbar as Gt, ElIcon as Te, ElInput as Xt, ElTag as _e, ClickOutside as Jt, EVENT_CODE as L } from "element-plus";
|
|
41
|
+
import { Check as Qt, CircleClose as Yt, ArrowDown as Zt } from "@element-plus/icons-vue";
|
|
42
|
+
var en = "[object Symbol]";
|
|
47
43
|
function tn(t) {
|
|
48
|
-
|
|
44
|
+
return typeof t == "symbol" || Nt(t) && Vt(t) == en;
|
|
45
|
+
}
|
|
46
|
+
var nn = /\s/;
|
|
47
|
+
function sn(t) {
|
|
48
|
+
for (var s = t.length; s-- && nn.test(t.charAt(s)); )
|
|
49
49
|
;
|
|
50
50
|
return s;
|
|
51
51
|
}
|
|
52
|
-
var
|
|
53
|
-
function
|
|
54
|
-
return t && t.slice(0,
|
|
52
|
+
var on = /^\s+/;
|
|
53
|
+
function ln(t) {
|
|
54
|
+
return t && t.slice(0, sn(t) + 1).replace(on, "");
|
|
55
55
|
}
|
|
56
|
-
var
|
|
57
|
-
function
|
|
56
|
+
var Ue = NaN, an = /^[-+]0x[0-9a-f]+$/i, rn = /^0b[01]+$/i, un = /^0o[0-7]+$/i, cn = parseInt;
|
|
57
|
+
function je(t) {
|
|
58
58
|
if (typeof t == "number")
|
|
59
59
|
return t;
|
|
60
|
-
if (
|
|
61
|
-
return
|
|
62
|
-
if (
|
|
60
|
+
if (tn(t))
|
|
61
|
+
return Ue;
|
|
62
|
+
if (we(t)) {
|
|
63
63
|
var s = typeof t.valueOf == "function" ? t.valueOf() : t;
|
|
64
|
-
t =
|
|
64
|
+
t = we(s) ? s + "" : s;
|
|
65
65
|
}
|
|
66
66
|
if (typeof t != "string")
|
|
67
67
|
return t === 0 ? t : +t;
|
|
68
|
-
t =
|
|
69
|
-
var
|
|
70
|
-
return
|
|
68
|
+
t = ln(t);
|
|
69
|
+
var a = rn.test(t);
|
|
70
|
+
return a || un.test(t) ? cn(t.slice(2), a ? 2 : 8) : an.test(t) ? Ue : +t;
|
|
71
71
|
}
|
|
72
|
-
var
|
|
73
|
-
return
|
|
74
|
-
},
|
|
75
|
-
function
|
|
76
|
-
var i, r, c, h, u, p,
|
|
72
|
+
var Ee = function() {
|
|
73
|
+
return It.Date.now();
|
|
74
|
+
}, dn = "Expected a function", pn = Math.max, fn = Math.min;
|
|
75
|
+
function vn(t, s, a) {
|
|
76
|
+
var i, r, c, h, u, p, l = 0, f = !1, v = !1, b = !0;
|
|
77
77
|
if (typeof t != "function")
|
|
78
|
-
throw new TypeError(
|
|
79
|
-
s =
|
|
80
|
-
function
|
|
78
|
+
throw new TypeError(dn);
|
|
79
|
+
s = je(s) || 0, we(a) && (f = !!a.leading, v = "maxWait" in a, c = v ? pn(je(a.maxWait) || 0, s) : c, b = "trailing" in a ? !!a.trailing : b);
|
|
80
|
+
function F(g) {
|
|
81
81
|
var E = i, w = r;
|
|
82
|
-
return i = r = void 0,
|
|
82
|
+
return i = r = void 0, l = g, h = t.apply(w, E), h;
|
|
83
83
|
}
|
|
84
84
|
function j(g) {
|
|
85
|
-
return
|
|
85
|
+
return l = g, u = setTimeout(T, s), f ? F(g) : h;
|
|
86
86
|
}
|
|
87
|
-
function
|
|
88
|
-
var E = g - p, w = g -
|
|
89
|
-
return v ?
|
|
87
|
+
function A(g) {
|
|
88
|
+
var E = g - p, w = g - l, I = s - E;
|
|
89
|
+
return v ? fn(I, c - w) : I;
|
|
90
90
|
}
|
|
91
91
|
function q(g) {
|
|
92
|
-
var E = g - p, w = g -
|
|
92
|
+
var E = g - p, w = g - l;
|
|
93
93
|
return p === void 0 || E >= s || E < 0 || v && w >= c;
|
|
94
94
|
}
|
|
95
|
-
function
|
|
96
|
-
var g =
|
|
95
|
+
function T() {
|
|
96
|
+
var g = Ee();
|
|
97
97
|
if (q(g))
|
|
98
98
|
return K(g);
|
|
99
|
-
u = setTimeout(
|
|
99
|
+
u = setTimeout(T, A(g));
|
|
100
100
|
}
|
|
101
101
|
function K(g) {
|
|
102
|
-
return u = void 0, b && i ?
|
|
102
|
+
return u = void 0, b && i ? F(g) : (i = r = void 0, h);
|
|
103
103
|
}
|
|
104
104
|
function x() {
|
|
105
|
-
u !== void 0 && clearTimeout(u),
|
|
105
|
+
u !== void 0 && clearTimeout(u), l = 0, i = p = r = u = void 0;
|
|
106
106
|
}
|
|
107
107
|
function G() {
|
|
108
|
-
return u === void 0 ? h : K(
|
|
108
|
+
return u === void 0 ? h : K(Ee());
|
|
109
109
|
}
|
|
110
110
|
function P() {
|
|
111
|
-
var g =
|
|
111
|
+
var g = Ee(), E = q(g);
|
|
112
112
|
if (i = arguments, r = this, p = g, E) {
|
|
113
113
|
if (u === void 0)
|
|
114
114
|
return j(p);
|
|
115
115
|
if (v)
|
|
116
|
-
return clearTimeout(u), u = setTimeout(
|
|
116
|
+
return clearTimeout(u), u = setTimeout(T, s), F(p);
|
|
117
117
|
}
|
|
118
|
-
return u === void 0 && (u = setTimeout(
|
|
118
|
+
return u === void 0 && (u = setTimeout(T, s)), h;
|
|
119
119
|
}
|
|
120
120
|
return P.cancel = x, P.flush = G, P;
|
|
121
121
|
}
|
|
122
|
-
function
|
|
123
|
-
return
|
|
122
|
+
function Qe(t, s) {
|
|
123
|
+
return Ct() ? (kt(t, s), !0) : !1;
|
|
124
124
|
}
|
|
125
|
-
const
|
|
125
|
+
const Ye = typeof window != "undefined" && typeof document != "undefined";
|
|
126
126
|
typeof WorkerGlobalScope != "undefined" && globalThis instanceof WorkerGlobalScope;
|
|
127
|
-
const
|
|
128
|
-
function
|
|
127
|
+
const mn = (t) => t != null;
|
|
128
|
+
function gn(t) {
|
|
129
129
|
return Array.isArray(t) ? t : [t];
|
|
130
130
|
}
|
|
131
|
-
const
|
|
131
|
+
const Se = Ye ? window : void 0;
|
|
132
132
|
function ae(t) {
|
|
133
133
|
var s;
|
|
134
|
-
const
|
|
135
|
-
return (s =
|
|
134
|
+
const a = H(t);
|
|
135
|
+
return (s = a == null ? void 0 : a.$el) !== null && s !== void 0 ? s : a;
|
|
136
136
|
}
|
|
137
137
|
// @__NO_SIDE_EFFECTS__
|
|
138
|
-
function
|
|
139
|
-
const t =
|
|
140
|
-
return s &&
|
|
138
|
+
function hn() {
|
|
139
|
+
const t = qe(!1), s = Tt();
|
|
140
|
+
return s && Ge(() => {
|
|
141
141
|
t.value = !0;
|
|
142
142
|
}, s), t;
|
|
143
143
|
}
|
|
144
144
|
// @__NO_SIDE_EFFECTS__
|
|
145
|
-
function
|
|
146
|
-
const s = /* @__PURE__ */
|
|
145
|
+
function Ze(t) {
|
|
146
|
+
const s = /* @__PURE__ */ hn();
|
|
147
147
|
return y(() => (s.value, !!t()));
|
|
148
148
|
}
|
|
149
|
-
function
|
|
150
|
-
const v =
|
|
149
|
+
function yn(t, s, a = {}) {
|
|
150
|
+
const v = a, { window: i = Se } = v, r = ye(v, ["window"]);
|
|
151
151
|
let c;
|
|
152
|
-
const h = /* @__PURE__ */
|
|
152
|
+
const h = /* @__PURE__ */ Ze(() => i && "MutationObserver" in i), u = () => {
|
|
153
153
|
c && (c.disconnect(), c = void 0);
|
|
154
|
-
}, p =
|
|
155
|
-
const b =
|
|
154
|
+
}, p = M(y(() => {
|
|
155
|
+
const b = gn(H(t)).map(ae).filter(mn);
|
|
156
156
|
return new Set(b);
|
|
157
157
|
}), (b) => {
|
|
158
|
-
u(), h.value && b.size && (c = new MutationObserver(s), b.forEach((
|
|
158
|
+
u(), h.value && b.size && (c = new MutationObserver(s), b.forEach((F) => c.observe(F, r)));
|
|
159
159
|
}, {
|
|
160
160
|
immediate: !0,
|
|
161
161
|
flush: "post"
|
|
162
|
-
}),
|
|
162
|
+
}), l = () => c == null ? void 0 : c.takeRecords(), f = () => {
|
|
163
163
|
p(), u();
|
|
164
164
|
};
|
|
165
|
-
return
|
|
165
|
+
return Qe(f), {
|
|
166
166
|
isSupported: h,
|
|
167
167
|
stop: f,
|
|
168
|
-
takeRecords:
|
|
168
|
+
takeRecords: l
|
|
169
169
|
};
|
|
170
170
|
}
|
|
171
|
-
function
|
|
172
|
-
const { window: i =
|
|
173
|
-
var
|
|
174
|
-
return ae(s) || (i == null || (
|
|
171
|
+
function bn(t, s, a = {}) {
|
|
172
|
+
const { window: i = Se, initialValue: r, observe: c = !1 } = a, h = qe(r), u = y(() => {
|
|
173
|
+
var l;
|
|
174
|
+
return ae(s) || (i == null || (l = i.document) === null || l === void 0 ? void 0 : l.documentElement);
|
|
175
175
|
});
|
|
176
176
|
function p() {
|
|
177
|
-
const
|
|
178
|
-
if (f && i &&
|
|
177
|
+
const l = H(t), f = H(u);
|
|
178
|
+
if (f && i && l) {
|
|
179
179
|
var v;
|
|
180
|
-
h.value = ((v = i.getComputedStyle(f).getPropertyValue(
|
|
180
|
+
h.value = ((v = i.getComputedStyle(f).getPropertyValue(l)) === null || v === void 0 ? void 0 : v.trim()) || h.value || r;
|
|
181
181
|
}
|
|
182
182
|
}
|
|
183
|
-
return c &&
|
|
183
|
+
return c && yn(u, p, {
|
|
184
184
|
attributeFilter: ["style", "class"],
|
|
185
185
|
window: i
|
|
186
|
-
}),
|
|
186
|
+
}), M([u, () => H(t)], (l, f) => {
|
|
187
187
|
f[0] && f[1] && f[0].style.removeProperty(f[1]), p();
|
|
188
|
-
}, { immediate: !0 }),
|
|
188
|
+
}, { immediate: !0 }), M([h, u], ([l, f]) => {
|
|
189
189
|
const v = H(t);
|
|
190
|
-
f != null && f.style && v && (
|
|
190
|
+
f != null && f.style && v && (l == null ? f.style.removeProperty(v) : f.style.setProperty(v, l));
|
|
191
191
|
}, { immediate: !0 }), h;
|
|
192
192
|
}
|
|
193
|
-
function
|
|
194
|
-
const f =
|
|
193
|
+
function Cn(t, s, a = {}) {
|
|
194
|
+
const f = a, { window: i = Se } = f, r = ye(f, ["window"]);
|
|
195
195
|
let c;
|
|
196
|
-
const h = /* @__PURE__ */
|
|
196
|
+
const h = /* @__PURE__ */ Ze(() => i && "ResizeObserver" in i), u = () => {
|
|
197
197
|
c && (c.disconnect(), c = void 0);
|
|
198
|
-
}, p =
|
|
198
|
+
}, p = M(y(() => {
|
|
199
199
|
const v = H(t);
|
|
200
200
|
return Array.isArray(v) ? v.map((b) => ae(b)) : [ae(v)];
|
|
201
201
|
}), (v) => {
|
|
@@ -206,30 +206,30 @@ function yn(t, s, l = {}) {
|
|
|
206
206
|
}, {
|
|
207
207
|
immediate: !0,
|
|
208
208
|
flush: "post"
|
|
209
|
-
}),
|
|
209
|
+
}), l = () => {
|
|
210
210
|
u(), p();
|
|
211
211
|
};
|
|
212
|
-
return
|
|
212
|
+
return Qe(l), {
|
|
213
213
|
isSupported: h,
|
|
214
|
-
stop:
|
|
214
|
+
stop: l
|
|
215
215
|
};
|
|
216
216
|
}
|
|
217
|
-
class
|
|
217
|
+
class kn extends Error {
|
|
218
218
|
constructor(s) {
|
|
219
219
|
super(s), this.name = "ElementPlusError";
|
|
220
220
|
}
|
|
221
221
|
}
|
|
222
|
-
function
|
|
222
|
+
function Tn(t, s) {
|
|
223
223
|
if (process.env.NODE_ENV !== "production") {
|
|
224
|
-
const
|
|
225
|
-
console.warn(
|
|
224
|
+
const a = Ot(t) ? new kn(`[${t}] ${s}`) : t;
|
|
225
|
+
console.warn(a);
|
|
226
226
|
}
|
|
227
227
|
}
|
|
228
|
-
const
|
|
228
|
+
const En = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), wn = Wt(he(ge({}, Ht), {
|
|
229
229
|
/**
|
|
230
230
|
* @description size of input
|
|
231
231
|
*/
|
|
232
|
-
size:
|
|
232
|
+
size: Kt,
|
|
233
233
|
/**
|
|
234
234
|
* @description placeholder of input
|
|
235
235
|
*/
|
|
@@ -250,7 +250,7 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
250
250
|
* @description customize search logic, the first parameter is `node`, the second is `keyword`, and need return a boolean value indicating whether it hits.
|
|
251
251
|
*/
|
|
252
252
|
filterMethod: {
|
|
253
|
-
type:
|
|
253
|
+
type: Le(
|
|
254
254
|
Function
|
|
255
255
|
),
|
|
256
256
|
default: (t, s) => t.text.includes(s)
|
|
@@ -298,7 +298,7 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
298
298
|
* @description hook function before filtering with the value to be filtered as its parameter. If `false` is returned or a `Promise` is returned and then is rejected, filtering will be aborted
|
|
299
299
|
*/
|
|
300
300
|
beforeFilter: {
|
|
301
|
-
type:
|
|
301
|
+
type: Le(Function),
|
|
302
302
|
default: () => !0
|
|
303
303
|
},
|
|
304
304
|
/**
|
|
@@ -311,11 +311,11 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
311
311
|
/**
|
|
312
312
|
* @description whether cascader popup is teleported
|
|
313
313
|
*/
|
|
314
|
-
teleported:
|
|
314
|
+
teleported: Lt.teleported,
|
|
315
315
|
/**
|
|
316
316
|
* @description tag type
|
|
317
317
|
*/
|
|
318
|
-
tagType: ge(
|
|
318
|
+
tagType: he(ge({}, Rt.type), { default: "info" }),
|
|
319
319
|
/**
|
|
320
320
|
* @description whether to trigger form validation
|
|
321
321
|
*/
|
|
@@ -323,20 +323,20 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
323
323
|
type: Boolean,
|
|
324
324
|
default: !0
|
|
325
325
|
}
|
|
326
|
-
})),
|
|
326
|
+
})), Sn = {
|
|
327
|
+
[Je]: (t) => !!t || t === null,
|
|
327
328
|
[Xe]: (t) => !!t || t === null,
|
|
328
|
-
[Ge]: (t) => !!t || t === null,
|
|
329
329
|
focus: (t) => t instanceof FocusEvent,
|
|
330
330
|
blur: (t) => t instanceof FocusEvent,
|
|
331
|
-
visibleChange: (t) =>
|
|
331
|
+
visibleChange: (t) => Ft(t),
|
|
332
332
|
expandChange: (t) => !!t,
|
|
333
333
|
removeTag: (t) => !!t
|
|
334
|
-
},
|
|
335
|
-
name:
|
|
334
|
+
}, xn = { key: 0 }, Pn = ["placeholder"], $n = ["onClick"], Nn = "ElCascader", Dn = /* @__PURE__ */ Et({
|
|
335
|
+
name: Nn,
|
|
336
336
|
__name: "cascader",
|
|
337
|
-
props:
|
|
338
|
-
emits:
|
|
339
|
-
setup(t, { expose: s, emit:
|
|
337
|
+
props: wn,
|
|
338
|
+
emits: Sn,
|
|
339
|
+
setup(t, { expose: s, emit: a }) {
|
|
340
340
|
const i = {
|
|
341
341
|
modifiers: [
|
|
342
342
|
{
|
|
@@ -350,54 +350,54 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
350
350
|
requires: ["arrow"]
|
|
351
351
|
}
|
|
352
352
|
]
|
|
353
|
-
}, r = t, c =
|
|
353
|
+
}, r = t, c = a, h = wt();
|
|
354
354
|
let u = 0, p = 0;
|
|
355
|
-
const
|
|
355
|
+
const l = Ke("cascader"), f = Ke("input"), { t: v } = _t(), { form: b, formItem: F } = Ut(), j = k(null), A = k(null), q = k(null), T = k(null), K = k(null), x = k(!1), G = k(!1), P = k(!1), g = k(!1), E = k(""), w = k(""), I = k([]), re = k([]), ie = k([]), Z = k(!1), ee = k(), et = y(() => h.style), B = y(() => r.disabled || (b == null ? void 0 : b.disabled)), xe = y(
|
|
356
356
|
() => r.placeholder || v("el.cascader.placeholder")
|
|
357
|
-
),
|
|
358
|
-
() => w.value || I.value.length > 0 || Z.value ? "" :
|
|
359
|
-
),
|
|
360
|
-
() => ["small"].includes(
|
|
361
|
-
), z = y(() => !!r.props.multiple),
|
|
357
|
+
), tt = y(
|
|
358
|
+
() => w.value || I.value.length > 0 || Z.value ? "" : xe.value
|
|
359
|
+
), te = jt(), Pe = y(
|
|
360
|
+
() => ["small"].includes(te.value) ? "small" : "default"
|
|
361
|
+
), z = y(() => !!r.props.multiple), $e = y(() => !r.filterable || z.value), Ne = y(
|
|
362
362
|
() => z.value ? w.value : E.value
|
|
363
|
-
),
|
|
363
|
+
), ne = y(
|
|
364
364
|
() => {
|
|
365
365
|
var e;
|
|
366
|
-
return ((e =
|
|
366
|
+
return ((e = T.value) == null ? void 0 : e.checkedNodes) || [];
|
|
367
367
|
}
|
|
368
|
-
),
|
|
369
|
-
const { showAllLevels: e, separator: n } = r, o =
|
|
368
|
+
), nt = y(() => !r.clearable || B.value || P.value || !G.value ? !1 : !!ne.value.length), ue = y(() => {
|
|
369
|
+
const { showAllLevels: e, separator: n } = r, o = ne.value;
|
|
370
370
|
return o.length ? z.value ? "" : o[0].calcText(e, n) : "";
|
|
371
|
-
}),
|
|
371
|
+
}), Ve = y({
|
|
372
372
|
get() {
|
|
373
373
|
return Dt(r.modelValue);
|
|
374
374
|
},
|
|
375
375
|
set(e) {
|
|
376
|
-
c(
|
|
376
|
+
c(Je, e), c(Xe, e), r.validateEvent && (F == null || F.validate("change").catch((n) => Tn(n)));
|
|
377
377
|
}
|
|
378
|
-
}),
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
378
|
+
}), st = y(() => [
|
|
379
|
+
l.b(),
|
|
380
|
+
l.m(te.value),
|
|
381
|
+
l.is("disabled", B.value),
|
|
382
382
|
h.class
|
|
383
|
-
]),
|
|
383
|
+
]), ot = y(() => [
|
|
384
384
|
f.e("icon"),
|
|
385
385
|
"icon-arrow-down",
|
|
386
|
-
|
|
387
|
-
]),
|
|
386
|
+
l.is("reverse", x.value)
|
|
387
|
+
]), lt = y(() => l.is("focus", x.value || g.value)), Ie = y(() => {
|
|
388
388
|
var e, n;
|
|
389
389
|
return (n = (e = j.value) == null ? void 0 : e.popperRef) == null ? void 0 : n.contentRef;
|
|
390
390
|
}), S = (e) => {
|
|
391
391
|
var n, o;
|
|
392
|
-
B.value || (e = e != null ? e : !x.value, e !== x.value && (x.value = e, (o = (n =
|
|
392
|
+
B.value || (e = e != null ? e : !x.value, e !== x.value && (x.value = e, (o = (n = A.value) == null ? void 0 : n.input) == null || o.setAttribute("aria-expanded", `${e}`), e ? X() : r.filterable && ve(), c("visibleChange", e)));
|
|
393
393
|
}, X = () => {
|
|
394
394
|
J(() => {
|
|
395
395
|
var e;
|
|
396
396
|
(e = j.value) == null || e.updatePopper();
|
|
397
397
|
});
|
|
398
|
-
},
|
|
398
|
+
}, ce = () => {
|
|
399
399
|
P.value = !1;
|
|
400
|
-
},
|
|
400
|
+
}, de = (e) => {
|
|
401
401
|
const { showAllLevels: n, separator: o } = r;
|
|
402
402
|
return {
|
|
403
403
|
node: e,
|
|
@@ -407,151 +407,155 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
407
407
|
closable: !B.value && !e.isDisabled,
|
|
408
408
|
isCollapseTag: !1
|
|
409
409
|
};
|
|
410
|
-
},
|
|
410
|
+
}, pe = (e) => {
|
|
411
411
|
var o;
|
|
412
412
|
const n = e.node;
|
|
413
|
-
n.doCheck(!1), (o =
|
|
413
|
+
n.doCheck(!1), (o = T.value) == null || o.calculateCheckedValue(), c("removeTag", n.valueByOption);
|
|
414
414
|
}, at = () => {
|
|
415
415
|
if (!z.value) return;
|
|
416
|
-
const e =
|
|
417
|
-
if (e.forEach((m) => o.push(
|
|
418
|
-
e.slice(0, r.maxCollapseTags).forEach((N) => n.push(
|
|
416
|
+
const e = ne.value, n = [], o = [];
|
|
417
|
+
if (e.forEach((m) => o.push(de(m))), re.value = o, e.length) {
|
|
418
|
+
e.slice(0, r.maxCollapseTags).forEach((N) => n.push(de(N)));
|
|
419
419
|
const m = e.slice(r.maxCollapseTags), O = m.length;
|
|
420
420
|
O && (r.collapseTags ? n.push({
|
|
421
421
|
key: -1,
|
|
422
422
|
text: `+ ${O}`,
|
|
423
423
|
closable: !1,
|
|
424
424
|
isCollapseTag: !0
|
|
425
|
-
}) : m.forEach((N) => n.push(
|
|
425
|
+
}) : m.forEach((N) => n.push(de(N))));
|
|
426
426
|
}
|
|
427
427
|
I.value = n;
|
|
428
|
-
},
|
|
428
|
+
}, Oe = () => {
|
|
429
429
|
var O, N;
|
|
430
|
-
const { filterMethod: e, showAllLevels: n, separator: o } = r, m = (N = (O =
|
|
431
|
-
z.value && (I.value.forEach((
|
|
432
|
-
|
|
433
|
-
}),
|
|
434
|
-
|
|
435
|
-
})), P.value = !0,
|
|
436
|
-
},
|
|
430
|
+
const { filterMethod: e, showAllLevels: n, separator: o } = r, m = (N = (O = T.value) == null ? void 0 : O.getFlattedNodes(!r.props.checkStrictly)) == null ? void 0 : N.filter((W) => W.isDisabled ? !1 : (W.calcText(n, o), e(W, Ne.value)));
|
|
431
|
+
z.value && (I.value.forEach((W) => {
|
|
432
|
+
W.hitState = !1;
|
|
433
|
+
}), re.value.forEach((W) => {
|
|
434
|
+
W.hitState = !1;
|
|
435
|
+
})), P.value = !0, ie.value = m, X();
|
|
436
|
+
}, rt = () => {
|
|
437
437
|
var n;
|
|
438
438
|
let e;
|
|
439
439
|
P.value && K.value ? e = K.value.$el.querySelector(
|
|
440
|
-
`.${
|
|
441
|
-
) : e = (n =
|
|
442
|
-
`.${
|
|
440
|
+
`.${l.e("suggestion-item")}`
|
|
441
|
+
) : e = (n = T.value) == null ? void 0 : n.$el.querySelector(
|
|
442
|
+
`.${l.b("node")}[tabindex="-1"]`
|
|
443
443
|
), e && (e.focus(), !P.value && e.click());
|
|
444
|
-
},
|
|
444
|
+
}, fe = () => {
|
|
445
445
|
var m, O;
|
|
446
|
-
const e = (m =
|
|
447
|
-
if (!(!
|
|
446
|
+
const e = (m = A.value) == null ? void 0 : m.input, n = q.value, o = (O = K.value) == null ? void 0 : O.$el;
|
|
447
|
+
if (!(!Ye || !e)) {
|
|
448
448
|
if (o) {
|
|
449
449
|
const N = o.querySelector(
|
|
450
|
-
`.${
|
|
450
|
+
`.${l.e("suggestion-list")}`
|
|
451
451
|
);
|
|
452
|
-
N.style.minWidth = `${e.offsetWidth}px
|
|
452
|
+
N.style.minWidth = `${e.offsetWidth}px`, ee.value = e.offsetWidth;
|
|
453
453
|
}
|
|
454
454
|
if (n) {
|
|
455
|
-
const { offsetHeight: N } = n,
|
|
456
|
-
e.style.height =
|
|
455
|
+
const { offsetHeight: N } = n, W = I.value.length > 0 ? `${Math.max(N + 6, u)}px` : `${u}px`;
|
|
456
|
+
e.style.height = W, X();
|
|
457
457
|
}
|
|
458
458
|
}
|
|
459
|
-
}, rt = (e) => {
|
|
460
|
-
var n;
|
|
461
|
-
return (n = k.value) == null ? void 0 : n.getCheckedNodes(e);
|
|
462
459
|
}, it = (e) => {
|
|
460
|
+
var n;
|
|
461
|
+
return (n = T.value) == null ? void 0 : n.getCheckedNodes(e);
|
|
462
|
+
}, ut = (e) => {
|
|
463
463
|
X(), c("expandChange", e);
|
|
464
464
|
}, _ = (e) => {
|
|
465
465
|
var o;
|
|
466
466
|
const n = (o = e.target) == null ? void 0 : o.value;
|
|
467
467
|
if (e.type === "compositionend")
|
|
468
|
-
Z.value = !1, J(() =>
|
|
468
|
+
Z.value = !1, J(() => me(n));
|
|
469
469
|
else {
|
|
470
470
|
const m = n[n.length - 1] || "";
|
|
471
|
-
Z.value = !
|
|
471
|
+
Z.value = !En(m);
|
|
472
472
|
}
|
|
473
|
-
},
|
|
473
|
+
}, ct = (e) => {
|
|
474
474
|
if (!Z.value)
|
|
475
475
|
switch (e.code) {
|
|
476
|
-
case
|
|
476
|
+
case L.enter:
|
|
477
477
|
S();
|
|
478
478
|
break;
|
|
479
|
-
case
|
|
480
|
-
S(!0), J(
|
|
479
|
+
case L.down:
|
|
480
|
+
S(!0), J(rt), e.preventDefault();
|
|
481
481
|
break;
|
|
482
|
-
case
|
|
482
|
+
case L.esc:
|
|
483
483
|
x.value === !0 && (e.preventDefault(), e.stopPropagation(), S(!1));
|
|
484
484
|
break;
|
|
485
|
-
case
|
|
485
|
+
case L.tab:
|
|
486
486
|
S(!1);
|
|
487
487
|
break;
|
|
488
488
|
}
|
|
489
|
-
},
|
|
489
|
+
}, dt = () => {
|
|
490
490
|
var e;
|
|
491
|
-
(e =
|
|
492
|
-
},
|
|
493
|
-
const { value: e } =
|
|
491
|
+
(e = T.value) == null || e.clearCheckedNodes(), !x.value && r.filterable && ve(), S(!1);
|
|
492
|
+
}, ve = () => {
|
|
493
|
+
const { value: e } = ue;
|
|
494
494
|
E.value = e, w.value = e;
|
|
495
|
-
},
|
|
495
|
+
}, pt = (e) => {
|
|
496
496
|
var o, m;
|
|
497
497
|
const { checked: n } = e;
|
|
498
|
-
z.value ? (o =
|
|
499
|
-
},
|
|
498
|
+
z.value ? (o = T.value) == null || o.handleCheckChange(e, !n, !1) : (!n && ((m = T.value) == null || m.handleCheckChange(e, !0, !1)), S(!1));
|
|
499
|
+
}, ft = (e) => {
|
|
500
500
|
const n = e.target, { code: o } = e;
|
|
501
501
|
switch (o) {
|
|
502
|
-
case
|
|
503
|
-
case
|
|
504
|
-
const m = o ===
|
|
505
|
-
|
|
506
|
-
|
|
502
|
+
case L.up:
|
|
503
|
+
case L.down: {
|
|
504
|
+
const m = o === L.up ? -1 : 1;
|
|
505
|
+
Bt(
|
|
506
|
+
zt(
|
|
507
507
|
n,
|
|
508
508
|
m,
|
|
509
|
-
`.${
|
|
509
|
+
`.${l.e("suggestion-item")}[tabindex="-1"]`
|
|
510
510
|
)
|
|
511
511
|
);
|
|
512
512
|
break;
|
|
513
513
|
}
|
|
514
|
-
case
|
|
514
|
+
case L.enter:
|
|
515
515
|
n.click();
|
|
516
516
|
break;
|
|
517
517
|
}
|
|
518
|
-
},
|
|
518
|
+
}, vt = () => {
|
|
519
519
|
const e = I.value, n = e[e.length - 1];
|
|
520
|
-
p = w.value ? 0 : p + 1, !(!n || !p || r.collapseTags && e.length > 1) && (n.hitState ?
|
|
521
|
-
},
|
|
522
|
-
const n = e.target, o =
|
|
520
|
+
p = w.value ? 0 : p + 1, !(!n || !p || r.collapseTags && e.length > 1) && (n.hitState ? pe(n) : n.hitState = !0);
|
|
521
|
+
}, Fe = (e) => {
|
|
522
|
+
const n = e.target, o = l.e("search-input");
|
|
523
523
|
n.className === o && (g.value = !0), c("focus", e);
|
|
524
|
-
},
|
|
524
|
+
}, We = (e) => {
|
|
525
525
|
g.value = !1, c("blur", e);
|
|
526
|
-
},
|
|
527
|
-
const { value: e } =
|
|
526
|
+
}, mt = vn(() => {
|
|
527
|
+
const { value: e } = Ne;
|
|
528
528
|
if (!e) return;
|
|
529
529
|
const n = r.beforeFilter(e);
|
|
530
|
-
|
|
531
|
-
}) : n !== !1 ?
|
|
532
|
-
}, r.debounce),
|
|
533
|
-
!x.value && S(!0), !(n != null && n.isComposing) && (e ?
|
|
534
|
-
},
|
|
535
|
-
|
|
530
|
+
Mt(n) ? n.then(Oe).catch(() => {
|
|
531
|
+
}) : n !== !1 ? Oe() : ce();
|
|
532
|
+
}, r.debounce), me = (e, n) => {
|
|
533
|
+
!x.value && S(!0), !(n != null && n.isComposing) && (e ? mt() : ce());
|
|
534
|
+
}, gt = () => {
|
|
535
|
+
var n;
|
|
536
|
+
const e = (n = A.value) == null ? void 0 : n.input;
|
|
537
|
+
e && (ee.value = parseFloat(e.offsetWidth), console.log(ee.value));
|
|
538
|
+
}, De = (e) => Number.parseFloat(
|
|
539
|
+
bn(f.cssVarName("input-height"), e).value
|
|
536
540
|
) - 2;
|
|
537
|
-
return
|
|
538
|
-
J(() =>
|
|
539
|
-
}),
|
|
541
|
+
return M(P, X), M([ne, B], at), M(I, () => {
|
|
542
|
+
J(() => fe());
|
|
543
|
+
}), M(te, () => ze(null, null, function* () {
|
|
540
544
|
yield J();
|
|
541
|
-
const e =
|
|
542
|
-
u =
|
|
543
|
-
})),
|
|
544
|
-
const e =
|
|
545
|
-
u = e.offsetHeight || n,
|
|
545
|
+
const e = A.value.input;
|
|
546
|
+
u = De(e) || u, fe();
|
|
547
|
+
})), M(ue, ve, { immediate: !0 }), Ge(() => {
|
|
548
|
+
const e = A.value.input, n = De(e);
|
|
549
|
+
u = e.offsetHeight || n, Cn(e, fe), gt();
|
|
546
550
|
}), s({
|
|
547
551
|
/**
|
|
548
552
|
* @description get an array of currently selected node,(leafOnly) whether only return the leaf checked nodes, default is `false`
|
|
549
553
|
*/
|
|
550
|
-
getCheckedNodes:
|
|
554
|
+
getCheckedNodes: it,
|
|
551
555
|
/**
|
|
552
556
|
* @description cascader panel ref
|
|
553
557
|
*/
|
|
554
|
-
cascaderPanelRef:
|
|
558
|
+
cascaderPanelRef: T,
|
|
555
559
|
/**
|
|
556
560
|
* @description toggle the visible of popper
|
|
557
561
|
*/
|
|
@@ -559,15 +563,15 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
559
563
|
/**
|
|
560
564
|
* @description cascader content ref
|
|
561
565
|
*/
|
|
562
|
-
contentRef:
|
|
563
|
-
}), (e, n) => (C(), R(d(
|
|
566
|
+
contentRef: Ie
|
|
567
|
+
}), (e, n) => (C(), R(d(qt), { "z-index": 3e3 }, {
|
|
564
568
|
default: $(() => [
|
|
565
|
-
U(d(
|
|
569
|
+
U(d(He), {
|
|
566
570
|
ref_key: "tooltipRef",
|
|
567
571
|
ref: j,
|
|
568
572
|
visible: x.value,
|
|
569
573
|
teleported: e.teleported,
|
|
570
|
-
"popper-class": [d(
|
|
574
|
+
"popper-class": [d(l).e("dropdown"), e.popperClass],
|
|
571
575
|
"popper-options": i,
|
|
572
576
|
"fallback-placements": [
|
|
573
577
|
"bottom-start",
|
|
@@ -580,80 +584,80 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
580
584
|
"stop-popper-mouse-event": !1,
|
|
581
585
|
"gpu-acceleration": !1,
|
|
582
586
|
placement: "bottom-start",
|
|
583
|
-
transition: `${d(
|
|
587
|
+
transition: `${d(l).namespace.value}-zoom-in-top`,
|
|
584
588
|
effect: "light",
|
|
585
589
|
pure: "",
|
|
586
590
|
persistent: "",
|
|
587
|
-
onHide:
|
|
591
|
+
onHide: ce
|
|
588
592
|
}, {
|
|
589
593
|
default: $(() => [
|
|
590
|
-
|
|
591
|
-
class: V(
|
|
592
|
-
style:
|
|
593
|
-
onClick: n[5] || (n[5] = () => S(
|
|
594
|
-
onKeydown:
|
|
594
|
+
oe((C(), D("div", {
|
|
595
|
+
class: V(st.value),
|
|
596
|
+
style: xt(et.value),
|
|
597
|
+
onClick: n[5] || (n[5] = () => S($e.value ? void 0 : !0)),
|
|
598
|
+
onKeydown: ct,
|
|
595
599
|
onMouseenter: n[6] || (n[6] = (o) => G.value = !0),
|
|
596
600
|
onMouseleave: n[7] || (n[7] = (o) => G.value = !1)
|
|
597
601
|
}, [
|
|
598
|
-
U(d(
|
|
602
|
+
U(d(Xt), {
|
|
599
603
|
ref_key: "input",
|
|
600
|
-
ref:
|
|
604
|
+
ref: A,
|
|
601
605
|
modelValue: E.value,
|
|
602
606
|
"onUpdate:modelValue": n[1] || (n[1] = (o) => E.value = o),
|
|
603
|
-
placeholder:
|
|
604
|
-
readonly:
|
|
607
|
+
placeholder: tt.value,
|
|
608
|
+
readonly: $e.value,
|
|
605
609
|
disabled: B.value,
|
|
606
610
|
"validate-event": !1,
|
|
607
|
-
size: d(
|
|
608
|
-
class: V(
|
|
611
|
+
size: d(te),
|
|
612
|
+
class: V(lt.value),
|
|
609
613
|
tabindex: z.value && e.filterable && !B.value ? -1 : void 0,
|
|
610
614
|
onCompositionstart: _,
|
|
611
615
|
onCompositionupdate: _,
|
|
612
616
|
onCompositionend: _,
|
|
613
|
-
onFocus:
|
|
614
|
-
onBlur:
|
|
615
|
-
onInput:
|
|
617
|
+
onFocus: Fe,
|
|
618
|
+
onBlur: We,
|
|
619
|
+
onInput: me
|
|
616
620
|
}, {
|
|
617
621
|
suffix: $(() => [
|
|
618
|
-
|
|
622
|
+
nt.value ? (C(), R(d(Te), {
|
|
619
623
|
key: "clear",
|
|
620
624
|
class: V([d(f).e("icon"), "icon-circle-close"]),
|
|
621
|
-
onClick:
|
|
625
|
+
onClick: ke(dt, ["stop"])
|
|
622
626
|
}, {
|
|
623
627
|
default: $(() => [
|
|
624
|
-
U(d(
|
|
628
|
+
U(d(Yt))
|
|
625
629
|
]),
|
|
626
630
|
_: 1
|
|
627
|
-
}, 8, ["class"])) : (C(), R(d(
|
|
631
|
+
}, 8, ["class"])) : (C(), R(d(Te), {
|
|
628
632
|
key: "arrow-down",
|
|
629
|
-
class: V(
|
|
630
|
-
onClick: n[0] || (n[0] =
|
|
633
|
+
class: V(ot.value),
|
|
634
|
+
onClick: n[0] || (n[0] = ke((o) => S(), ["stop"]))
|
|
631
635
|
}, {
|
|
632
636
|
default: $(() => [
|
|
633
|
-
U(d(
|
|
637
|
+
U(d(Zt))
|
|
634
638
|
]),
|
|
635
639
|
_: 1
|
|
636
640
|
}, 8, ["class"]))
|
|
637
641
|
]),
|
|
638
642
|
_: 1
|
|
639
643
|
}, 8, ["modelValue", "placeholder", "readonly", "disabled", "size", "class", "tabindex"]),
|
|
640
|
-
z.value ? (C(),
|
|
644
|
+
z.value ? (C(), D("div", {
|
|
641
645
|
key: 0,
|
|
642
646
|
ref_key: "tagWrapper",
|
|
643
647
|
ref: q,
|
|
644
|
-
class: V(d(
|
|
648
|
+
class: V(d(l).e("tags"))
|
|
645
649
|
}, [
|
|
646
|
-
(C(!0),
|
|
650
|
+
(C(!0), D(be, null, Ce(I.value, (o) => (C(), R(d(_e), {
|
|
647
651
|
key: o.key,
|
|
648
652
|
type: e.tagType,
|
|
649
|
-
size:
|
|
653
|
+
size: Pe.value,
|
|
650
654
|
hit: o.hitState,
|
|
651
655
|
closable: o.closable,
|
|
652
656
|
"disable-transitions": "",
|
|
653
|
-
onClose: (m) =>
|
|
657
|
+
onClose: (m) => pe(o)
|
|
654
658
|
}, {
|
|
655
659
|
default: $(() => [
|
|
656
|
-
o.isCollapseTag === !1 ? (C(),
|
|
660
|
+
o.isCollapseTag === !1 ? (C(), D("span", xn, Y(o.text), 1)) : (C(), R(d(He), {
|
|
657
661
|
key: 1,
|
|
658
662
|
disabled: x.value || !e.collapseTagsTooltip,
|
|
659
663
|
"fallback-placements": ["bottom", "top", "right", "left"],
|
|
@@ -665,23 +669,23 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
665
669
|
]),
|
|
666
670
|
content: $(() => [
|
|
667
671
|
Q("div", {
|
|
668
|
-
class: V(d(
|
|
672
|
+
class: V(d(l).e("collapse-tags"))
|
|
669
673
|
}, [
|
|
670
|
-
(C(!0),
|
|
674
|
+
(C(!0), D(be, null, Ce(re.value.slice(
|
|
671
675
|
e.maxCollapseTags
|
|
672
|
-
), (m, O) => (C(),
|
|
676
|
+
), (m, O) => (C(), D("div", {
|
|
673
677
|
key: O,
|
|
674
|
-
class: V(d(
|
|
678
|
+
class: V(d(l).e("collapse-tag"))
|
|
675
679
|
}, [
|
|
676
|
-
(C(), R(d(
|
|
680
|
+
(C(), R(d(_e), {
|
|
677
681
|
key: m.key,
|
|
678
682
|
class: "in-tooltip",
|
|
679
683
|
type: e.tagType,
|
|
680
|
-
size:
|
|
684
|
+
size: Pe.value,
|
|
681
685
|
hit: m.hitState,
|
|
682
686
|
closable: m.closable,
|
|
683
687
|
"disable-transitions": "",
|
|
684
|
-
onClose: (N) =>
|
|
688
|
+
onClose: (N) => pe(m)
|
|
685
689
|
}, {
|
|
686
690
|
default: $(() => [
|
|
687
691
|
Q("span", null, Y(m.text), 1)
|
|
@@ -696,79 +700,80 @@ const kn = (t) => /([\uAC00-\uD7AF\u3130-\u318F])+/gi.test(t), Tn = Ot(ge(me({},
|
|
|
696
700
|
]),
|
|
697
701
|
_: 2
|
|
698
702
|
}, 1032, ["type", "size", "hit", "closable", "onClose"]))), 128)),
|
|
699
|
-
e.filterable && !B.value ?
|
|
703
|
+
e.filterable && !B.value ? oe((C(), D("input", {
|
|
700
704
|
key: 0,
|
|
701
705
|
"onUpdate:modelValue": n[2] || (n[2] = (o) => w.value = o),
|
|
702
706
|
type: "text",
|
|
703
|
-
class: V(d(
|
|
704
|
-
placeholder:
|
|
705
|
-
onInput: n[3] || (n[3] = (o) =>
|
|
706
|
-
onClick: n[4] || (n[4] =
|
|
707
|
-
onKeydown:
|
|
707
|
+
class: V(d(l).e("search-input")),
|
|
708
|
+
placeholder: ue.value ? "" : xe.value,
|
|
709
|
+
onInput: n[3] || (n[3] = (o) => me(w.value, o)),
|
|
710
|
+
onClick: n[4] || (n[4] = ke((o) => S(!0), ["stop"])),
|
|
711
|
+
onKeydown: Pt(vt, ["delete"]),
|
|
708
712
|
onCompositionstart: _,
|
|
709
713
|
onCompositionupdate: _,
|
|
710
714
|
onCompositionend: _,
|
|
711
|
-
onFocus:
|
|
712
|
-
onBlur:
|
|
713
|
-
}, null, 42,
|
|
714
|
-
[
|
|
715
|
-
]) :
|
|
716
|
-
], 2)) :
|
|
715
|
+
onFocus: Fe,
|
|
716
|
+
onBlur: We
|
|
717
|
+
}, null, 42, Pn)), [
|
|
718
|
+
[$t, w.value]
|
|
719
|
+
]) : le("", !0)
|
|
720
|
+
], 2)) : le("", !0)
|
|
717
721
|
], 38)), [
|
|
718
|
-
[d(
|
|
722
|
+
[d(Jt), () => S(!1), Ie.value]
|
|
719
723
|
])
|
|
720
724
|
]),
|
|
721
725
|
content: $(() => [
|
|
722
|
-
|
|
726
|
+
oe(U(At, {
|
|
723
727
|
ref_key: "cascaderPanelRef",
|
|
724
|
-
ref:
|
|
725
|
-
|
|
726
|
-
|
|
728
|
+
ref: T,
|
|
729
|
+
inputWidth: ee.value,
|
|
730
|
+
modelValue: Ve.value,
|
|
731
|
+
"onUpdate:modelValue": n[8] || (n[8] = (o) => Ve.value = o),
|
|
727
732
|
options: e.options,
|
|
728
733
|
props: r.props,
|
|
729
734
|
border: !1,
|
|
730
735
|
"render-label": e.$slots.default,
|
|
731
|
-
onExpandChange:
|
|
736
|
+
onExpandChange: ut,
|
|
732
737
|
onClose: n[9] || (n[9] = (o) => e.$nextTick(() => S(!1)))
|
|
733
|
-
}, null, 8, ["modelValue", "options", "props", "render-label"]), [
|
|
738
|
+
}, null, 8, ["inputWidth", "modelValue", "options", "props", "render-label"]), [
|
|
734
739
|
[Re, !P.value]
|
|
735
740
|
]),
|
|
736
|
-
e.filterable ?
|
|
741
|
+
e.filterable ? oe((C(), R(d(Gt), {
|
|
737
742
|
key: 0,
|
|
738
743
|
ref_key: "suggestionPanel",
|
|
739
744
|
ref: K,
|
|
740
745
|
tag: "ul",
|
|
741
|
-
class: V(d(
|
|
742
|
-
"view-class": d(
|
|
743
|
-
onKeydown:
|
|
746
|
+
class: V(d(l).e("suggestion-panel")),
|
|
747
|
+
"view-class": d(l).e("suggestion-list"),
|
|
748
|
+
onKeydown: ft
|
|
744
749
|
}, {
|
|
745
750
|
default: $(() => [
|
|
746
|
-
|
|
751
|
+
ie.value.length ? (C(!0), D(be, { key: 0 }, Ce(ie.value, (o) => (C(), D("li", {
|
|
747
752
|
key: o.uid,
|
|
748
753
|
class: V([
|
|
749
|
-
d(
|
|
750
|
-
d(
|
|
754
|
+
d(l).e("suggestion-item"),
|
|
755
|
+
d(l).is("checked", o.checked)
|
|
751
756
|
]),
|
|
752
757
|
tabindex: -1,
|
|
753
|
-
onClick: (m) =>
|
|
758
|
+
onClick: (m) => pt(o)
|
|
754
759
|
}, [
|
|
755
760
|
Q("span", null, Y(o.text), 1),
|
|
756
|
-
o.checked ? (C(), R(d(
|
|
761
|
+
o.checked ? (C(), R(d(Te), { key: 0 }, {
|
|
757
762
|
default: $(() => [
|
|
758
|
-
U(d(
|
|
763
|
+
U(d(Qt))
|
|
759
764
|
]),
|
|
760
765
|
_: 1
|
|
761
|
-
})) :
|
|
762
|
-
], 10,
|
|
766
|
+
})) : le("", !0)
|
|
767
|
+
], 10, $n))), 128)) : St(e.$slots, "empty", { key: 1 }, () => [
|
|
763
768
|
Q("li", {
|
|
764
|
-
class: V(d(
|
|
769
|
+
class: V(d(l).e("empty-text"))
|
|
765
770
|
}, Y(d(v)("el.cascader.noMatch")), 3)
|
|
766
771
|
])
|
|
767
772
|
]),
|
|
768
773
|
_: 3
|
|
769
774
|
}, 8, ["class", "view-class"])), [
|
|
770
775
|
[Re, P.value]
|
|
771
|
-
]) :
|
|
776
|
+
]) : le("", !0)
|
|
772
777
|
]),
|
|
773
778
|
_: 3
|
|
774
779
|
}, 8, ["visible", "teleported", "popper-class", "transition"])
|