feikuai-element-plus-virtual-component 1.0.19 → 1.0.21
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/dist/cascader-panel/index.vue.d.ts +1817 -0
- package/dist/cascader-panel/menu.vue.d.ts +1515 -0
- package/dist/cascader-panel/node.vue.d.ts +846 -0
- package/dist/index2.js +323 -326
- package/package.json +1 -1
package/dist/index2.js
CHANGED
|
@@ -1,28 +1,28 @@
|
|
|
1
|
-
import './cascader-panel/index.css';var
|
|
2
|
-
var
|
|
1
|
+
import './cascader-panel/index.css';var rn = Object.defineProperty, an = Object.defineProperties;
|
|
2
|
+
var on = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var qe = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var
|
|
4
|
+
var sn = Object.prototype.hasOwnProperty, ln = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var Se = (e, t, n) => t in e ? rn(e, t, { enumerable: !0, configurable: !0, writable: !0, value: n }) : e[t] = n, ge = (e, t) => {
|
|
6
6
|
for (var n in t || (t = {}))
|
|
7
|
-
|
|
7
|
+
sn.call(t, n) && Se(e, n, t[n]);
|
|
8
8
|
if (qe)
|
|
9
9
|
for (var n of qe(t))
|
|
10
|
-
|
|
10
|
+
ln.call(t, n) && Se(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
|
-
}, We = (e, t) =>
|
|
13
|
-
var
|
|
14
|
-
import { warn as
|
|
15
|
-
import { ArrowRight as yn, Loading as
|
|
16
|
-
import {
|
|
17
|
-
import { RecycleScroller as
|
|
12
|
+
}, We = (e, t) => an(e, on(t));
|
|
13
|
+
var S = (e, t, n) => Se(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
import { warn as cn, defineComponent as _e, h as Ze, inject as Lt, computed as N, resolveComponent as x, openBlock as D, createElementBlock as Z, normalizeClass as B, createBlock as q, withModifiers as Je, withCtx as ne, createElementVNode as un, createVNode as W, createCommentVNode as ye, Fragment as Dt, getCurrentInstance as dn, ref as K, normalizeStyle as fn, createTextVNode as pn, toDisplayString as Xe, provide as hn, reactive as Ye, watch as Ee, onBeforeUpdate as gn, onMounted as bn, renderList as vn } from "vue";
|
|
15
|
+
import { ArrowRight as yn, Loading as It, Check as mn } from "@element-plus/icons-vue";
|
|
16
|
+
import { ElTooltip as $n, useNamespace as we, ElIcon as xt, ElRadio as Tn, ElCheckbox as _n, ElScrollbar as wn, useLocale as An, UPDATE_MODEL_EVENT as Qe, CHANGE_EVENT as et, EVENT_CODE as te } from "element-plus";
|
|
17
|
+
import { RecycleScroller as jn } from "vue-virtual-scroller";
|
|
18
18
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
19
19
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
20
20
|
const On = () => {
|
|
21
|
-
}, Cn = Object.prototype.hasOwnProperty,
|
|
21
|
+
}, Cn = Object.prototype.hasOwnProperty, tt = (e, t) => Cn.call(e, t), Sn = Array.isArray, ie = (e) => typeof e == "function", ui = (e) => typeof e == "string", Ae = (e) => e !== null && typeof e == "object", di = (e) => (Ae(e) || ie(e)) && ie(e.then) && ie(e.catch), En = (e) => {
|
|
22
22
|
const t = /* @__PURE__ */ Object.create(null);
|
|
23
23
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
24
|
-
}, Nn =
|
|
25
|
-
var Mt = typeof global == "object" && global && global.Object === Object && global, Pn = typeof self == "object" && self && self.Object === Object && self, V = Mt || Pn || Function("return this")(), R = V.Symbol,
|
|
24
|
+
}, Nn = En((e) => e.charAt(0).toUpperCase() + e.slice(1));
|
|
25
|
+
var Mt = typeof global == "object" && global && global.Object === Object && global, Pn = typeof self == "object" && self && self.Object === Object && self, V = Mt || Pn || Function("return this")(), R = V.Symbol, kt = Object.prototype, Ln = kt.hasOwnProperty, Dn = kt.toString, se = R ? R.toStringTag : void 0;
|
|
26
26
|
function In(e) {
|
|
27
27
|
var t = Ln.call(e, se), n = e[se];
|
|
28
28
|
try {
|
|
@@ -33,38 +33,38 @@ function In(e) {
|
|
|
33
33
|
var a = Dn.call(e);
|
|
34
34
|
return r && (t ? e[se] = n : delete e[se]), a;
|
|
35
35
|
}
|
|
36
|
-
var
|
|
36
|
+
var xn = Object.prototype, Mn = xn.toString;
|
|
37
37
|
function kn(e) {
|
|
38
|
-
return
|
|
38
|
+
return Mn.call(e);
|
|
39
39
|
}
|
|
40
|
-
var Fn = "[object Null]", Bn = "[object Undefined]",
|
|
40
|
+
var Fn = "[object Null]", Bn = "[object Undefined]", nt = R ? R.toStringTag : void 0;
|
|
41
41
|
function fe(e) {
|
|
42
|
-
return e == null ? e === void 0 ? Bn : Fn :
|
|
42
|
+
return e == null ? e === void 0 ? Bn : Fn : nt && nt in Object(e) ? In(e) : kn(e);
|
|
43
43
|
}
|
|
44
|
-
function
|
|
44
|
+
function J(e) {
|
|
45
45
|
return e != null && typeof e == "object";
|
|
46
46
|
}
|
|
47
47
|
var re = Array.isArray;
|
|
48
|
-
function
|
|
48
|
+
function je(e) {
|
|
49
49
|
var t = typeof e;
|
|
50
50
|
return e != null && (t == "object" || t == "function");
|
|
51
51
|
}
|
|
52
52
|
var Rn = "[object AsyncFunction]", Vn = "[object Function]", Hn = "[object GeneratorFunction]", Un = "[object Proxy]";
|
|
53
|
-
function
|
|
54
|
-
if (!
|
|
53
|
+
function Ft(e) {
|
|
54
|
+
if (!je(e))
|
|
55
55
|
return !1;
|
|
56
56
|
var t = fe(e);
|
|
57
57
|
return t == Vn || t == Hn || t == Rn || t == Un;
|
|
58
58
|
}
|
|
59
|
-
var Ne = V["__core-js_shared__"],
|
|
59
|
+
var Ne = V["__core-js_shared__"], rt = (function() {
|
|
60
60
|
var e = /[^.]+$/.exec(Ne && Ne.keys && Ne.keys.IE_PROTO || "");
|
|
61
61
|
return e ? "Symbol(src)_1." + e : "";
|
|
62
62
|
})();
|
|
63
63
|
function zn(e) {
|
|
64
|
-
return !!
|
|
64
|
+
return !!rt && rt in e;
|
|
65
65
|
}
|
|
66
66
|
var Gn = Function.prototype, Kn = Gn.toString;
|
|
67
|
-
function
|
|
67
|
+
function Y(e) {
|
|
68
68
|
if (e != null) {
|
|
69
69
|
try {
|
|
70
70
|
return Kn.call(e);
|
|
@@ -81,33 +81,33 @@ var qn = /[\\^$.*+?()[\]{}|]/g, Wn = /^\[object .+?Constructor\]$/, Zn = Functio
|
|
|
81
81
|
"^" + Xn.call(Yn).replace(qn, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
|
|
82
82
|
);
|
|
83
83
|
function er(e) {
|
|
84
|
-
if (!
|
|
84
|
+
if (!je(e) || zn(e))
|
|
85
85
|
return !1;
|
|
86
|
-
var t =
|
|
87
|
-
return t.test(
|
|
86
|
+
var t = Ft(e) ? Qn : Wn;
|
|
87
|
+
return t.test(Y(e));
|
|
88
88
|
}
|
|
89
89
|
function tr(e, t) {
|
|
90
90
|
return e == null ? void 0 : e[t];
|
|
91
91
|
}
|
|
92
|
-
function
|
|
92
|
+
function Q(e, t) {
|
|
93
93
|
var n = tr(e, t);
|
|
94
94
|
return er(n) ? n : void 0;
|
|
95
95
|
}
|
|
96
|
-
var
|
|
96
|
+
var xe = Q(V, "WeakMap"), at = Object.create, nr = /* @__PURE__ */ (function() {
|
|
97
97
|
function e() {
|
|
98
98
|
}
|
|
99
99
|
return function(t) {
|
|
100
|
-
if (!
|
|
100
|
+
if (!je(t))
|
|
101
101
|
return {};
|
|
102
|
-
if (
|
|
103
|
-
return
|
|
102
|
+
if (at)
|
|
103
|
+
return at(t);
|
|
104
104
|
e.prototype = t;
|
|
105
105
|
var n = new e();
|
|
106
106
|
return e.prototype = void 0, n;
|
|
107
107
|
};
|
|
108
|
-
})(),
|
|
108
|
+
})(), ot = (function() {
|
|
109
109
|
try {
|
|
110
|
-
var e =
|
|
110
|
+
var e = Q(Object, "defineProperty");
|
|
111
111
|
return e({}, "", {}), e;
|
|
112
112
|
} catch (t) {
|
|
113
113
|
}
|
|
@@ -123,7 +123,7 @@ function sr(e, t) {
|
|
|
123
123
|
return t = t == null ? ar : t, !!t && (n == "number" || n != "symbol" && or.test(e)) && e > -1 && e % 1 == 0 && e < t;
|
|
124
124
|
}
|
|
125
125
|
function ir(e, t, n) {
|
|
126
|
-
t == "__proto__" &&
|
|
126
|
+
t == "__proto__" && ot ? ot(e, t, {
|
|
127
127
|
configurable: !0,
|
|
128
128
|
enumerable: !0,
|
|
129
129
|
value: n,
|
|
@@ -139,14 +139,14 @@ function ur(e, t, n) {
|
|
|
139
139
|
(!(cr.call(e, t) && He(r, n)) || n === void 0 && !(t in e)) && ir(e, t, n);
|
|
140
140
|
}
|
|
141
141
|
var dr = 9007199254740991;
|
|
142
|
-
function
|
|
142
|
+
function Bt(e) {
|
|
143
143
|
return typeof e == "number" && e > -1 && e % 1 == 0 && e <= dr;
|
|
144
144
|
}
|
|
145
145
|
function fr(e) {
|
|
146
|
-
return e != null &&
|
|
146
|
+
return e != null && Bt(e.length) && !Ft(e);
|
|
147
147
|
}
|
|
148
148
|
var pr = Object.prototype;
|
|
149
|
-
function
|
|
149
|
+
function Rt(e) {
|
|
150
150
|
var t = e && e.constructor, n = typeof t == "function" && t.prototype || pr;
|
|
151
151
|
return e === n;
|
|
152
152
|
}
|
|
@@ -156,37 +156,37 @@ function hr(e, t) {
|
|
|
156
156
|
return r;
|
|
157
157
|
}
|
|
158
158
|
var gr = "[object Arguments]";
|
|
159
|
-
function
|
|
160
|
-
return
|
|
159
|
+
function st(e) {
|
|
160
|
+
return J(e) && fe(e) == gr;
|
|
161
161
|
}
|
|
162
|
-
var
|
|
162
|
+
var Vt = Object.prototype, br = Vt.hasOwnProperty, vr = Vt.propertyIsEnumerable, Ht = st(/* @__PURE__ */ (function() {
|
|
163
163
|
return arguments;
|
|
164
|
-
})()) ?
|
|
165
|
-
return
|
|
164
|
+
})()) ? st : function(e) {
|
|
165
|
+
return J(e) && br.call(e, "callee") && !vr.call(e, "callee");
|
|
166
166
|
};
|
|
167
167
|
function yr() {
|
|
168
168
|
return !1;
|
|
169
169
|
}
|
|
170
|
-
var
|
|
171
|
-
$[
|
|
172
|
-
$[Tr] = $[_r] = $[Ir] = $[wr] = $[
|
|
170
|
+
var Ut = typeof exports == "object" && exports && !exports.nodeType && exports, it = Ut && typeof module == "object" && module && !module.nodeType && module, mr = it && it.exports === Ut, lt = mr ? V.Buffer : void 0, $r = lt ? lt.isBuffer : void 0, me = $r || yr, Tr = "[object Arguments]", _r = "[object Array]", wr = "[object Boolean]", Ar = "[object Date]", jr = "[object Error]", Or = "[object Function]", Cr = "[object Map]", Sr = "[object Number]", Er = "[object Object]", Nr = "[object RegExp]", Pr = "[object Set]", Lr = "[object String]", Dr = "[object WeakMap]", Ir = "[object ArrayBuffer]", xr = "[object DataView]", Mr = "[object Float32Array]", kr = "[object Float64Array]", Fr = "[object Int8Array]", Br = "[object Int16Array]", Rr = "[object Int32Array]", Vr = "[object Uint8Array]", Hr = "[object Uint8ClampedArray]", Ur = "[object Uint16Array]", zr = "[object Uint32Array]", $ = {};
|
|
171
|
+
$[Mr] = $[kr] = $[Fr] = $[Br] = $[Rr] = $[Vr] = $[Hr] = $[Ur] = $[zr] = !0;
|
|
172
|
+
$[Tr] = $[_r] = $[Ir] = $[wr] = $[xr] = $[Ar] = $[jr] = $[Or] = $[Cr] = $[Sr] = $[Er] = $[Nr] = $[Pr] = $[Lr] = $[Dr] = !1;
|
|
173
173
|
function Gr(e) {
|
|
174
|
-
return
|
|
174
|
+
return J(e) && Bt(e.length) && !!$[fe(e)];
|
|
175
175
|
}
|
|
176
176
|
function Ue(e) {
|
|
177
177
|
return function(t) {
|
|
178
178
|
return e(t);
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
var
|
|
181
|
+
var zt = typeof exports == "object" && exports && !exports.nodeType && exports, le = zt && typeof module == "object" && module && !module.nodeType && module, Kr = le && le.exports === zt, Pe = Kr && Mt.process, ae = (function() {
|
|
182
182
|
try {
|
|
183
183
|
var e = le && le.require && le.require("util").types;
|
|
184
184
|
return e || Pe && Pe.binding && Pe.binding("util");
|
|
185
185
|
} catch (t) {
|
|
186
186
|
}
|
|
187
|
-
})(),
|
|
187
|
+
})(), ct = ae && ae.isTypedArray, Gt = ct ? Ue(ct) : Gr, qr = Object.prototype, Wr = qr.hasOwnProperty;
|
|
188
188
|
function Zr(e, t) {
|
|
189
|
-
var n = re(e), r = !n &&
|
|
189
|
+
var n = re(e), r = !n && Ht(e), a = !n && !r && me(e), o = !n && !r && !a && Gt(e), s = n || r || a || o, l = s ? hr(e.length, String) : [], c = l.length;
|
|
190
190
|
for (var i in e)
|
|
191
191
|
Wr.call(e, i) && !(s && // Safari 9 has enumerable `arguments.length` in strict mode.
|
|
192
192
|
(i == "length" || // Node.js 0.10 has enumerable non-index properties on buffers.
|
|
@@ -195,14 +195,14 @@ function Zr(e, t) {
|
|
|
195
195
|
sr(i, c))) && l.push(i);
|
|
196
196
|
return l;
|
|
197
197
|
}
|
|
198
|
-
function
|
|
198
|
+
function Kt(e, t) {
|
|
199
199
|
return function(n) {
|
|
200
200
|
return e(t(n));
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
var Jr =
|
|
203
|
+
var Jr = Kt(Object.keys, Object), Xr = Object.prototype, Yr = Xr.hasOwnProperty;
|
|
204
204
|
function Qr(e) {
|
|
205
|
-
if (!
|
|
205
|
+
if (!Rt(e))
|
|
206
206
|
return Jr(e);
|
|
207
207
|
var t = [];
|
|
208
208
|
for (var n in Object(e))
|
|
@@ -212,7 +212,7 @@ function Qr(e) {
|
|
|
212
212
|
function ea(e) {
|
|
213
213
|
return fr(e) ? Zr(e) : Qr(e);
|
|
214
214
|
}
|
|
215
|
-
var ue =
|
|
215
|
+
var ue = Q(Object, "create");
|
|
216
216
|
function ta() {
|
|
217
217
|
this.__data__ = ue ? ue(null) : {}, this.size = 0;
|
|
218
218
|
}
|
|
@@ -239,18 +239,18 @@ function da(e, t) {
|
|
|
239
239
|
var n = this.__data__;
|
|
240
240
|
return this.size += this.has(e) ? 0 : 1, n[e] = ue && t === void 0 ? ua : t, this;
|
|
241
241
|
}
|
|
242
|
-
function
|
|
242
|
+
function X(e) {
|
|
243
243
|
var t = -1, n = e == null ? 0 : e.length;
|
|
244
244
|
for (this.clear(); ++t < n; ) {
|
|
245
245
|
var r = e[t];
|
|
246
246
|
this.set(r[0], r[1]);
|
|
247
247
|
}
|
|
248
248
|
}
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
249
|
+
X.prototype.clear = ta;
|
|
250
|
+
X.prototype.delete = na;
|
|
251
|
+
X.prototype.get = sa;
|
|
252
|
+
X.prototype.has = ca;
|
|
253
|
+
X.prototype.set = da;
|
|
254
254
|
function fa() {
|
|
255
255
|
this.__data__ = [], this.size = 0;
|
|
256
256
|
}
|
|
@@ -291,12 +291,12 @@ G.prototype.delete = ga;
|
|
|
291
291
|
G.prototype.get = ba;
|
|
292
292
|
G.prototype.has = va;
|
|
293
293
|
G.prototype.set = ya;
|
|
294
|
-
var de =
|
|
294
|
+
var de = Q(V, "Map");
|
|
295
295
|
function ma() {
|
|
296
296
|
this.size = 0, this.__data__ = {
|
|
297
|
-
hash: new
|
|
297
|
+
hash: new X(),
|
|
298
298
|
map: new (de || G)(),
|
|
299
|
-
string: new
|
|
299
|
+
string: new X()
|
|
300
300
|
};
|
|
301
301
|
}
|
|
302
302
|
function $a(e) {
|
|
@@ -317,44 +317,44 @@ function _a(e) {
|
|
|
317
317
|
function wa(e) {
|
|
318
318
|
return Ce(this, e).has(e);
|
|
319
319
|
}
|
|
320
|
-
function
|
|
320
|
+
function Aa(e, t) {
|
|
321
321
|
var n = Ce(this, e), r = n.size;
|
|
322
322
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
323
323
|
}
|
|
324
|
-
function
|
|
324
|
+
function ee(e) {
|
|
325
325
|
var t = -1, n = e == null ? 0 : e.length;
|
|
326
326
|
for (this.clear(); ++t < n; ) {
|
|
327
327
|
var r = e[t];
|
|
328
328
|
this.set(r[0], r[1]);
|
|
329
329
|
}
|
|
330
330
|
}
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
function
|
|
331
|
+
ee.prototype.clear = ma;
|
|
332
|
+
ee.prototype.delete = Ta;
|
|
333
|
+
ee.prototype.get = _a;
|
|
334
|
+
ee.prototype.has = wa;
|
|
335
|
+
ee.prototype.set = Aa;
|
|
336
|
+
function ja(e, t) {
|
|
337
337
|
for (var n = -1, r = t.length, a = e.length; ++n < r; )
|
|
338
338
|
e[a + n] = t[n];
|
|
339
339
|
return e;
|
|
340
340
|
}
|
|
341
|
-
var
|
|
341
|
+
var ut = R ? R.isConcatSpreadable : void 0;
|
|
342
342
|
function Oa(e) {
|
|
343
|
-
return re(e) ||
|
|
343
|
+
return re(e) || Ht(e) || !!(ut && e && e[ut]);
|
|
344
344
|
}
|
|
345
|
-
function
|
|
345
|
+
function qt(e, t, n, r, a) {
|
|
346
346
|
var o = -1, s = e.length;
|
|
347
347
|
for (n || (n = Oa), a || (a = []); ++o < s; ) {
|
|
348
348
|
var l = e[o];
|
|
349
|
-
n(l) ?
|
|
349
|
+
n(l) ? qt(l, t - 1, n, r, a) : a[a.length] = l;
|
|
350
350
|
}
|
|
351
351
|
return a;
|
|
352
352
|
}
|
|
353
|
-
var Ca =
|
|
354
|
-
function
|
|
353
|
+
var Ca = Kt(Object.getPrototypeOf, Object);
|
|
354
|
+
function Sa() {
|
|
355
355
|
this.__data__ = new G(), this.size = 0;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Ea(e) {
|
|
358
358
|
var t = this.__data__, n = t.delete(e);
|
|
359
359
|
return this.size = t.size, n;
|
|
360
360
|
}
|
|
@@ -371,7 +371,7 @@ function Da(e, t) {
|
|
|
371
371
|
var r = n.__data__;
|
|
372
372
|
if (!de || r.length < La - 1)
|
|
373
373
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
374
|
-
n = this.__data__ = new
|
|
374
|
+
n = this.__data__ = new ee(r);
|
|
375
375
|
}
|
|
376
376
|
return n.set(e, t), this.size = n.size, this;
|
|
377
377
|
}
|
|
@@ -379,17 +379,17 @@ function z(e) {
|
|
|
379
379
|
var t = this.__data__ = new G(e);
|
|
380
380
|
this.size = t.size;
|
|
381
381
|
}
|
|
382
|
-
z.prototype.clear =
|
|
383
|
-
z.prototype.delete =
|
|
382
|
+
z.prototype.clear = Sa;
|
|
383
|
+
z.prototype.delete = Ea;
|
|
384
384
|
z.prototype.get = Na;
|
|
385
385
|
z.prototype.has = Pa;
|
|
386
386
|
z.prototype.set = Da;
|
|
387
|
-
var
|
|
388
|
-
|
|
389
|
-
function
|
|
387
|
+
var Wt = typeof exports == "object" && exports && !exports.nodeType && exports, dt = Wt && typeof module == "object" && module && !module.nodeType && module, Ia = dt && dt.exports === Wt, ft = Ia ? V.Buffer : void 0;
|
|
388
|
+
ft && ft.allocUnsafe;
|
|
389
|
+
function xa(e, t) {
|
|
390
390
|
return e.slice();
|
|
391
391
|
}
|
|
392
|
-
function
|
|
392
|
+
function Ma(e, t) {
|
|
393
393
|
for (var n = -1, r = e == null ? 0 : e.length, a = 0, o = []; ++n < r; ) {
|
|
394
394
|
var s = e[n];
|
|
395
395
|
t(s, n, e) && (o[a++] = s);
|
|
@@ -399,33 +399,33 @@ function xa(e, t) {
|
|
|
399
399
|
function ka() {
|
|
400
400
|
return [];
|
|
401
401
|
}
|
|
402
|
-
var Fa = Object.prototype, Ba = Fa.propertyIsEnumerable,
|
|
403
|
-
return e == null ? [] : (e = Object(e),
|
|
402
|
+
var Fa = Object.prototype, Ba = Fa.propertyIsEnumerable, pt = Object.getOwnPropertySymbols, Ra = pt ? function(e) {
|
|
403
|
+
return e == null ? [] : (e = Object(e), Ma(pt(e), function(t) {
|
|
404
404
|
return Ba.call(e, t);
|
|
405
405
|
}));
|
|
406
406
|
} : ka;
|
|
407
407
|
function Va(e, t, n) {
|
|
408
408
|
var r = t(e);
|
|
409
|
-
return re(e) ? r :
|
|
409
|
+
return re(e) ? r : ja(r, n(e));
|
|
410
410
|
}
|
|
411
|
-
function
|
|
411
|
+
function Me(e) {
|
|
412
412
|
return Va(e, ea, Ra);
|
|
413
413
|
}
|
|
414
|
-
var ke =
|
|
415
|
-
(ke && F(new ke(new ArrayBuffer(1))) !=
|
|
416
|
-
var t = fe(e), n = t == Ha ? e.constructor : void 0, r = n ?
|
|
414
|
+
var ke = Q(V, "DataView"), Fe = Q(V, "Promise"), Be = Q(V, "Set"), ht = "[object Map]", Ha = "[object Object]", gt = "[object Promise]", bt = "[object Set]", vt = "[object WeakMap]", yt = "[object DataView]", Ua = Y(ke), za = Y(de), Ga = Y(Fe), Ka = Y(Be), qa = Y(xe), F = fe;
|
|
415
|
+
(ke && F(new ke(new ArrayBuffer(1))) != yt || de && F(new de()) != ht || Fe && F(Fe.resolve()) != gt || Be && F(new Be()) != bt || xe && F(new xe()) != vt) && (F = function(e) {
|
|
416
|
+
var t = fe(e), n = t == Ha ? e.constructor : void 0, r = n ? Y(n) : "";
|
|
417
417
|
if (r)
|
|
418
418
|
switch (r) {
|
|
419
419
|
case Ua:
|
|
420
|
-
return
|
|
420
|
+
return yt;
|
|
421
421
|
case za:
|
|
422
|
-
return pt;
|
|
423
|
-
case Ga:
|
|
424
422
|
return ht;
|
|
425
|
-
case
|
|
423
|
+
case Ga:
|
|
426
424
|
return gt;
|
|
427
|
-
case
|
|
425
|
+
case Ka:
|
|
428
426
|
return bt;
|
|
427
|
+
case qa:
|
|
428
|
+
return vt;
|
|
429
429
|
}
|
|
430
430
|
return t;
|
|
431
431
|
});
|
|
@@ -448,9 +448,9 @@ function Qa(e) {
|
|
|
448
448
|
var t = new e.constructor(e.source, Ya.exec(e));
|
|
449
449
|
return t.lastIndex = e.lastIndex, t;
|
|
450
450
|
}
|
|
451
|
-
var
|
|
451
|
+
var mt = R ? R.prototype : void 0, $t = mt ? mt.valueOf : void 0;
|
|
452
452
|
function eo(e) {
|
|
453
|
-
return
|
|
453
|
+
return $t ? Object($t.call(e)) : {};
|
|
454
454
|
}
|
|
455
455
|
function to(e, t) {
|
|
456
456
|
var n = ze(e.buffer);
|
|
@@ -491,33 +491,33 @@ function _o(e, t, n) {
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
function wo(e) {
|
|
494
|
-
return typeof e.constructor == "function" && !
|
|
494
|
+
return typeof e.constructor == "function" && !Rt(e) ? nr(Ca(e)) : {};
|
|
495
495
|
}
|
|
496
|
-
var
|
|
497
|
-
function
|
|
498
|
-
return
|
|
496
|
+
var Ao = "[object Map]";
|
|
497
|
+
function jo(e) {
|
|
498
|
+
return J(e) && F(e) == Ao;
|
|
499
499
|
}
|
|
500
|
-
var
|
|
501
|
-
function
|
|
502
|
-
return
|
|
500
|
+
var Tt = ae && ae.isMap, Oo = Tt ? Ue(Tt) : jo, Co = "[object Set]";
|
|
501
|
+
function So(e) {
|
|
502
|
+
return J(e) && F(e) == Co;
|
|
503
503
|
}
|
|
504
|
-
var
|
|
505
|
-
m[
|
|
506
|
-
m[Do] = m[
|
|
504
|
+
var _t = ae && ae.isSet, Eo = _t ? Ue(_t) : So, Zt = "[object Arguments]", No = "[object Array]", Po = "[object Boolean]", Lo = "[object Date]", Do = "[object Error]", Jt = "[object Function]", Io = "[object GeneratorFunction]", xo = "[object Map]", Mo = "[object Number]", Xt = "[object Object]", ko = "[object RegExp]", Fo = "[object Set]", Bo = "[object String]", Ro = "[object Symbol]", Vo = "[object WeakMap]", Ho = "[object ArrayBuffer]", Uo = "[object DataView]", zo = "[object Float32Array]", Go = "[object Float64Array]", Ko = "[object Int8Array]", qo = "[object Int16Array]", Wo = "[object Int32Array]", Zo = "[object Uint8Array]", Jo = "[object Uint8ClampedArray]", Xo = "[object Uint16Array]", Yo = "[object Uint32Array]", m = {};
|
|
505
|
+
m[Zt] = m[No] = m[Ho] = m[Uo] = m[Po] = m[Lo] = m[zo] = m[Go] = m[Ko] = m[qo] = m[Wo] = m[xo] = m[Mo] = m[Xt] = m[ko] = m[Fo] = m[Bo] = m[Ro] = m[Zo] = m[Jo] = m[Xo] = m[Yo] = !0;
|
|
506
|
+
m[Do] = m[Jt] = m[Vo] = !1;
|
|
507
507
|
function ve(e, t, n, r, a, o) {
|
|
508
508
|
var s;
|
|
509
509
|
if (s !== void 0)
|
|
510
510
|
return s;
|
|
511
|
-
if (!
|
|
511
|
+
if (!je(e))
|
|
512
512
|
return e;
|
|
513
513
|
var l = re(e);
|
|
514
514
|
if (l)
|
|
515
515
|
s = Ja(e);
|
|
516
516
|
else {
|
|
517
|
-
var c = F(e), i = c ==
|
|
517
|
+
var c = F(e), i = c == Jt || c == Io;
|
|
518
518
|
if (me(e))
|
|
519
|
-
return
|
|
520
|
-
if (c ==
|
|
519
|
+
return xa(e);
|
|
520
|
+
if (c == Xt || c == Zt || i && !a)
|
|
521
521
|
s = i ? {} : wo(e);
|
|
522
522
|
else {
|
|
523
523
|
if (!m[c])
|
|
@@ -529,14 +529,14 @@ function ve(e, t, n, r, a, o) {
|
|
|
529
529
|
var d = o.get(e);
|
|
530
530
|
if (d)
|
|
531
531
|
return d;
|
|
532
|
-
o.set(e, s),
|
|
533
|
-
s.add(ve(
|
|
534
|
-
}) : Oo(e) && e.forEach(function(
|
|
535
|
-
s.set(
|
|
532
|
+
o.set(e, s), Eo(e) ? e.forEach(function(h) {
|
|
533
|
+
s.add(ve(h, t, n, h, e, o));
|
|
534
|
+
}) : Oo(e) && e.forEach(function(h, g) {
|
|
535
|
+
s.set(g, ve(h, t, n, g, e, o));
|
|
536
536
|
});
|
|
537
|
-
var f =
|
|
538
|
-
return rr(p || e, function(
|
|
539
|
-
p && (
|
|
537
|
+
var f = Me, p = l ? void 0 : f(e);
|
|
538
|
+
return rr(p || e, function(h, g) {
|
|
539
|
+
p && (g = h, h = e[g]), ur(s, g, ve(h, t, n, g, e, o));
|
|
540
540
|
}), s;
|
|
541
541
|
}
|
|
542
542
|
var Qo = 1, es = 4;
|
|
@@ -552,7 +552,7 @@ function as(e) {
|
|
|
552
552
|
}
|
|
553
553
|
function Te(e) {
|
|
554
554
|
var t = -1, n = e == null ? 0 : e.length;
|
|
555
|
-
for (this.__data__ = new
|
|
555
|
+
for (this.__data__ = new ee(); ++t < n; )
|
|
556
556
|
this.add(e[t]);
|
|
557
557
|
}
|
|
558
558
|
Te.prototype.add = Te.prototype.push = rs;
|
|
@@ -567,33 +567,33 @@ function ss(e, t) {
|
|
|
567
567
|
return e.has(t);
|
|
568
568
|
}
|
|
569
569
|
var is = 1, ls = 2;
|
|
570
|
-
function
|
|
570
|
+
function Yt(e, t, n, r, a, o) {
|
|
571
571
|
var s = n & is, l = e.length, c = t.length;
|
|
572
572
|
if (l != c && !(s && c > l))
|
|
573
573
|
return !1;
|
|
574
574
|
var i = o.get(e), d = o.get(t);
|
|
575
575
|
if (i && d)
|
|
576
576
|
return i == t && d == e;
|
|
577
|
-
var f = -1, p = !0,
|
|
577
|
+
var f = -1, p = !0, h = n & ls ? new Te() : void 0;
|
|
578
578
|
for (o.set(e, t), o.set(t, e); ++f < l; ) {
|
|
579
|
-
var
|
|
579
|
+
var g = e[f], O = t[f];
|
|
580
580
|
if (r)
|
|
581
|
-
var C = s ? r(O,
|
|
581
|
+
var C = s ? r(O, g, f, t, e, o) : r(g, O, f, e, t, o);
|
|
582
582
|
if (C !== void 0) {
|
|
583
583
|
if (C)
|
|
584
584
|
continue;
|
|
585
585
|
p = !1;
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
|
-
if (
|
|
589
|
-
if (!os(t, function(
|
|
590
|
-
if (!ss(
|
|
591
|
-
return
|
|
588
|
+
if (h) {
|
|
589
|
+
if (!os(t, function(A, w) {
|
|
590
|
+
if (!ss(h, w) && (g === A || a(g, A, n, r, o)))
|
|
591
|
+
return h.push(w);
|
|
592
592
|
})) {
|
|
593
593
|
p = !1;
|
|
594
594
|
break;
|
|
595
595
|
}
|
|
596
|
-
} else if (!(
|
|
596
|
+
} else if (!(g === O || a(g, O, n, r, o))) {
|
|
597
597
|
p = !1;
|
|
598
598
|
break;
|
|
599
599
|
}
|
|
@@ -612,8 +612,8 @@ function us(e) {
|
|
|
612
612
|
n[++t] = r;
|
|
613
613
|
}), n;
|
|
614
614
|
}
|
|
615
|
-
var ds = 1, fs = 2, ps = "[object Boolean]", hs = "[object Date]", gs = "[object Error]", bs = "[object Map]", vs = "[object Number]", ys = "[object RegExp]", ms = "[object Set]", $s = "[object String]", Ts = "[object Symbol]", _s = "[object ArrayBuffer]", ws = "[object DataView]",
|
|
616
|
-
function
|
|
615
|
+
var ds = 1, fs = 2, ps = "[object Boolean]", hs = "[object Date]", gs = "[object Error]", bs = "[object Map]", vs = "[object Number]", ys = "[object RegExp]", ms = "[object Set]", $s = "[object String]", Ts = "[object Symbol]", _s = "[object ArrayBuffer]", ws = "[object DataView]", wt = R ? R.prototype : void 0, Le = wt ? wt.valueOf : void 0;
|
|
616
|
+
function As(e, t, n, r, a, o, s) {
|
|
617
617
|
switch (n) {
|
|
618
618
|
case ws:
|
|
619
619
|
if (e.byteLength != t.byteLength || e.byteOffset != t.byteOffset)
|
|
@@ -640,7 +640,7 @@ function js(e, t, n, r, a, o, s) {
|
|
|
640
640
|
if (i)
|
|
641
641
|
return i == t;
|
|
642
642
|
r |= fs, s.set(e, t);
|
|
643
|
-
var d =
|
|
643
|
+
var d = Yt(l(e), l(t), r, a, o, s);
|
|
644
644
|
return s.delete(e), d;
|
|
645
645
|
case Ts:
|
|
646
646
|
if (Le)
|
|
@@ -648,9 +648,9 @@ function js(e, t, n, r, a, o, s) {
|
|
|
648
648
|
}
|
|
649
649
|
return !1;
|
|
650
650
|
}
|
|
651
|
-
var
|
|
652
|
-
function
|
|
653
|
-
var s = n &
|
|
651
|
+
var js = 1, Os = Object.prototype, Cs = Os.hasOwnProperty;
|
|
652
|
+
function Ss(e, t, n, r, a, o) {
|
|
653
|
+
var s = n & js, l = Me(e), c = l.length, i = Me(t), d = i.length;
|
|
654
654
|
if (c != d && !s)
|
|
655
655
|
return !1;
|
|
656
656
|
for (var f = c; f--; ) {
|
|
@@ -658,32 +658,32 @@ function Es(e, t, n, r, a, o) {
|
|
|
658
658
|
if (!(s ? p in t : Cs.call(t, p)))
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
|
-
var
|
|
662
|
-
if (
|
|
663
|
-
return
|
|
661
|
+
var h = o.get(e), g = o.get(t);
|
|
662
|
+
if (h && g)
|
|
663
|
+
return h == t && g == e;
|
|
664
664
|
var O = !0;
|
|
665
665
|
o.set(e, t), o.set(t, e);
|
|
666
666
|
for (var C = s; ++f < c; ) {
|
|
667
667
|
p = l[f];
|
|
668
|
-
var
|
|
668
|
+
var A = e[p], w = t[p];
|
|
669
669
|
if (r)
|
|
670
|
-
var
|
|
671
|
-
if (!(
|
|
670
|
+
var M = s ? r(w, A, p, t, e, o) : r(A, w, p, e, t, o);
|
|
671
|
+
if (!(M === void 0 ? A === w || a(A, w, n, r, o) : M)) {
|
|
672
672
|
O = !1;
|
|
673
673
|
break;
|
|
674
674
|
}
|
|
675
675
|
C || (C = p == "constructor");
|
|
676
676
|
}
|
|
677
677
|
if (O && !C) {
|
|
678
|
-
var L = e.constructor,
|
|
679
|
-
L !=
|
|
678
|
+
var L = e.constructor, E = t.constructor;
|
|
679
|
+
L != E && "constructor" in e && "constructor" in t && !(typeof L == "function" && L instanceof L && typeof E == "function" && E instanceof E) && (O = !1);
|
|
680
680
|
}
|
|
681
681
|
return o.delete(e), o.delete(t), O;
|
|
682
682
|
}
|
|
683
|
-
var
|
|
683
|
+
var Es = 1, At = "[object Arguments]", jt = "[object Array]", be = "[object Object]", Ns = Object.prototype, Ot = Ns.hasOwnProperty;
|
|
684
684
|
function Ps(e, t, n, r, a, o) {
|
|
685
685
|
var s = re(e), l = re(t), c = s ? jt : F(e), i = l ? jt : F(t);
|
|
686
|
-
c = c ==
|
|
686
|
+
c = c == At ? be : c, i = i == At ? be : i;
|
|
687
687
|
var d = c == be, f = i == be, p = c == i;
|
|
688
688
|
if (p && me(e)) {
|
|
689
689
|
if (!me(t))
|
|
@@ -691,23 +691,23 @@ function Ps(e, t, n, r, a, o) {
|
|
|
691
691
|
s = !0, d = !1;
|
|
692
692
|
}
|
|
693
693
|
if (p && !d)
|
|
694
|
-
return o || (o = new z()), s ||
|
|
695
|
-
if (!(n &
|
|
696
|
-
var
|
|
697
|
-
if (
|
|
698
|
-
var O =
|
|
694
|
+
return o || (o = new z()), s || Gt(e) ? Yt(e, t, n, r, a, o) : As(e, t, c, n, r, a, o);
|
|
695
|
+
if (!(n & Es)) {
|
|
696
|
+
var h = d && Ot.call(e, "__wrapped__"), g = f && Ot.call(t, "__wrapped__");
|
|
697
|
+
if (h || g) {
|
|
698
|
+
var O = h ? e.value() : e, C = g ? t.value() : t;
|
|
699
699
|
return o || (o = new z()), a(O, C, n, r, o);
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
return p ? (o || (o = new z()),
|
|
702
|
+
return p ? (o || (o = new z()), Ss(e, t, n, r, a, o)) : !1;
|
|
703
703
|
}
|
|
704
|
-
function
|
|
705
|
-
return e === t ? !0 : e == null || t == null || !
|
|
704
|
+
function Qt(e, t, n, r, a) {
|
|
705
|
+
return e === t ? !0 : e == null || t == null || !J(e) && !J(t) ? e !== e && t !== t : Ps(e, t, n, r, Qt, a);
|
|
706
706
|
}
|
|
707
707
|
var Ls = 1 / 0;
|
|
708
708
|
function Ds(e) {
|
|
709
709
|
var t = e == null ? 0 : e.length;
|
|
710
|
-
return t ?
|
|
710
|
+
return t ? qt(e, Ls) : [];
|
|
711
711
|
}
|
|
712
712
|
function Is(e) {
|
|
713
713
|
for (var t = -1, n = e == null ? 0 : e.length, r = {}; ++t < n; ) {
|
|
@@ -717,25 +717,25 @@ function Is(e) {
|
|
|
717
717
|
return r;
|
|
718
718
|
}
|
|
719
719
|
function ce(e, t) {
|
|
720
|
-
return
|
|
720
|
+
return Qt(e, t);
|
|
721
721
|
}
|
|
722
|
-
const
|
|
722
|
+
const en = (e) => !e.getAttribute("aria-owns"), xs = (e, t, n) => {
|
|
723
723
|
const { parentNode: r } = e;
|
|
724
724
|
if (!r) return null;
|
|
725
725
|
const a = r.querySelectorAll(n), o = Array.prototype.indexOf.call(a, e);
|
|
726
726
|
return a[o + t] || null;
|
|
727
727
|
}, De = (e) => {
|
|
728
|
-
e && (e.focus(), !
|
|
729
|
-
},
|
|
730
|
-
if (!
|
|
728
|
+
e && (e.focus(), !en(e) && e.click());
|
|
729
|
+
}, Ms = (e) => e === void 0, fi = (e) => typeof e == "boolean", Re = (e) => !e && e !== 0 || Sn(e) && e.length === 0 || Ae(e) && !Object.keys(e).length, Ct = (e) => Nn(e), tn = "__epPropKey", Ie = (e) => e, ks = (e) => Ae(e) && !!e[tn], Fs = (e, t) => {
|
|
730
|
+
if (!Ae(e) || ks(e)) return e;
|
|
731
731
|
const { values: n, required: r, default: a, type: o, validator: s } = e, c = {
|
|
732
732
|
type: o,
|
|
733
733
|
required: !!r,
|
|
734
734
|
validator: n || s ? (i) => {
|
|
735
735
|
let d = !1, f = [];
|
|
736
|
-
if (n && (f = Array.from(n),
|
|
737
|
-
const p = [...new Set(f)].map((
|
|
738
|
-
|
|
736
|
+
if (n && (f = Array.from(n), tt(e, "default") && f.push(a), d || (d = f.includes(i))), s && (d || (d = s(i))), !d && f.length > 0) {
|
|
737
|
+
const p = [...new Set(f)].map((h) => JSON.stringify(h)).join(", ");
|
|
738
|
+
cn(
|
|
739
739
|
`Invalid prop: validation failed${t ? ` for prop "${t}"` : ""}. Expected one of [${p}], got value ${JSON.stringify(
|
|
740
740
|
i
|
|
741
741
|
)}.`
|
|
@@ -743,15 +743,15 @@ const Qt = (e) => !e.getAttribute("aria-owns"), Ms = (e, t, n) => {
|
|
|
743
743
|
}
|
|
744
744
|
return d;
|
|
745
745
|
} : void 0,
|
|
746
|
-
[
|
|
746
|
+
[tn]: !0
|
|
747
747
|
};
|
|
748
|
-
return
|
|
748
|
+
return tt(e, "default") && (c.default = a), c;
|
|
749
749
|
}, Bs = (e) => Is(
|
|
750
750
|
Object.entries(e).map(([t, n]) => [
|
|
751
751
|
t,
|
|
752
752
|
Fs(n, t)
|
|
753
753
|
])
|
|
754
|
-
),
|
|
754
|
+
), St = (e) => [...new Set(e)], Et = (e) => !e && e !== 0 ? [] : Array.isArray(e) ? e : [e], Rs = () => Math.floor(Math.random() * 1e4), Vs = _e({
|
|
755
755
|
name: "NodeContent",
|
|
756
756
|
setup() {
|
|
757
757
|
return {
|
|
@@ -759,11 +759,18 @@ const Qt = (e) => !e.getAttribute("aria-owns"), Ms = (e, t, n) => {
|
|
|
759
759
|
};
|
|
760
760
|
},
|
|
761
761
|
render() {
|
|
762
|
-
const { ns: e } = this, { node: t, panel: n } = this.$parent, { data: r, label: a } = t, { renderLabelFn: o } = n;
|
|
763
|
-
return
|
|
764
|
-
|
|
765
|
-
{
|
|
766
|
-
|
|
762
|
+
const { ns: e } = this, { node: t, panel: n } = this.$parent, { data: r, label: a } = t, { renderLabelFn: o } = n, s = o ? o({ node: t, data: r }) : a;
|
|
763
|
+
return Ze(
|
|
764
|
+
$n,
|
|
765
|
+
{
|
|
766
|
+
content: String(s),
|
|
767
|
+
placement: "top",
|
|
768
|
+
showAfter: 500,
|
|
769
|
+
enterable: !1
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
default: () => Ze("span", { class: e.e("label") }, s)
|
|
773
|
+
}
|
|
767
774
|
);
|
|
768
775
|
}
|
|
769
776
|
}), Ge = /* @__PURE__ */ Symbol(), Hs = _e({
|
|
@@ -772,10 +779,9 @@ const Qt = (e) => !e.getAttribute("aria-owns"), Ms = (e, t, n) => {
|
|
|
772
779
|
ElCheckbox: _n,
|
|
773
780
|
ElRadio: Tn,
|
|
774
781
|
NodeContent: Vs,
|
|
775
|
-
|
|
776
|
-
ElIcon: It,
|
|
782
|
+
ElIcon: xt,
|
|
777
783
|
Check: mn,
|
|
778
|
-
Loading:
|
|
784
|
+
Loading: It,
|
|
779
785
|
ArrowRight: yn
|
|
780
786
|
},
|
|
781
787
|
props: {
|
|
@@ -787,37 +793,37 @@ const Qt = (e) => !e.getAttribute("aria-owns"), Ms = (e, t, n) => {
|
|
|
787
793
|
},
|
|
788
794
|
emits: ["expand"],
|
|
789
795
|
setup(e, { emit: t }) {
|
|
790
|
-
const n =
|
|
796
|
+
const n = Lt(Ge), r = we("cascader-node"), a = N(() => n.isHoverMenu), o = N(() => n.config.multiple), s = N(() => n.config.checkStrictly), l = N(() => {
|
|
791
797
|
var T;
|
|
792
798
|
return (T = n.checkedNodes[0]) == null ? void 0 : T.uid;
|
|
793
799
|
}), c = N(() => e.node.isDisabled), i = N(() => e.node.isLeaf), d = N(
|
|
794
800
|
() => s.value && !i.value || !c.value
|
|
795
|
-
), f = N(() =>
|
|
796
|
-
() => s.value && n.checkedNodes.some(
|
|
797
|
-
),
|
|
801
|
+
), f = N(() => h(n.expandingNode)), p = N(
|
|
802
|
+
() => s.value && n.checkedNodes.some(h)
|
|
803
|
+
), h = (T) => {
|
|
798
804
|
var pe;
|
|
799
|
-
const { level:
|
|
800
|
-
return ((pe = T == null ? void 0 : T.pathNodes[
|
|
801
|
-
},
|
|
805
|
+
const { level: I, uid: k } = e.node;
|
|
806
|
+
return ((pe = T == null ? void 0 : T.pathNodes[I - 1]) == null ? void 0 : pe.uid) === k;
|
|
807
|
+
}, g = () => {
|
|
802
808
|
f.value || n.expandNode(e.node);
|
|
803
809
|
}, O = (T) => {
|
|
804
|
-
const { node:
|
|
805
|
-
T !==
|
|
810
|
+
const { node: I } = e;
|
|
811
|
+
T !== I.checked && n.handleCheckChange(I, T);
|
|
806
812
|
}, C = () => {
|
|
807
813
|
n.lazyLoad(e.node, () => {
|
|
808
|
-
i.value ||
|
|
814
|
+
i.value || g();
|
|
809
815
|
});
|
|
810
|
-
},
|
|
816
|
+
}, A = (T) => {
|
|
811
817
|
a.value && (w(), !i.value && t("expand", T));
|
|
812
818
|
}, w = () => {
|
|
813
819
|
const { node: T } = e;
|
|
814
|
-
!d.value || T.loading || (T.loaded ?
|
|
815
|
-
},
|
|
816
|
-
a.value && !i.value || (i.value && !c.value && !s.value && !o.value ?
|
|
820
|
+
!d.value || T.loading || (T.loaded ? g() : C());
|
|
821
|
+
}, M = () => {
|
|
822
|
+
a.value && !i.value || (i.value && !c.value && !s.value && !o.value ? E(!0) : w());
|
|
817
823
|
}, L = (T) => {
|
|
818
|
-
s.value ? (O(T), e.node.loaded &&
|
|
819
|
-
},
|
|
820
|
-
e.node.loaded ? (O(T), !s.value &&
|
|
824
|
+
s.value ? (O(T), e.node.loaded && g()) : E(T);
|
|
825
|
+
}, E = (T) => {
|
|
826
|
+
e.node.loaded ? (O(T), !s.value && g()) : C();
|
|
821
827
|
};
|
|
822
828
|
return {
|
|
823
829
|
panel: n,
|
|
@@ -831,10 +837,10 @@ const Qt = (e) => !e.getAttribute("aria-owns"), Ms = (e, t, n) => {
|
|
|
831
837
|
inExpandingPath: f,
|
|
832
838
|
inCheckedPath: p,
|
|
833
839
|
ns: r,
|
|
834
|
-
handleHoverExpand:
|
|
840
|
+
handleHoverExpand: A,
|
|
835
841
|
handleExpand: w,
|
|
836
|
-
handleClick:
|
|
837
|
-
handleCheck:
|
|
842
|
+
handleClick: M,
|
|
843
|
+
handleCheck: E,
|
|
838
844
|
handleSelectCheck: L
|
|
839
845
|
};
|
|
840
846
|
}
|
|
@@ -845,8 +851,8 @@ const Qt = (e) => !e.getAttribute("aria-owns"), Ms = (e, t, n) => {
|
|
|
845
851
|
return n;
|
|
846
852
|
}, Us = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"];
|
|
847
853
|
function zs(e, t, n, r, a, o) {
|
|
848
|
-
const s =
|
|
849
|
-
return D(),
|
|
854
|
+
const s = x("el-checkbox"), l = x("el-radio"), c = x("check"), i = x("el-icon"), d = x("node-content"), f = x("loading"), p = x("arrow-right");
|
|
855
|
+
return D(), Z("li", {
|
|
850
856
|
id: `${e.menuId}-${e.node.uid}`,
|
|
851
857
|
role: "menuitem",
|
|
852
858
|
"aria-haspopup": !e.isLeaf,
|
|
@@ -865,61 +871,52 @@ function zs(e, t, n, r, a, o) {
|
|
|
865
871
|
onFocus: t[3] || (t[3] = (...h) => e.handleHoverExpand && e.handleHoverExpand(...h)),
|
|
866
872
|
onClick: t[4] || (t[4] = (...h) => e.handleClick && e.handleClick(...h))
|
|
867
873
|
}, [
|
|
868
|
-
e.multiple ? (D(),
|
|
874
|
+
e.multiple ? (D(), q(s, {
|
|
869
875
|
key: 0,
|
|
870
876
|
"model-value": e.node.checked,
|
|
871
877
|
indeterminate: e.node.indeterminate,
|
|
872
878
|
disabled: e.isDisabled,
|
|
873
|
-
onClick: t[0] || (t[0] =
|
|
879
|
+
onClick: t[0] || (t[0] = Je(() => {
|
|
874
880
|
}, ["stop"])),
|
|
875
881
|
"onUpdate:modelValue": e.handleSelectCheck
|
|
876
|
-
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])) : e.checkStrictly ? (D(),
|
|
882
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])) : e.checkStrictly ? (D(), q(l, {
|
|
877
883
|
key: 1,
|
|
878
884
|
"model-value": e.checkedNodeId,
|
|
879
885
|
label: e.node.uid,
|
|
880
886
|
disabled: e.isDisabled,
|
|
881
887
|
"onUpdate:modelValue": e.handleSelectCheck,
|
|
882
|
-
onClick: t[1] || (t[1] =
|
|
888
|
+
onClick: t[1] || (t[1] = Je(() => {
|
|
883
889
|
}, ["stop"]))
|
|
884
890
|
}, {
|
|
885
|
-
default:
|
|
891
|
+
default: ne(() => [...t[5] || (t[5] = [
|
|
886
892
|
un("span", null, null, -1)
|
|
887
893
|
])]),
|
|
888
894
|
_: 1
|
|
889
|
-
}, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : e.isLeaf && e.node.checked ? (D(),
|
|
895
|
+
}, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : e.isLeaf && e.node.checked ? (D(), q(i, {
|
|
890
896
|
key: 2,
|
|
891
897
|
class: B(e.ns.e("prefix"))
|
|
892
898
|
}, {
|
|
893
|
-
default:
|
|
894
|
-
|
|
899
|
+
default: ne(() => [
|
|
900
|
+
W(c)
|
|
895
901
|
]),
|
|
896
902
|
_: 1
|
|
897
903
|
}, 8, ["class"])) : ye("", !0),
|
|
898
|
-
|
|
899
|
-
|
|
900
|
-
|
|
901
|
-
effect: "light"
|
|
902
|
-
}, {
|
|
903
|
-
default: Z(() => [
|
|
904
|
-
K(d)
|
|
905
|
-
]),
|
|
906
|
-
_: 1
|
|
907
|
-
}, 8, ["content"]),
|
|
908
|
-
e.isLeaf ? ye("", !0) : (D(), J(Lt, { key: 3 }, [
|
|
909
|
-
e.node.loading ? (D(), W(i, {
|
|
904
|
+
W(d),
|
|
905
|
+
e.isLeaf ? ye("", !0) : (D(), Z(Dt, { key: 3 }, [
|
|
906
|
+
e.node.loading ? (D(), q(i, {
|
|
910
907
|
key: 0,
|
|
911
908
|
class: B([e.ns.is("loading"), e.ns.e("postfix")])
|
|
912
909
|
}, {
|
|
913
|
-
default:
|
|
914
|
-
|
|
910
|
+
default: ne(() => [
|
|
911
|
+
W(f)
|
|
915
912
|
]),
|
|
916
913
|
_: 1
|
|
917
|
-
}, 8, ["class"])) : (D(),
|
|
914
|
+
}, 8, ["class"])) : (D(), q(i, {
|
|
918
915
|
key: 1,
|
|
919
916
|
class: B(["arrow-right", e.ns.e("postfix")])
|
|
920
917
|
}, {
|
|
921
|
-
default:
|
|
922
|
-
|
|
918
|
+
default: ne(() => [
|
|
919
|
+
W(p)
|
|
923
920
|
]),
|
|
924
921
|
_: 1
|
|
925
922
|
}, 8, ["class"]))
|
|
@@ -932,10 +929,10 @@ const Gs = /* @__PURE__ */ Ke(Hs, [["render", zs]]), Ks = (e, t = "14px sans-ser
|
|
|
932
929
|
}, qs = _e({
|
|
933
930
|
name: "CustomCascaderMenu",
|
|
934
931
|
components: {
|
|
935
|
-
Loading:
|
|
936
|
-
ElIcon:
|
|
932
|
+
Loading: It,
|
|
933
|
+
ElIcon: xt,
|
|
937
934
|
ElScrollbar: wn,
|
|
938
|
-
RecycleScroller:
|
|
935
|
+
RecycleScroller: jn,
|
|
939
936
|
CustomCascaderNode: Gs
|
|
940
937
|
},
|
|
941
938
|
props: {
|
|
@@ -949,27 +946,27 @@ const Gs = /* @__PURE__ */ Ke(Hs, [["render", zs]]), Ks = (e, t = "14px sans-ser
|
|
|
949
946
|
}
|
|
950
947
|
},
|
|
951
948
|
setup(e) {
|
|
952
|
-
const t = dn(), n = we("cascader-menu"), { t: r } =
|
|
949
|
+
const t = dn(), n = we("cascader-menu"), { t: r } = An(), a = Rs();
|
|
953
950
|
let o = null, s = null;
|
|
954
|
-
const l =
|
|
951
|
+
const l = Lt(Ge), c = K(null), i = N(() => !e.nodes.length), d = N(() => !l.initialLoaded), f = N(() => `cascader-menu-${a}-${e.index}`), p = N(() => {
|
|
955
952
|
if (!e.nodes.length) return 180;
|
|
956
|
-
const
|
|
953
|
+
const A = 60;
|
|
957
954
|
let w = 0;
|
|
958
|
-
for (const
|
|
959
|
-
const L =
|
|
960
|
-
|
|
955
|
+
for (const M of e.nodes) {
|
|
956
|
+
const L = M.label || "", E = Ks(String(L));
|
|
957
|
+
E > w && (w = E);
|
|
961
958
|
}
|
|
962
|
-
return Math.max(180, Math.ceil(w +
|
|
963
|
-
}),
|
|
964
|
-
o =
|
|
965
|
-
},
|
|
959
|
+
return Math.max(180, Math.ceil(w + A));
|
|
960
|
+
}), h = (A) => {
|
|
961
|
+
o = A.target;
|
|
962
|
+
}, g = (A) => {
|
|
966
963
|
if (!(!l.isHoverMenu || !o || !c.value))
|
|
967
|
-
if (o.contains(
|
|
964
|
+
if (o.contains(A.target)) {
|
|
968
965
|
O();
|
|
969
|
-
const w = t.vnode.el, { left:
|
|
966
|
+
const w = t.vnode.el, { left: M } = w.getBoundingClientRect(), { offsetWidth: L, offsetHeight: E } = w, T = A.clientX - M, I = o.offsetTop, k = I + o.offsetHeight;
|
|
970
967
|
c.value.innerHTML = `
|
|
971
|
-
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${
|
|
972
|
-
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${k} L${L} ${
|
|
968
|
+
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${I} L${L} 0 V${I} Z" />
|
|
969
|
+
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${k} L${L} ${E} V${k} Z" />
|
|
973
970
|
`;
|
|
974
971
|
} else s || (s = window.setTimeout(
|
|
975
972
|
C,
|
|
@@ -989,15 +986,15 @@ const Gs = /* @__PURE__ */ Ke(Hs, [["render", zs]]), Ks = (e, t = "14px sans-ser
|
|
|
989
986
|
menuId: f,
|
|
990
987
|
menuWidth: p,
|
|
991
988
|
t: r,
|
|
992
|
-
handleExpand:
|
|
993
|
-
handleMouseMove:
|
|
989
|
+
handleExpand: h,
|
|
990
|
+
handleMouseMove: g,
|
|
994
991
|
clearHoverZone: C
|
|
995
992
|
};
|
|
996
993
|
}
|
|
997
994
|
});
|
|
998
995
|
function Ws(e, t, n, r, a, o) {
|
|
999
|
-
const s =
|
|
1000
|
-
return e.nodes.length ? (D(),
|
|
996
|
+
const s = x("custom-cascader-node"), l = x("loading"), c = x("el-icon"), i = x("RecycleScroller");
|
|
997
|
+
return e.nodes.length ? (D(), q(i, {
|
|
1001
998
|
key: e.menuId,
|
|
1002
999
|
tag: "ul",
|
|
1003
1000
|
role: "menu",
|
|
@@ -1011,32 +1008,32 @@ function Ws(e, t, n, r, a, o) {
|
|
|
1011
1008
|
onMousemove: e.handleMouseMove,
|
|
1012
1009
|
onMouseleave: e.clearHoverZone
|
|
1013
1010
|
}, {
|
|
1014
|
-
default:
|
|
1011
|
+
default: ne(({ item: d }) => {
|
|
1015
1012
|
var f;
|
|
1016
1013
|
return [
|
|
1017
|
-
|
|
1014
|
+
W(s, {
|
|
1018
1015
|
node: d,
|
|
1019
1016
|
"menu-id": e.menuId,
|
|
1020
1017
|
onExpand: e.handleExpand
|
|
1021
1018
|
}, null, 8, ["node", "menu-id", "onExpand"]),
|
|
1022
|
-
e.isLoading ? (D(),
|
|
1019
|
+
e.isLoading ? (D(), Z("div", {
|
|
1023
1020
|
key: 0,
|
|
1024
1021
|
class: B(e.ns.e("empty-text"))
|
|
1025
1022
|
}, [
|
|
1026
|
-
|
|
1023
|
+
W(c, {
|
|
1027
1024
|
size: "14",
|
|
1028
1025
|
class: B(e.ns.is("loading"))
|
|
1029
1026
|
}, {
|
|
1030
|
-
default:
|
|
1031
|
-
|
|
1027
|
+
default: ne(() => [
|
|
1028
|
+
W(l)
|
|
1032
1029
|
]),
|
|
1033
1030
|
_: 1
|
|
1034
1031
|
}, 8, ["class"]),
|
|
1035
|
-
pn(" " +
|
|
1036
|
-
], 2)) : e.isEmpty ? (D(),
|
|
1032
|
+
pn(" " + Xe(e.t("el.cascader.loading")), 1)
|
|
1033
|
+
], 2)) : e.isEmpty ? (D(), Z("div", {
|
|
1037
1034
|
key: 1,
|
|
1038
1035
|
class: B(e.ns.e("empty-text"))
|
|
1039
|
-
},
|
|
1036
|
+
}, Xe(e.t("el.cascader.noData")), 3)) : (f = e.panel) != null && f.isHoverMenu ? (D(), Z("svg", {
|
|
1040
1037
|
key: 2,
|
|
1041
1038
|
ref: "hoverZone",
|
|
1042
1039
|
class: B(e.ns.e("hover-zone"))
|
|
@@ -1057,35 +1054,35 @@ const Xs = (e) => {
|
|
|
1057
1054
|
};
|
|
1058
1055
|
class oe {
|
|
1059
1056
|
constructor(t, n, r, a = !1) {
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1057
|
+
S(this, "uid", Js++);
|
|
1058
|
+
S(this, "level");
|
|
1059
|
+
S(this, "value");
|
|
1060
|
+
S(this, "label");
|
|
1061
|
+
S(this, "pathNodes");
|
|
1062
|
+
S(this, "pathValues");
|
|
1063
|
+
S(this, "pathLabels");
|
|
1064
|
+
S(this, "childrenData");
|
|
1065
|
+
S(this, "children");
|
|
1066
|
+
S(this, "text");
|
|
1067
|
+
S(this, "loaded");
|
|
1071
1068
|
/**
|
|
1072
1069
|
* Is it checked
|
|
1073
1070
|
*
|
|
1074
1071
|
* @default false
|
|
1075
1072
|
*/
|
|
1076
|
-
|
|
1073
|
+
S(this, "checked", !1);
|
|
1077
1074
|
/**
|
|
1078
1075
|
* Used to indicate the intermediate state of unchecked and fully checked child nodes
|
|
1079
1076
|
*
|
|
1080
1077
|
* @default false
|
|
1081
1078
|
*/
|
|
1082
|
-
|
|
1079
|
+
S(this, "indeterminate", !1);
|
|
1083
1080
|
/**
|
|
1084
1081
|
* Loading Status
|
|
1085
1082
|
*
|
|
1086
1083
|
* @default false
|
|
1087
1084
|
*/
|
|
1088
|
-
|
|
1085
|
+
S(this, "loading", !1);
|
|
1089
1086
|
this.data = t, this.config = n, this.parent = r, this.root = a;
|
|
1090
1087
|
const { value: o, label: s, children: l } = n, c = t[l], i = Xs(this);
|
|
1091
1088
|
this.level = a ? 0 : r ? r.level + 1 : 1, this.value = t[o], this.label = t[s], this.pathNodes = i, this.pathValues = i.map((d) => d.value), this.pathLabels = i.map((d) => d.label), this.childrenData = c, this.children = (c || []).map(
|
|
@@ -1098,7 +1095,7 @@ class oe {
|
|
|
1098
1095
|
}
|
|
1099
1096
|
get isLeaf() {
|
|
1100
1097
|
const { data: t, config: n, childrenData: r, loaded: a } = this, { lazy: o, leaf: s } = n, l = ie(s) ? s(t, this) : t[s];
|
|
1101
|
-
return
|
|
1098
|
+
return Ms(l) ? o && !a ? !1 : !(Array.isArray(r) && r.length) : !!l;
|
|
1102
1099
|
}
|
|
1103
1100
|
get valueByOption() {
|
|
1104
1101
|
return this.config.emitPath ? this.pathValues : this.value;
|
|
@@ -1112,13 +1109,13 @@ class oe {
|
|
|
1112
1109
|
return this.text = r, r;
|
|
1113
1110
|
}
|
|
1114
1111
|
broadcast(t, ...n) {
|
|
1115
|
-
const r = `onParent${
|
|
1112
|
+
const r = `onParent${Ct(t)}`;
|
|
1116
1113
|
this.children.forEach((a) => {
|
|
1117
1114
|
a && (a.broadcast(t, ...n), a[r] && a[r](...n));
|
|
1118
1115
|
});
|
|
1119
1116
|
}
|
|
1120
1117
|
emit(t, ...n) {
|
|
1121
|
-
const { parent: r } = this, a = `onChild${
|
|
1118
|
+
const { parent: r } = this, a = `onChild${Ct(t)}`;
|
|
1122
1119
|
r && (r[a] && r[a](...n), r.emit(t, ...n));
|
|
1123
1120
|
}
|
|
1124
1121
|
onParentCheck(t) {
|
|
@@ -1142,11 +1139,11 @@ class oe {
|
|
|
1142
1139
|
}
|
|
1143
1140
|
}
|
|
1144
1141
|
const Ve = (e, t) => e.reduce((n, r) => (r.isLeaf ? n.push(r) : (!t && n.push(r), n = n.concat(Ve(r.children, t))), n), []);
|
|
1145
|
-
class
|
|
1142
|
+
class Nt {
|
|
1146
1143
|
constructor(t, n) {
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1144
|
+
S(this, "nodes");
|
|
1145
|
+
S(this, "allNodes");
|
|
1146
|
+
S(this, "leafNodes");
|
|
1150
1147
|
this.config = n;
|
|
1151
1148
|
const r = (t || []).map(
|
|
1152
1149
|
(a) => new oe(a, this.config)
|
|
@@ -1250,14 +1247,14 @@ const Ys = Bs({
|
|
|
1250
1247
|
* @description hover threshold of expanding options
|
|
1251
1248
|
*/
|
|
1252
1249
|
hoverThreshold: 500
|
|
1253
|
-
}, ei = (e) => N(() => ge(ge({}, Qs), e.props)),
|
|
1250
|
+
}, ei = (e) => N(() => ge(ge({}, Qs), e.props)), Pt = (e) => {
|
|
1254
1251
|
if (!e) return 0;
|
|
1255
1252
|
const t = e.id.split("-");
|
|
1256
1253
|
return Number(t[t.length - 2]);
|
|
1257
1254
|
}, ti = (e) => {
|
|
1258
1255
|
if (!e) return;
|
|
1259
1256
|
const t = e.querySelector("input");
|
|
1260
|
-
t ? t.click() :
|
|
1257
|
+
t ? t.click() : en(e) && e.click();
|
|
1261
1258
|
}, ni = (e, t) => {
|
|
1262
1259
|
const n = t.slice(0), r = n.map((o) => o.uid), a = e.reduce((o, s) => {
|
|
1263
1260
|
const l = r.indexOf(s.uid);
|
|
@@ -1276,55 +1273,55 @@ const Ys = Bs({
|
|
|
1276
1273
|
},
|
|
1277
1274
|
renderLabel: Function
|
|
1278
1275
|
}),
|
|
1279
|
-
emits: [
|
|
1276
|
+
emits: [Qe, et, "close", "expand-change"],
|
|
1280
1277
|
setup(e, { emit: t, slots: n }) {
|
|
1281
1278
|
let r = !1;
|
|
1282
1279
|
const a = we("cascader"), o = ei(e);
|
|
1283
1280
|
let s = null;
|
|
1284
|
-
const l =
|
|
1281
|
+
const l = K(!0), c = K([]), i = K(null), d = K([]), f = K(null), p = K([]), h = N(() => o.value.expandTrigger === "hover"), g = N(() => e.renderLabel || n.default), O = () => {
|
|
1285
1282
|
const { options: u } = e, b = o.value;
|
|
1286
|
-
r = !1, s = new
|
|
1287
|
-
y && (s = new
|
|
1283
|
+
r = !1, s = new Nt(u, b), d.value = [s.getNodes()], b.lazy && Re(e.options) ? (l.value = !1, C(void 0, (y) => {
|
|
1284
|
+
y && (s = new Nt(y, b), d.value = [s.getNodes()]), l.value = !0, k(!1, !0);
|
|
1288
1285
|
})) : k(!1, !0);
|
|
1289
1286
|
}, C = (u, b) => {
|
|
1290
1287
|
const y = o.value;
|
|
1291
1288
|
u = u || new oe({}, y, void 0, !0), u.loading = !0;
|
|
1292
1289
|
const _ = (v) => {
|
|
1293
|
-
const
|
|
1294
|
-
v && (s == null || s.appendNodes(v, H)),
|
|
1290
|
+
const j = u, H = j.root ? null : j;
|
|
1291
|
+
v && (s == null || s.appendNodes(v, H)), j.loading = !1, j.loaded = !0, j.childrenData = j.childrenData || [], b && b(v);
|
|
1295
1292
|
};
|
|
1296
1293
|
y.lazyLoad(u, _);
|
|
1297
|
-
},
|
|
1298
|
-
var
|
|
1294
|
+
}, A = (u, b) => {
|
|
1295
|
+
var j;
|
|
1299
1296
|
const { level: y } = u, _ = d.value.slice(0, y);
|
|
1300
1297
|
let v;
|
|
1301
|
-
u.isLeaf ? v = u.pathNodes[y - 2] : (v = u, _.push(u.children)), ((
|
|
1298
|
+
u.isLeaf ? v = u.pathNodes[y - 2] : (v = u, _.push(u.children)), ((j = f.value) == null ? void 0 : j.uid) !== (v == null ? void 0 : v.uid) && (f.value = u, d.value = _, !b && t("expand-change", (u == null ? void 0 : u.pathValues) || []));
|
|
1302
1299
|
}, w = (u, b, y = !0) => {
|
|
1303
|
-
const { checkStrictly: _, multiple: v } = o.value,
|
|
1304
|
-
r = !0, !v && (
|
|
1305
|
-
},
|
|
1306
|
-
u && (u = u.parent,
|
|
1307
|
-
}, L = (u) => s == null ? void 0 : s.getFlattedNodes(u),
|
|
1300
|
+
const { checkStrictly: _, multiple: v } = o.value, j = p.value[0];
|
|
1301
|
+
r = !0, !v && (j == null || j.doCheck(!1)), u.doCheck(b), I(), y && !v && !_ && t("close"), !y && !v && !_ && M(u);
|
|
1302
|
+
}, M = (u) => {
|
|
1303
|
+
u && (u = u.parent, M(u), u && A(u));
|
|
1304
|
+
}, L = (u) => s == null ? void 0 : s.getFlattedNodes(u), E = (u) => {
|
|
1308
1305
|
var b;
|
|
1309
1306
|
return (b = L(u)) == null ? void 0 : b.filter((y) => y.checked !== !1);
|
|
1310
1307
|
}, T = () => {
|
|
1311
|
-
p.value.forEach((u) => u.doCheck(!1)),
|
|
1312
|
-
},
|
|
1308
|
+
p.value.forEach((u) => u.doCheck(!1)), I(), d.value = d.value.slice(0, 1), f.value = null, t("expand-change", []);
|
|
1309
|
+
}, I = () => {
|
|
1313
1310
|
var H;
|
|
1314
|
-
const { checkStrictly: u, multiple: b } = o.value, y = p.value, _ =
|
|
1315
|
-
p.value = v, i.value = b ?
|
|
1311
|
+
const { checkStrictly: u, multiple: b } = o.value, y = p.value, _ = E(!u), v = ni(y, _), j = v.map((P) => P.valueByOption);
|
|
1312
|
+
p.value = v, i.value = b ? j : (H = j[0]) != null ? H : null;
|
|
1316
1313
|
}, k = (u = !1, b = !1) => {
|
|
1317
|
-
const { modelValue: y } = e, { lazy: _, multiple: v, checkStrictly:
|
|
1314
|
+
const { modelValue: y } = e, { lazy: _, multiple: v, checkStrictly: j } = o.value, H = !j;
|
|
1318
1315
|
if (!(!l.value || r || !b && ce(y, i.value)))
|
|
1319
1316
|
if (_ && !u) {
|
|
1320
|
-
const he =
|
|
1317
|
+
const he = St(
|
|
1321
1318
|
Ds(Et(y))
|
|
1322
1319
|
).map((U) => s == null ? void 0 : s.getNodeByValue(U)).filter((U) => !!U && !U.loaded && !U.loading);
|
|
1323
1320
|
he.length ? he.forEach((U) => {
|
|
1324
1321
|
C(U, () => k(!1, b));
|
|
1325
1322
|
}) : k(!0, b);
|
|
1326
1323
|
} else {
|
|
1327
|
-
const P = v ? Et(y) : [y], he =
|
|
1324
|
+
const P = v ? Et(y) : [y], he = St(
|
|
1328
1325
|
P.map((U) => s == null ? void 0 : s.getNodeByValue(U, H))
|
|
1329
1326
|
);
|
|
1330
1327
|
pe(he, b), i.value = ts(y);
|
|
@@ -1332,58 +1329,58 @@ const Ys = Bs({
|
|
|
1332
1329
|
}, pe = (u, b = !0) => {
|
|
1333
1330
|
const { checkStrictly: y } = o.value, _ = p.value, v = u.filter(
|
|
1334
1331
|
(P) => !!P && (y || P.isLeaf)
|
|
1335
|
-
),
|
|
1336
|
-
H ? H.pathNodes.forEach((P) =>
|
|
1337
|
-
},
|
|
1332
|
+
), j = s == null ? void 0 : s.getSameNode(f.value), H = b && j || v[0];
|
|
1333
|
+
H ? H.pathNodes.forEach((P) => A(P, !0)) : f.value = null, _.forEach((P) => P.doCheck(!1)), e.props.multiple ? Ye(v).forEach((P) => P.doCheck(!0)) : v.forEach((P) => P.doCheck(!0)), p.value = v;
|
|
1334
|
+
}, nn = (u) => {
|
|
1338
1335
|
const b = u.target, { code: y } = u;
|
|
1339
1336
|
switch (y) {
|
|
1340
|
-
case
|
|
1341
|
-
case
|
|
1337
|
+
case te.up:
|
|
1338
|
+
case te.down: {
|
|
1342
1339
|
u.preventDefault();
|
|
1343
|
-
const _ = y ===
|
|
1340
|
+
const _ = y === te.up ? -1 : 1;
|
|
1344
1341
|
De(
|
|
1345
|
-
|
|
1342
|
+
xs(b, _, `.${a.b("node")}[tabindex="-1"]`)
|
|
1346
1343
|
);
|
|
1347
1344
|
break;
|
|
1348
1345
|
}
|
|
1349
|
-
case
|
|
1346
|
+
case te.left: {
|
|
1350
1347
|
u.preventDefault();
|
|
1351
|
-
const _ = c.value[
|
|
1348
|
+
const _ = c.value[Pt(b) - 1], v = _ == null ? void 0 : _.$el.querySelector(
|
|
1352
1349
|
`.${a.b("node")}[aria-expanded="true"]`
|
|
1353
1350
|
);
|
|
1354
1351
|
De(v);
|
|
1355
1352
|
break;
|
|
1356
1353
|
}
|
|
1357
|
-
case
|
|
1354
|
+
case te.right: {
|
|
1358
1355
|
u.preventDefault();
|
|
1359
|
-
const _ = c.value[
|
|
1356
|
+
const _ = c.value[Pt(b) + 1], v = _ == null ? void 0 : _.$el.querySelector(
|
|
1360
1357
|
`.${a.b("node")}[tabindex="-1"]`
|
|
1361
1358
|
);
|
|
1362
1359
|
De(v);
|
|
1363
1360
|
break;
|
|
1364
1361
|
}
|
|
1365
|
-
case
|
|
1362
|
+
case te.enter:
|
|
1366
1363
|
ti(b);
|
|
1367
1364
|
break;
|
|
1368
1365
|
}
|
|
1369
1366
|
};
|
|
1370
1367
|
return hn(
|
|
1371
1368
|
Ge,
|
|
1372
|
-
|
|
1369
|
+
Ye({
|
|
1373
1370
|
config: o,
|
|
1374
1371
|
expandingNode: f,
|
|
1375
1372
|
checkedNodes: p,
|
|
1376
|
-
isHoverMenu:
|
|
1373
|
+
isHoverMenu: h,
|
|
1377
1374
|
initialLoaded: l,
|
|
1378
|
-
renderLabelFn:
|
|
1375
|
+
renderLabelFn: g,
|
|
1379
1376
|
lazyLoad: C,
|
|
1380
|
-
expandNode:
|
|
1377
|
+
expandNode: A,
|
|
1381
1378
|
handleCheckChange: w
|
|
1382
1379
|
})
|
|
1383
|
-
),
|
|
1380
|
+
), Ee([o, () => e.options], O, {
|
|
1384
1381
|
deep: !0,
|
|
1385
1382
|
immediate: !0
|
|
1386
|
-
}),
|
|
1383
|
+
}), Ee(
|
|
1387
1384
|
() => e.modelValue,
|
|
1388
1385
|
() => {
|
|
1389
1386
|
r = !1, k();
|
|
@@ -1391,38 +1388,38 @@ const Ys = Bs({
|
|
|
1391
1388
|
{
|
|
1392
1389
|
deep: !0
|
|
1393
1390
|
}
|
|
1394
|
-
),
|
|
1391
|
+
), Ee(
|
|
1395
1392
|
() => i.value,
|
|
1396
1393
|
(u) => {
|
|
1397
|
-
ce(u, e.modelValue) || (t(
|
|
1394
|
+
ce(u, e.modelValue) || (t(Qe, u), t(et, u));
|
|
1398
1395
|
}
|
|
1399
1396
|
), gn(() => c.value = []), bn(() => !Re(e.modelValue) && k()), {
|
|
1400
1397
|
ns: a,
|
|
1401
1398
|
menuList: c,
|
|
1402
1399
|
menus: d,
|
|
1403
1400
|
checkedNodes: p,
|
|
1404
|
-
handleKeyDown:
|
|
1401
|
+
handleKeyDown: nn,
|
|
1405
1402
|
handleCheckChange: w,
|
|
1406
1403
|
getFlattedNodes: L,
|
|
1407
1404
|
/**
|
|
1408
1405
|
* @description get an array of currently selected node,(leafOnly) whether only return the leaf checked nodes, default is `false`
|
|
1409
1406
|
*/
|
|
1410
|
-
getCheckedNodes:
|
|
1407
|
+
getCheckedNodes: E,
|
|
1411
1408
|
/**
|
|
1412
1409
|
* @description clear checked nodes
|
|
1413
1410
|
*/
|
|
1414
1411
|
clearCheckedNodes: T,
|
|
1415
|
-
calculateCheckedValue:
|
|
1412
|
+
calculateCheckedValue: I
|
|
1416
1413
|
};
|
|
1417
1414
|
}
|
|
1418
1415
|
});
|
|
1419
1416
|
function ai(e, t, n, r, a, o) {
|
|
1420
|
-
const s =
|
|
1421
|
-
return D(),
|
|
1417
|
+
const s = x("custom-cascader-menu");
|
|
1418
|
+
return D(), Z("div", {
|
|
1422
1419
|
class: B([e.ns.b("panel"), e.ns.is("bordered", e.border)]),
|
|
1423
1420
|
onKeydown: t[0] || (t[0] = (...l) => e.handleKeyDown && e.handleKeyDown(...l))
|
|
1424
1421
|
}, [
|
|
1425
|
-
(D(!0),
|
|
1422
|
+
(D(!0), Z(Dt, null, vn(e.menus, (l, c) => (D(), q(s, {
|
|
1426
1423
|
key: c,
|
|
1427
1424
|
ref_for: !0,
|
|
1428
1425
|
ref: (i) => e.menuList[c] = i,
|
|
@@ -1434,7 +1431,7 @@ function ai(e, t, n, r, a, o) {
|
|
|
1434
1431
|
const pi = /* @__PURE__ */ Ke(ri, [["render", ai]]);
|
|
1435
1432
|
export {
|
|
1436
1433
|
pi as E,
|
|
1437
|
-
|
|
1434
|
+
je as a,
|
|
1438
1435
|
fe as b,
|
|
1439
1436
|
ui as c,
|
|
1440
1437
|
fi as d,
|
|
@@ -1442,8 +1439,8 @@ export {
|
|
|
1442
1439
|
Ie as f,
|
|
1443
1440
|
ts as g,
|
|
1444
1441
|
di as h,
|
|
1445
|
-
|
|
1442
|
+
J as i,
|
|
1446
1443
|
De as j,
|
|
1447
|
-
|
|
1444
|
+
xs as k,
|
|
1448
1445
|
V as r
|
|
1449
1446
|
};
|