feikuai-element-plus-virtual-component 1.0.27 → 1.0.29
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/README.md +25 -0
- package/dist/index2.js +267 -256
- package/package.json +3 -1
package/README.md
CHANGED
|
@@ -168,6 +168,12 @@ import ElCascaderPanelV2 from 'feikuai-element-plus-virtual-component/cascader-p
|
|
|
168
168
|
# 安装依赖
|
|
169
169
|
pnpm install
|
|
170
170
|
|
|
171
|
+
# 本地预览与调试
|
|
172
|
+
pnpm dev
|
|
173
|
+
|
|
174
|
+
# 预览已构建页面
|
|
175
|
+
pnpm preview
|
|
176
|
+
|
|
171
177
|
# 构建
|
|
172
178
|
pnpm build:npm
|
|
173
179
|
|
|
@@ -178,6 +184,25 @@ pnpm fmt
|
|
|
178
184
|
pnpm lint
|
|
179
185
|
```
|
|
180
186
|
|
|
187
|
+
## 本地预览与调试
|
|
188
|
+
|
|
189
|
+
项目已内置 Playground 调试环境,用于组件交互与大数据性能验证。
|
|
190
|
+
|
|
191
|
+
- 入口页面:`index.html`
|
|
192
|
+
- 启动入口:`src/dev/main.ts`
|
|
193
|
+
- 调试页面:`src/dev/App.vue`
|
|
194
|
+
- 压测数据生成:`src/dev/mock/options.ts`
|
|
195
|
+
|
|
196
|
+
当前默认包含以下场景:
|
|
197
|
+
|
|
198
|
+
- 基础单选
|
|
199
|
+
- 多选 + 折叠标签
|
|
200
|
+
- 可搜索过滤
|
|
201
|
+
- 5000+ 节点压测
|
|
202
|
+
- 懒加载场景
|
|
203
|
+
|
|
204
|
+
说明:Playground 仅用于本地开发调试,不参与 npm 发布产物。
|
|
205
|
+
|
|
181
206
|
## 输出结构
|
|
182
207
|
|
|
183
208
|
```
|
package/dist/index2.js
CHANGED
|
@@ -2,49 +2,49 @@ import './cascader-panel/index.css';var an = Object.defineProperty, on = Object.
|
|
|
2
2
|
var sn = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var qe = Object.getOwnPropertySymbols;
|
|
4
4
|
var ln = Object.prototype.hasOwnProperty, cn = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var
|
|
5
|
+
var Ce = (e, t, n) => t in e ? an(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
|
-
ln.call(t, n) &&
|
|
7
|
+
ln.call(t, n) && Ce(e, n, t[n]);
|
|
8
8
|
if (qe)
|
|
9
9
|
for (var n of qe(t))
|
|
10
|
-
cn.call(t, n) &&
|
|
10
|
+
cn.call(t, n) && Ce(e, n, t[n]);
|
|
11
11
|
return e;
|
|
12
12
|
}, We = (e, t) => on(e, sn(t));
|
|
13
|
-
var
|
|
14
|
-
import { warn as un, defineComponent as _e, h as dn, inject as Pt, computed as
|
|
13
|
+
var E = (e, t, n) => Ce(e, typeof t != "symbol" ? t + "" : t, n);
|
|
14
|
+
import { warn as un, defineComponent as _e, h as dn, inject as Pt, computed as P, resolveComponent as I, openBlock as D, createElementBlock as G, normalizeClass as B, createBlock as W, withModifiers as Ze, withCtx as re, createElementVNode as Lt, createVNode as Z, createCommentVNode as ye, Fragment as Dt, getCurrentInstance as fn, ref as q, normalizeStyle as It, createTextVNode as pn, toDisplayString as Je, provide as hn, reactive as Xe, watch as Ee, onBeforeUpdate as gn, onMounted as bn, renderList as vn } from "vue";
|
|
15
15
|
import { ArrowRight as yn, Loading as Mt, Check as mn } from "@element-plus/icons-vue";
|
|
16
|
-
import { useNamespace as we, ElIcon as xt, ElRadio as $n, ElCheckbox as Tn, ElScrollbar as _n, useLocale as wn, UPDATE_MODEL_EVENT as Ye, CHANGE_EVENT as Qe, EVENT_CODE as
|
|
16
|
+
import { useNamespace as we, ElIcon as xt, ElRadio as $n, ElCheckbox as Tn, ElScrollbar as _n, useLocale as wn, UPDATE_MODEL_EVENT as Ye, CHANGE_EVENT as Qe, EVENT_CODE as ne } from "element-plus";
|
|
17
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 An = () => {
|
|
21
|
-
},
|
|
21
|
+
}, Sn = Object.prototype.hasOwnProperty, et = (e, t) => Sn.call(e, t), On = Array.isArray, le = (e) => typeof e == "function", ci = (e) => typeof e == "string", je = (e) => e !== null && typeof e == "object", ui = (e) => (je(e) || le(e)) && le(e.then) && le(e.catch), Cn = (e) => {
|
|
22
22
|
const t = /* @__PURE__ */ Object.create(null);
|
|
23
23
|
return ((n) => t[n] || (t[n] = e(n)));
|
|
24
|
-
}, En =
|
|
25
|
-
var kt = typeof global == "object" && global && global.Object === Object && global, Nn = typeof self == "object" && self && self.Object === Object && self, V = kt || Nn || Function("return this")(), R = V.Symbol, Ft = Object.prototype, Pn = Ft.hasOwnProperty, Ln = Ft.toString,
|
|
24
|
+
}, En = Cn((e) => e.charAt(0).toUpperCase() + e.slice(1));
|
|
25
|
+
var kt = typeof global == "object" && global && global.Object === Object && global, Nn = typeof self == "object" && self && self.Object === Object && self, V = kt || Nn || Function("return this")(), R = V.Symbol, Ft = Object.prototype, Pn = Ft.hasOwnProperty, Ln = Ft.toString, ie = R ? R.toStringTag : void 0;
|
|
26
26
|
function Dn(e) {
|
|
27
|
-
var t = Pn.call(e,
|
|
27
|
+
var t = Pn.call(e, ie), n = e[ie];
|
|
28
28
|
try {
|
|
29
|
-
e[
|
|
29
|
+
e[ie] = void 0;
|
|
30
30
|
var r = !0;
|
|
31
31
|
} catch (o) {
|
|
32
32
|
}
|
|
33
33
|
var a = Ln.call(e);
|
|
34
|
-
return r && (t ? e[
|
|
34
|
+
return r && (t ? e[ie] = n : delete e[ie]), a;
|
|
35
35
|
}
|
|
36
36
|
var In = Object.prototype, Mn = In.toString;
|
|
37
37
|
function xn(e) {
|
|
38
38
|
return Mn.call(e);
|
|
39
39
|
}
|
|
40
40
|
var kn = "[object Null]", Fn = "[object Undefined]", tt = R ? R.toStringTag : void 0;
|
|
41
|
-
function
|
|
41
|
+
function pe(e) {
|
|
42
42
|
return e == null ? e === void 0 ? Fn : kn : tt && tt in Object(e) ? Dn(e) : xn(e);
|
|
43
43
|
}
|
|
44
44
|
function J(e) {
|
|
45
45
|
return e != null && typeof e == "object";
|
|
46
46
|
}
|
|
47
|
-
var
|
|
47
|
+
var ae = Array.isArray;
|
|
48
48
|
function Ae(e) {
|
|
49
49
|
var t = typeof e;
|
|
50
50
|
return e != null && (t == "object" || t == "function");
|
|
@@ -53,7 +53,7 @@ var Bn = "[object AsyncFunction]", Rn = "[object Function]", Vn = "[object Gener
|
|
|
53
53
|
function Bt(e) {
|
|
54
54
|
if (!Ae(e))
|
|
55
55
|
return !1;
|
|
56
|
-
var t =
|
|
56
|
+
var t = pe(e);
|
|
57
57
|
return t == Rn || t == Vn || t == Bn || t == Hn;
|
|
58
58
|
}
|
|
59
59
|
var Ne = V["__core-js_shared__"], nt = (function() {
|
|
@@ -157,7 +157,7 @@ function pr(e, t) {
|
|
|
157
157
|
}
|
|
158
158
|
var hr = "[object Arguments]";
|
|
159
159
|
function ot(e) {
|
|
160
|
-
return J(e) &&
|
|
160
|
+
return J(e) && pe(e) == hr;
|
|
161
161
|
}
|
|
162
162
|
var Ht = Object.prototype, gr = Ht.hasOwnProperty, br = Ht.propertyIsEnumerable, Ut = ot(/* @__PURE__ */ (function() {
|
|
163
163
|
return arguments;
|
|
@@ -167,26 +167,26 @@ var Ht = Object.prototype, gr = Ht.hasOwnProperty, br = Ht.propertyIsEnumerable,
|
|
|
167
167
|
function vr() {
|
|
168
168
|
return !1;
|
|
169
169
|
}
|
|
170
|
-
var zt = typeof exports == "object" && exports && !exports.nodeType && exports, st = zt && typeof module == "object" && module && !module.nodeType && module, yr = st && st.exports === zt, it = yr ? V.Buffer : void 0, mr = it ? it.isBuffer : void 0, me = mr || vr, $r = "[object Arguments]", Tr = "[object Array]", _r = "[object Boolean]", wr = "[object Date]", jr = "[object Error]", Ar = "[object Function]",
|
|
170
|
+
var zt = typeof exports == "object" && exports && !exports.nodeType && exports, st = zt && typeof module == "object" && module && !module.nodeType && module, yr = st && st.exports === zt, it = yr ? V.Buffer : void 0, mr = it ? it.isBuffer : void 0, me = mr || vr, $r = "[object Arguments]", Tr = "[object Array]", _r = "[object Boolean]", wr = "[object Date]", jr = "[object Error]", Ar = "[object Function]", Sr = "[object Map]", Or = "[object Number]", Cr = "[object Object]", Er = "[object RegExp]", Nr = "[object Set]", Pr = "[object String]", Lr = "[object WeakMap]", Dr = "[object ArrayBuffer]", Ir = "[object DataView]", Mr = "[object Float32Array]", xr = "[object Float64Array]", kr = "[object Int8Array]", Fr = "[object Int16Array]", Br = "[object Int32Array]", Rr = "[object Uint8Array]", Vr = "[object Uint8ClampedArray]", Hr = "[object Uint16Array]", Ur = "[object Uint32Array]", $ = {};
|
|
171
171
|
$[Mr] = $[xr] = $[kr] = $[Fr] = $[Br] = $[Rr] = $[Vr] = $[Hr] = $[Ur] = !0;
|
|
172
|
-
$[$r] = $[Tr] = $[Dr] = $[_r] = $[Ir] = $[wr] = $[jr] = $[Ar] = $[
|
|
172
|
+
$[$r] = $[Tr] = $[Dr] = $[_r] = $[Ir] = $[wr] = $[jr] = $[Ar] = $[Sr] = $[Or] = $[Cr] = $[Er] = $[Nr] = $[Pr] = $[Lr] = !1;
|
|
173
173
|
function zr(e) {
|
|
174
|
-
return J(e) && Rt(e.length) && !!$[
|
|
174
|
+
return J(e) && Rt(e.length) && !!$[pe(e)];
|
|
175
175
|
}
|
|
176
176
|
function Ue(e) {
|
|
177
177
|
return function(t) {
|
|
178
178
|
return e(t);
|
|
179
179
|
};
|
|
180
180
|
}
|
|
181
|
-
var Gt = typeof exports == "object" && exports && !exports.nodeType && exports,
|
|
181
|
+
var Gt = typeof exports == "object" && exports && !exports.nodeType && exports, ce = Gt && typeof module == "object" && module && !module.nodeType && module, Gr = ce && ce.exports === Gt, Pe = Gr && kt.process, oe = (function() {
|
|
182
182
|
try {
|
|
183
|
-
var e =
|
|
183
|
+
var e = ce && ce.require && ce.require("util").types;
|
|
184
184
|
return e || Pe && Pe.binding && Pe.binding("util");
|
|
185
185
|
} catch (t) {
|
|
186
186
|
}
|
|
187
|
-
})(), lt =
|
|
187
|
+
})(), lt = oe && oe.isTypedArray, Kt = lt ? Ue(lt) : zr, Kr = Object.prototype, qr = Kr.hasOwnProperty;
|
|
188
188
|
function Wr(e, t) {
|
|
189
|
-
var n =
|
|
189
|
+
var n = ae(e), r = !n && Ut(e), a = !n && !r && me(e), o = !n && !r && !a && Kt(e), s = n || r || a || o, l = s ? pr(e.length, String) : [], c = l.length;
|
|
190
190
|
for (var i in e)
|
|
191
191
|
qr.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.
|
|
@@ -212,9 +212,9 @@ function Yr(e) {
|
|
|
212
212
|
function Qr(e) {
|
|
213
213
|
return dr(e) ? Wr(e) : Yr(e);
|
|
214
214
|
}
|
|
215
|
-
var
|
|
215
|
+
var de = Q(Object, "create");
|
|
216
216
|
function ea() {
|
|
217
|
-
this.__data__ =
|
|
217
|
+
this.__data__ = de ? de(null) : {}, this.size = 0;
|
|
218
218
|
}
|
|
219
219
|
function ta(e) {
|
|
220
220
|
var t = this.has(e) && delete this.__data__[e];
|
|
@@ -223,7 +223,7 @@ function ta(e) {
|
|
|
223
223
|
var na = "__lodash_hash_undefined__", ra = Object.prototype, aa = ra.hasOwnProperty;
|
|
224
224
|
function oa(e) {
|
|
225
225
|
var t = this.__data__;
|
|
226
|
-
if (
|
|
226
|
+
if (de) {
|
|
227
227
|
var n = t[e];
|
|
228
228
|
return n === na ? void 0 : n;
|
|
229
229
|
}
|
|
@@ -232,12 +232,12 @@ function oa(e) {
|
|
|
232
232
|
var sa = Object.prototype, ia = sa.hasOwnProperty;
|
|
233
233
|
function la(e) {
|
|
234
234
|
var t = this.__data__;
|
|
235
|
-
return
|
|
235
|
+
return de ? t[e] !== void 0 : ia.call(t, e);
|
|
236
236
|
}
|
|
237
237
|
var ca = "__lodash_hash_undefined__";
|
|
238
238
|
function ua(e, t) {
|
|
239
239
|
var n = this.__data__;
|
|
240
|
-
return this.size += this.has(e) ? 0 : 1, n[e] =
|
|
240
|
+
return this.size += this.has(e) ? 0 : 1, n[e] = de && t === void 0 ? ca : t, this;
|
|
241
241
|
}
|
|
242
242
|
function X(e) {
|
|
243
243
|
var t = -1, n = e == null ? 0 : e.length;
|
|
@@ -254,7 +254,7 @@ X.prototype.set = ua;
|
|
|
254
254
|
function da() {
|
|
255
255
|
this.__data__ = [], this.size = 0;
|
|
256
256
|
}
|
|
257
|
-
function
|
|
257
|
+
function Se(e, t) {
|
|
258
258
|
for (var n = e.length; n--; )
|
|
259
259
|
if (He(e[n][0], t))
|
|
260
260
|
return n;
|
|
@@ -262,40 +262,40 @@ function Oe(e, t) {
|
|
|
262
262
|
}
|
|
263
263
|
var fa = Array.prototype, pa = fa.splice;
|
|
264
264
|
function ha(e) {
|
|
265
|
-
var t = this.__data__, n =
|
|
265
|
+
var t = this.__data__, n = Se(t, e);
|
|
266
266
|
if (n < 0)
|
|
267
267
|
return !1;
|
|
268
268
|
var r = t.length - 1;
|
|
269
269
|
return n == r ? t.pop() : pa.call(t, n, 1), --this.size, !0;
|
|
270
270
|
}
|
|
271
271
|
function ga(e) {
|
|
272
|
-
var t = this.__data__, n =
|
|
272
|
+
var t = this.__data__, n = Se(t, e);
|
|
273
273
|
return n < 0 ? void 0 : t[n][1];
|
|
274
274
|
}
|
|
275
275
|
function ba(e) {
|
|
276
|
-
return
|
|
276
|
+
return Se(this.__data__, e) > -1;
|
|
277
277
|
}
|
|
278
278
|
function va(e, t) {
|
|
279
|
-
var n = this.__data__, r =
|
|
279
|
+
var n = this.__data__, r = Se(n, e);
|
|
280
280
|
return r < 0 ? (++this.size, n.push([e, t])) : n[r][1] = t, this;
|
|
281
281
|
}
|
|
282
|
-
function
|
|
282
|
+
function z(e) {
|
|
283
283
|
var t = -1, n = e == null ? 0 : e.length;
|
|
284
284
|
for (this.clear(); ++t < n; ) {
|
|
285
285
|
var r = e[t];
|
|
286
286
|
this.set(r[0], r[1]);
|
|
287
287
|
}
|
|
288
288
|
}
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
var
|
|
289
|
+
z.prototype.clear = da;
|
|
290
|
+
z.prototype.delete = ha;
|
|
291
|
+
z.prototype.get = ga;
|
|
292
|
+
z.prototype.has = ba;
|
|
293
|
+
z.prototype.set = va;
|
|
294
|
+
var fe = Q(V, "Map");
|
|
295
295
|
function ya() {
|
|
296
296
|
this.size = 0, this.__data__ = {
|
|
297
297
|
hash: new X(),
|
|
298
|
-
map: new (
|
|
298
|
+
map: new (fe || z)(),
|
|
299
299
|
string: new X()
|
|
300
300
|
};
|
|
301
301
|
}
|
|
@@ -303,22 +303,22 @@ function ma(e) {
|
|
|
303
303
|
var t = typeof e;
|
|
304
304
|
return t == "string" || t == "number" || t == "symbol" || t == "boolean" ? e !== "__proto__" : e === null;
|
|
305
305
|
}
|
|
306
|
-
function
|
|
306
|
+
function Oe(e, t) {
|
|
307
307
|
var n = e.__data__;
|
|
308
308
|
return ma(t) ? n[typeof t == "string" ? "string" : "hash"] : n.map;
|
|
309
309
|
}
|
|
310
310
|
function $a(e) {
|
|
311
|
-
var t =
|
|
311
|
+
var t = Oe(this, e).delete(e);
|
|
312
312
|
return this.size -= t ? 1 : 0, t;
|
|
313
313
|
}
|
|
314
314
|
function Ta(e) {
|
|
315
|
-
return
|
|
315
|
+
return Oe(this, e).get(e);
|
|
316
316
|
}
|
|
317
317
|
function _a(e) {
|
|
318
|
-
return
|
|
318
|
+
return Oe(this, e).has(e);
|
|
319
319
|
}
|
|
320
320
|
function wa(e, t) {
|
|
321
|
-
var n =
|
|
321
|
+
var n = Oe(this, e), r = n.size;
|
|
322
322
|
return n.set(e, t), this.size += n.size == r ? 0 : 1, this;
|
|
323
323
|
}
|
|
324
324
|
function ee(e) {
|
|
@@ -340,7 +340,7 @@ function ja(e, t) {
|
|
|
340
340
|
}
|
|
341
341
|
var ct = R ? R.isConcatSpreadable : void 0;
|
|
342
342
|
function Aa(e) {
|
|
343
|
-
return
|
|
343
|
+
return ae(e) || Ut(e) || !!(ct && e && e[ct]);
|
|
344
344
|
}
|
|
345
345
|
function Wt(e, t, n, r, a) {
|
|
346
346
|
var o = -1, s = e.length;
|
|
@@ -350,11 +350,11 @@ function Wt(e, t, n, r, a) {
|
|
|
350
350
|
}
|
|
351
351
|
return a;
|
|
352
352
|
}
|
|
353
|
-
var
|
|
354
|
-
function
|
|
355
|
-
this.__data__ = new
|
|
353
|
+
var Sa = qt(Object.getPrototypeOf, Object);
|
|
354
|
+
function Oa() {
|
|
355
|
+
this.__data__ = new z(), this.size = 0;
|
|
356
356
|
}
|
|
357
|
-
function
|
|
357
|
+
function Ca(e) {
|
|
358
358
|
var t = this.__data__, n = t.delete(e);
|
|
359
359
|
return this.size = t.size, n;
|
|
360
360
|
}
|
|
@@ -367,23 +367,23 @@ function Na(e) {
|
|
|
367
367
|
var Pa = 200;
|
|
368
368
|
function La(e, t) {
|
|
369
369
|
var n = this.__data__;
|
|
370
|
-
if (n instanceof
|
|
370
|
+
if (n instanceof z) {
|
|
371
371
|
var r = n.__data__;
|
|
372
|
-
if (!
|
|
372
|
+
if (!fe || r.length < Pa - 1)
|
|
373
373
|
return r.push([e, t]), this.size = ++n.size, this;
|
|
374
374
|
n = this.__data__ = new ee(r);
|
|
375
375
|
}
|
|
376
376
|
return n.set(e, t), this.size = n.size, this;
|
|
377
377
|
}
|
|
378
|
-
function
|
|
379
|
-
var t = this.__data__ = new
|
|
378
|
+
function U(e) {
|
|
379
|
+
var t = this.__data__ = new z(e);
|
|
380
380
|
this.size = t.size;
|
|
381
381
|
}
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
382
|
+
U.prototype.clear = Oa;
|
|
383
|
+
U.prototype.delete = Ca;
|
|
384
|
+
U.prototype.get = Ea;
|
|
385
|
+
U.prototype.has = Na;
|
|
386
|
+
U.prototype.set = La;
|
|
387
387
|
var Zt = typeof exports == "object" && exports && !exports.nodeType && exports, ut = Zt && typeof module == "object" && module && !module.nodeType && module, Da = ut && ut.exports === Zt, dt = Da ? V.Buffer : void 0;
|
|
388
388
|
dt && dt.allocUnsafe;
|
|
389
389
|
function Ia(e, t) {
|
|
@@ -406,14 +406,14 @@ var ka = Object.prototype, Fa = ka.propertyIsEnumerable, ft = Object.getOwnPrope
|
|
|
406
406
|
} : xa;
|
|
407
407
|
function Ra(e, t, n) {
|
|
408
408
|
var r = t(e);
|
|
409
|
-
return
|
|
409
|
+
return ae(e) ? r : ja(r, n(e));
|
|
410
410
|
}
|
|
411
411
|
function xe(e) {
|
|
412
412
|
return Ra(e, Qr, Ba);
|
|
413
413
|
}
|
|
414
|
-
var ke = Q(V, "DataView"), Fe = Q(V, "Promise"), Be = Q(V, "Set"), pt = "[object Map]", Va = "[object Object]", ht = "[object Promise]", gt = "[object Set]", bt = "[object WeakMap]", vt = "[object DataView]", Ha = Y(ke), Ua = Y(
|
|
415
|
-
(ke && F(new ke(new ArrayBuffer(1))) != vt ||
|
|
416
|
-
var t =
|
|
414
|
+
var ke = Q(V, "DataView"), Fe = Q(V, "Promise"), Be = Q(V, "Set"), pt = "[object Map]", Va = "[object Object]", ht = "[object Promise]", gt = "[object Set]", bt = "[object WeakMap]", vt = "[object DataView]", Ha = Y(ke), Ua = Y(fe), za = Y(Fe), Ga = Y(Be), Ka = Y(Me), F = pe;
|
|
415
|
+
(ke && F(new ke(new ArrayBuffer(1))) != vt || fe && F(new fe()) != pt || Fe && F(Fe.resolve()) != ht || Be && F(new Be()) != gt || Me && F(new Me()) != bt) && (F = function(e) {
|
|
416
|
+
var t = pe(e), n = t == Va ? e.constructor : void 0, r = n ? Y(n) : "";
|
|
417
417
|
if (r)
|
|
418
418
|
switch (r) {
|
|
419
419
|
case Ha:
|
|
@@ -491,17 +491,17 @@ function To(e, t, n) {
|
|
|
491
491
|
}
|
|
492
492
|
}
|
|
493
493
|
function _o(e) {
|
|
494
|
-
return typeof e.constructor == "function" && !Vt(e) ? tr(
|
|
494
|
+
return typeof e.constructor == "function" && !Vt(e) ? tr(Sa(e)) : {};
|
|
495
495
|
}
|
|
496
496
|
var wo = "[object Map]";
|
|
497
497
|
function jo(e) {
|
|
498
498
|
return J(e) && F(e) == wo;
|
|
499
499
|
}
|
|
500
|
-
var $t =
|
|
501
|
-
function
|
|
502
|
-
return J(e) && F(e) ==
|
|
500
|
+
var $t = oe && oe.isMap, Ao = $t ? Ue($t) : jo, So = "[object Set]";
|
|
501
|
+
function Oo(e) {
|
|
502
|
+
return J(e) && F(e) == So;
|
|
503
503
|
}
|
|
504
|
-
var Tt =
|
|
504
|
+
var Tt = oe && oe.isSet, Co = Tt ? Ue(Tt) : Oo, Jt = "[object Arguments]", Eo = "[object Array]", No = "[object Boolean]", Po = "[object Date]", Lo = "[object Error]", Xt = "[object Function]", Do = "[object GeneratorFunction]", Io = "[object Map]", Mo = "[object Number]", Yt = "[object Object]", xo = "[object RegExp]", ko = "[object Set]", Fo = "[object String]", Bo = "[object Symbol]", Ro = "[object WeakMap]", Vo = "[object ArrayBuffer]", Ho = "[object DataView]", Uo = "[object Float32Array]", zo = "[object Float64Array]", Go = "[object Int8Array]", Ko = "[object Int16Array]", qo = "[object Int32Array]", Wo = "[object Uint8Array]", Zo = "[object Uint8ClampedArray]", Jo = "[object Uint16Array]", Xo = "[object Uint32Array]", m = {};
|
|
505
505
|
m[Jt] = m[Eo] = m[Vo] = m[Ho] = m[No] = m[Po] = m[Uo] = m[zo] = m[Go] = m[Ko] = m[qo] = m[Io] = m[Mo] = m[Yt] = m[xo] = m[ko] = m[Fo] = m[Bo] = m[Wo] = m[Zo] = m[Jo] = m[Xo] = !0;
|
|
506
506
|
m[Lo] = m[Xt] = m[Ro] = !1;
|
|
507
507
|
function ve(e, t, n, r, a, o) {
|
|
@@ -510,7 +510,7 @@ function ve(e, t, n, r, a, o) {
|
|
|
510
510
|
return s;
|
|
511
511
|
if (!Ae(e))
|
|
512
512
|
return e;
|
|
513
|
-
var l =
|
|
513
|
+
var l = ae(e);
|
|
514
514
|
if (l)
|
|
515
515
|
s = Za(e);
|
|
516
516
|
else {
|
|
@@ -525,18 +525,18 @@ function ve(e, t, n, r, a, o) {
|
|
|
525
525
|
s = To(e, c);
|
|
526
526
|
}
|
|
527
527
|
}
|
|
528
|
-
o || (o = new
|
|
528
|
+
o || (o = new U());
|
|
529
529
|
var d = o.get(e);
|
|
530
530
|
if (d)
|
|
531
531
|
return d;
|
|
532
|
-
o.set(e, s),
|
|
532
|
+
o.set(e, s), Co(e) ? e.forEach(function(h) {
|
|
533
533
|
s.add(ve(h, t, n, h, e, o));
|
|
534
|
-
}) : Ao(e) && e.forEach(function(h,
|
|
535
|
-
s.set(
|
|
534
|
+
}) : Ao(e) && e.forEach(function(h, b) {
|
|
535
|
+
s.set(b, ve(h, t, n, b, e, o));
|
|
536
536
|
});
|
|
537
537
|
var f = xe, p = l ? void 0 : f(e);
|
|
538
|
-
return nr(p || e, function(h,
|
|
539
|
-
p && (
|
|
538
|
+
return nr(p || e, function(h, b) {
|
|
539
|
+
p && (b = h, h = e[b]), cr(s, b, ve(h, t, n, b, e, o));
|
|
540
540
|
}), s;
|
|
541
541
|
}
|
|
542
542
|
var Yo = 1, Qo = 4;
|
|
@@ -576,9 +576,9 @@ function Qt(e, t, n, r, a, o) {
|
|
|
576
576
|
return i == t && d == e;
|
|
577
577
|
var f = -1, p = !0, h = n & is ? new Te() : void 0;
|
|
578
578
|
for (o.set(e, t), o.set(t, e); ++f < l; ) {
|
|
579
|
-
var
|
|
579
|
+
var b = e[f], O = t[f];
|
|
580
580
|
if (r)
|
|
581
|
-
var C = s ? r(O,
|
|
581
|
+
var C = s ? r(O, b, f, t, e, o) : r(b, O, f, e, t, o);
|
|
582
582
|
if (C !== void 0) {
|
|
583
583
|
if (C)
|
|
584
584
|
continue;
|
|
@@ -586,14 +586,14 @@ function Qt(e, t, n, r, a, o) {
|
|
|
586
586
|
break;
|
|
587
587
|
}
|
|
588
588
|
if (h) {
|
|
589
|
-
if (!as(t, function(
|
|
590
|
-
if (!os(h,
|
|
591
|
-
return h.push(
|
|
589
|
+
if (!as(t, function(A, j) {
|
|
590
|
+
if (!os(h, j) && (b === A || a(b, A, n, r, o)))
|
|
591
|
+
return h.push(j);
|
|
592
592
|
})) {
|
|
593
593
|
p = !1;
|
|
594
594
|
break;
|
|
595
595
|
}
|
|
596
|
-
} else if (!(
|
|
596
|
+
} else if (!(b === O || a(b, O, n, r, o))) {
|
|
597
597
|
p = !1;
|
|
598
598
|
break;
|
|
599
599
|
}
|
|
@@ -648,41 +648,41 @@ function ws(e, t, n, r, a, o, s) {
|
|
|
648
648
|
}
|
|
649
649
|
return !1;
|
|
650
650
|
}
|
|
651
|
-
var js = 1, As = Object.prototype,
|
|
652
|
-
function
|
|
651
|
+
var js = 1, As = Object.prototype, Ss = As.hasOwnProperty;
|
|
652
|
+
function Os(e, t, n, r, a, o) {
|
|
653
653
|
var s = n & js, l = xe(e), c = l.length, i = xe(t), d = i.length;
|
|
654
654
|
if (c != d && !s)
|
|
655
655
|
return !1;
|
|
656
656
|
for (var f = c; f--; ) {
|
|
657
657
|
var p = l[f];
|
|
658
|
-
if (!(s ? p in t :
|
|
658
|
+
if (!(s ? p in t : Ss.call(t, p)))
|
|
659
659
|
return !1;
|
|
660
660
|
}
|
|
661
|
-
var h = o.get(e),
|
|
662
|
-
if (h &&
|
|
663
|
-
return h == t &&
|
|
661
|
+
var h = o.get(e), b = o.get(t);
|
|
662
|
+
if (h && b)
|
|
663
|
+
return h == t && b == 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], j = t[p];
|
|
669
669
|
if (r)
|
|
670
|
-
var
|
|
671
|
-
if (!(
|
|
670
|
+
var M = s ? r(j, A, p, t, e, o) : r(A, j, p, e, t, o);
|
|
671
|
+
if (!(M === void 0 ? A === j || a(A, j, 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
|
|
679
|
-
|
|
678
|
+
var L = e.constructor, N = t.constructor;
|
|
679
|
+
L != N && "constructor" in e && "constructor" in t && !(typeof L == "function" && L instanceof L && typeof N == "function" && N instanceof N) && (O = !1);
|
|
680
680
|
}
|
|
681
681
|
return o.delete(e), o.delete(t), O;
|
|
682
682
|
}
|
|
683
|
-
var
|
|
683
|
+
var Cs = 1, wt = "[object Arguments]", jt = "[object Array]", be = "[object Object]", Es = Object.prototype, At = Es.hasOwnProperty;
|
|
684
684
|
function Ns(e, t, n, r, a, o) {
|
|
685
|
-
var s =
|
|
685
|
+
var s = ae(e), l = ae(t), c = s ? jt : F(e), i = l ? jt : F(t);
|
|
686
686
|
c = c == wt ? be : c, i = i == wt ? be : i;
|
|
687
687
|
var d = c == be, f = i == be, p = c == i;
|
|
688
688
|
if (p && me(e)) {
|
|
@@ -691,15 +691,15 @@ function Ns(e, t, n, r, a, o) {
|
|
|
691
691
|
s = !0, d = !1;
|
|
692
692
|
}
|
|
693
693
|
if (p && !d)
|
|
694
|
-
return o || (o = new
|
|
695
|
-
if (!(n &
|
|
696
|
-
var h = d && At.call(e, "__wrapped__"),
|
|
697
|
-
if (h ||
|
|
698
|
-
var O = h ? e.value() : e, C =
|
|
699
|
-
return o || (o = new
|
|
694
|
+
return o || (o = new U()), s || Kt(e) ? Qt(e, t, n, r, a, o) : ws(e, t, c, n, r, a, o);
|
|
695
|
+
if (!(n & Cs)) {
|
|
696
|
+
var h = d && At.call(e, "__wrapped__"), b = f && At.call(t, "__wrapped__");
|
|
697
|
+
if (h || b) {
|
|
698
|
+
var O = h ? e.value() : e, C = b ? t.value() : t;
|
|
699
|
+
return o || (o = new U()), a(O, C, n, r, o);
|
|
700
700
|
}
|
|
701
701
|
}
|
|
702
|
-
return p ? (o || (o = new
|
|
702
|
+
return p ? (o || (o = new U()), Os(e, t, n, r, a, o)) : !1;
|
|
703
703
|
}
|
|
704
704
|
function en(e, t, n, r, a) {
|
|
705
705
|
return e === t ? !0 : e == null || t == null || !J(e) && !J(t) ? e !== e && t !== t : Ns(e, t, n, r, en, a);
|
|
@@ -716,7 +716,7 @@ function Ds(e) {
|
|
|
716
716
|
}
|
|
717
717
|
return r;
|
|
718
718
|
}
|
|
719
|
-
function
|
|
719
|
+
function ue(e, t) {
|
|
720
720
|
return en(e, t);
|
|
721
721
|
}
|
|
722
722
|
const tn = (e) => !e.getAttribute("aria-owns"), Is = (e, t, n) => {
|
|
@@ -726,7 +726,7 @@ const tn = (e) => !e.getAttribute("aria-owns"), Is = (e, t, n) => {
|
|
|
726
726
|
return a[o + t] || null;
|
|
727
727
|
}, De = (e) => {
|
|
728
728
|
e && (e.focus(), !tn(e) && e.click());
|
|
729
|
-
}, Ms = (e) => e === void 0, di = (e) => typeof e == "boolean", Re = (e) => !e && e !== 0 ||
|
|
729
|
+
}, Ms = (e) => e === void 0, di = (e) => typeof e == "boolean", Re = (e) => !e && e !== 0 || On(e) && e.length === 0 || je(e) && !Object.keys(e).length, St = (e) => En(e), nn = "__epPropKey", Ie = (e) => e, xs = (e) => je(e) && !!e[nn], ks = (e, t) => {
|
|
730
730
|
if (!je(e) || xs(e)) return e;
|
|
731
731
|
const { values: n, required: r, default: a, type: o, validator: s } = e, c = {
|
|
732
732
|
type: o,
|
|
@@ -751,7 +751,7 @@ const tn = (e) => !e.getAttribute("aria-owns"), Is = (e, t, n) => {
|
|
|
751
751
|
t,
|
|
752
752
|
ks(n, t)
|
|
753
753
|
])
|
|
754
|
-
),
|
|
754
|
+
), Ot = (e) => [...new Set(e)], Ct = (e) => !e && e !== 0 ? [] : Array.isArray(e) ? e : [e], Bs = () => Math.floor(Math.random() * 1e4), Rs = _e({
|
|
755
755
|
name: "NodeContent",
|
|
756
756
|
setup() {
|
|
757
757
|
return {
|
|
@@ -786,37 +786,37 @@ const tn = (e) => !e.getAttribute("aria-owns"), Is = (e, t, n) => {
|
|
|
786
786
|
},
|
|
787
787
|
emits: ["expand"],
|
|
788
788
|
setup(e, { emit: t }) {
|
|
789
|
-
const n = Pt(Ge), r = we("cascader-node"), a =
|
|
789
|
+
const n = Pt(Ge), r = we("cascader-node"), a = P(() => n.isHoverMenu), o = P(() => n.config.multiple), s = P(() => n.config.checkStrictly), l = P(() => {
|
|
790
790
|
var T;
|
|
791
791
|
return (T = n.checkedNodes[0]) == null ? void 0 : T.uid;
|
|
792
|
-
}), c =
|
|
792
|
+
}), c = P(() => e.node.isDisabled), i = P(() => e.node.isLeaf), d = P(
|
|
793
793
|
() => s.value && !i.value || !c.value
|
|
794
|
-
), f =
|
|
794
|
+
), f = P(() => h(n.expandingNode)), p = P(
|
|
795
795
|
() => s.value && n.checkedNodes.some(h)
|
|
796
796
|
), h = (T) => {
|
|
797
|
-
var
|
|
798
|
-
const { level:
|
|
799
|
-
return ((
|
|
800
|
-
},
|
|
797
|
+
var he;
|
|
798
|
+
const { level: x, uid: k } = e.node;
|
|
799
|
+
return ((he = T == null ? void 0 : T.pathNodes[x - 1]) == null ? void 0 : he.uid) === k;
|
|
800
|
+
}, b = () => {
|
|
801
801
|
f.value || n.expandNode(e.node);
|
|
802
802
|
}, O = (T) => {
|
|
803
|
-
const { node:
|
|
804
|
-
T !==
|
|
803
|
+
const { node: x } = e;
|
|
804
|
+
T !== x.checked && n.handleCheckChange(x, T);
|
|
805
805
|
}, C = () => {
|
|
806
806
|
n.lazyLoad(e.node, () => {
|
|
807
|
-
i.value ||
|
|
807
|
+
i.value || b();
|
|
808
808
|
});
|
|
809
|
-
},
|
|
810
|
-
a.value && (
|
|
811
|
-
},
|
|
809
|
+
}, A = (T) => {
|
|
810
|
+
a.value && (j(), !i.value && t("expand", T));
|
|
811
|
+
}, j = () => {
|
|
812
812
|
const { node: T } = e;
|
|
813
|
-
!d.value || T.loading || (T.loaded ?
|
|
814
|
-
},
|
|
815
|
-
a.value && !i.value || (i.value && !c.value && !s.value && !o.value ?
|
|
816
|
-
},
|
|
817
|
-
s.value ? (O(T), e.node.loaded &&
|
|
818
|
-
},
|
|
819
|
-
e.node.loaded ? (O(T), !s.value &&
|
|
813
|
+
!d.value || T.loading || (T.loaded ? b() : C());
|
|
814
|
+
}, M = () => {
|
|
815
|
+
a.value && !i.value || (i.value && !c.value && !s.value && !o.value ? N(!0) : j());
|
|
816
|
+
}, L = (T) => {
|
|
817
|
+
s.value ? (O(T), e.node.loaded && b()) : N(T);
|
|
818
|
+
}, N = (T) => {
|
|
819
|
+
e.node.loaded ? (O(T), !s.value && b()) : C();
|
|
820
820
|
};
|
|
821
821
|
return {
|
|
822
822
|
panel: n,
|
|
@@ -830,11 +830,11 @@ const tn = (e) => !e.getAttribute("aria-owns"), Is = (e, t, n) => {
|
|
|
830
830
|
inExpandingPath: f,
|
|
831
831
|
inCheckedPath: p,
|
|
832
832
|
ns: r,
|
|
833
|
-
handleHoverExpand:
|
|
834
|
-
handleExpand:
|
|
835
|
-
handleClick:
|
|
836
|
-
handleCheck:
|
|
837
|
-
handleSelectCheck:
|
|
833
|
+
handleHoverExpand: A,
|
|
834
|
+
handleExpand: j,
|
|
835
|
+
handleClick: M,
|
|
836
|
+
handleCheck: N,
|
|
837
|
+
handleSelectCheck: L
|
|
838
838
|
};
|
|
839
839
|
}
|
|
840
840
|
}), Ke = (e, t) => {
|
|
@@ -844,8 +844,8 @@ const tn = (e) => !e.getAttribute("aria-owns"), Is = (e, t, n) => {
|
|
|
844
844
|
return n;
|
|
845
845
|
}, Hs = ["id", "aria-haspopup", "aria-owns", "aria-expanded", "tabindex"];
|
|
846
846
|
function Us(e, t, n, r, a, o) {
|
|
847
|
-
const s =
|
|
848
|
-
return
|
|
847
|
+
const s = I("el-checkbox"), l = I("el-radio"), c = I("check"), i = I("el-icon"), d = I("node-content"), f = I("loading"), p = I("arrow-right");
|
|
848
|
+
return D(), G("li", {
|
|
849
849
|
id: `${e.menuId}-${e.node.uid}`,
|
|
850
850
|
role: "menuitem",
|
|
851
851
|
"aria-haspopup": !e.isLeaf,
|
|
@@ -864,7 +864,7 @@ function Us(e, t, n, r, a, o) {
|
|
|
864
864
|
onFocus: t[3] || (t[3] = (...h) => e.handleHoverExpand && e.handleHoverExpand(...h)),
|
|
865
865
|
onClick: t[4] || (t[4] = (...h) => e.handleClick && e.handleClick(...h))
|
|
866
866
|
}, [
|
|
867
|
-
e.multiple ? (
|
|
867
|
+
e.multiple ? (D(), W(s, {
|
|
868
868
|
key: 0,
|
|
869
869
|
"model-value": e.node.checked,
|
|
870
870
|
indeterminate: e.node.indeterminate,
|
|
@@ -872,7 +872,7 @@ function Us(e, t, n, r, a, o) {
|
|
|
872
872
|
onClick: t[0] || (t[0] = Ze(() => {
|
|
873
873
|
}, ["stop"])),
|
|
874
874
|
"onUpdate:modelValue": e.handleSelectCheck
|
|
875
|
-
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])) : e.checkStrictly ? (
|
|
875
|
+
}, null, 8, ["model-value", "indeterminate", "disabled", "onUpdate:modelValue"])) : e.checkStrictly ? (D(), W(l, {
|
|
876
876
|
key: 1,
|
|
877
877
|
"model-value": e.checkedNodeId,
|
|
878
878
|
label: e.node.uid,
|
|
@@ -881,34 +881,34 @@ function Us(e, t, n, r, a, o) {
|
|
|
881
881
|
onClick: t[1] || (t[1] = Ze(() => {
|
|
882
882
|
}, ["stop"]))
|
|
883
883
|
}, {
|
|
884
|
-
default:
|
|
884
|
+
default: re(() => [...t[5] || (t[5] = [
|
|
885
885
|
Lt("span", null, null, -1)
|
|
886
886
|
])]),
|
|
887
887
|
_: 1
|
|
888
|
-
}, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : e.isLeaf && e.node.checked ? (
|
|
888
|
+
}, 8, ["model-value", "label", "disabled", "onUpdate:modelValue"])) : e.isLeaf && e.node.checked ? (D(), W(i, {
|
|
889
889
|
key: 2,
|
|
890
890
|
class: B(e.ns.e("prefix"))
|
|
891
891
|
}, {
|
|
892
|
-
default:
|
|
892
|
+
default: re(() => [
|
|
893
893
|
Z(c)
|
|
894
894
|
]),
|
|
895
895
|
_: 1
|
|
896
896
|
}, 8, ["class"])) : ye("", !0),
|
|
897
897
|
Z(d),
|
|
898
|
-
e.isLeaf ? ye("", !0) : (
|
|
899
|
-
e.node.loading ? (
|
|
898
|
+
e.isLeaf ? ye("", !0) : (D(), G(Dt, { key: 3 }, [
|
|
899
|
+
e.node.loading ? (D(), W(i, {
|
|
900
900
|
key: 0,
|
|
901
901
|
class: B([e.ns.is("loading"), e.ns.e("postfix")])
|
|
902
902
|
}, {
|
|
903
|
-
default:
|
|
903
|
+
default: re(() => [
|
|
904
904
|
Z(f)
|
|
905
905
|
]),
|
|
906
906
|
_: 1
|
|
907
|
-
}, 8, ["class"])) : (
|
|
907
|
+
}, 8, ["class"])) : (D(), W(i, {
|
|
908
908
|
key: 1,
|
|
909
909
|
class: B(["arrow-right", e.ns.e("postfix")])
|
|
910
910
|
}, {
|
|
911
|
-
default:
|
|
911
|
+
default: re(() => [
|
|
912
912
|
Z(p)
|
|
913
913
|
]),
|
|
914
914
|
_: 1
|
|
@@ -941,25 +941,25 @@ const zs = /* @__PURE__ */ Ke(Vs, [["render", Us]]), Gs = (e, t = "14px sans-ser
|
|
|
941
941
|
setup(e) {
|
|
942
942
|
const t = fn(), n = we("cascader-menu"), { t: r } = wn(), a = Bs();
|
|
943
943
|
let o = null, s = null;
|
|
944
|
-
const l = Pt(Ge), c = q(null), i =
|
|
944
|
+
const l = Pt(Ge), c = q(null), i = P(() => !e.nodes.length), d = P(() => !l.initialLoaded), f = P(() => `cascader-menu-${a}-${e.index}`), p = P(() => {
|
|
945
945
|
if (!e.nodes.length) return 180;
|
|
946
|
-
const
|
|
947
|
-
let
|
|
948
|
-
for (const
|
|
949
|
-
const
|
|
950
|
-
|
|
946
|
+
const A = 110;
|
|
947
|
+
let j = 0;
|
|
948
|
+
for (const M of e.nodes) {
|
|
949
|
+
const L = M.label || "", N = Gs(String(L));
|
|
950
|
+
N > j && (j = N);
|
|
951
951
|
}
|
|
952
|
-
return Math.max(180, Math.ceil(
|
|
953
|
-
}), h = (
|
|
954
|
-
o =
|
|
955
|
-
},
|
|
952
|
+
return Math.max(180, Math.ceil(j + A));
|
|
953
|
+
}), h = (A) => {
|
|
954
|
+
o = A.target;
|
|
955
|
+
}, b = (A) => {
|
|
956
956
|
if (!(!l.isHoverMenu || !o || !c.value))
|
|
957
|
-
if (o.contains(
|
|
957
|
+
if (o.contains(A.target)) {
|
|
958
958
|
O();
|
|
959
|
-
const
|
|
959
|
+
const j = t.vnode.el, { left: M } = j.getBoundingClientRect(), { offsetWidth: L, offsetHeight: N } = j, T = A.clientX - M, x = o.offsetTop, k = x + o.offsetHeight;
|
|
960
960
|
c.value.innerHTML = `
|
|
961
|
-
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${
|
|
962
|
-
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${k} L${
|
|
961
|
+
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${x} L${L} 0 V${x} Z" />
|
|
962
|
+
<path style="pointer-events: auto;" fill="transparent" d="M${T} ${k} L${L} ${N} V${k} Z" />
|
|
963
963
|
`;
|
|
964
964
|
} else s || (s = window.setTimeout(
|
|
965
965
|
C,
|
|
@@ -980,14 +980,14 @@ const zs = /* @__PURE__ */ Ke(Vs, [["render", Us]]), Gs = (e, t = "14px sans-ser
|
|
|
980
980
|
menuWidth: p,
|
|
981
981
|
t: r,
|
|
982
982
|
handleExpand: h,
|
|
983
|
-
handleMouseMove:
|
|
983
|
+
handleMouseMove: b,
|
|
984
984
|
clearHoverZone: C
|
|
985
985
|
};
|
|
986
986
|
}
|
|
987
987
|
});
|
|
988
988
|
function qs(e, t, n, r, a, o) {
|
|
989
|
-
const s =
|
|
990
|
-
return e.nodes.length ? (
|
|
989
|
+
const s = I("custom-cascader-node"), l = I("loading"), c = I("el-icon"), i = I("RecycleScroller");
|
|
990
|
+
return e.nodes.length ? (D(), W(i, {
|
|
991
991
|
key: e.menuId,
|
|
992
992
|
tag: "ul",
|
|
993
993
|
role: "menu",
|
|
@@ -1001,7 +1001,7 @@ function qs(e, t, n, r, a, o) {
|
|
|
1001
1001
|
onMousemove: e.handleMouseMove,
|
|
1002
1002
|
onMouseleave: e.clearHoverZone
|
|
1003
1003
|
}, {
|
|
1004
|
-
default:
|
|
1004
|
+
default: re(({ item: d }) => {
|
|
1005
1005
|
var f;
|
|
1006
1006
|
return [
|
|
1007
1007
|
Z(s, {
|
|
@@ -1009,7 +1009,7 @@ function qs(e, t, n, r, a, o) {
|
|
|
1009
1009
|
"menu-id": e.menuId,
|
|
1010
1010
|
onExpand: e.handleExpand
|
|
1011
1011
|
}, null, 8, ["node", "menu-id", "onExpand"]),
|
|
1012
|
-
e.isLoading ? (
|
|
1012
|
+
e.isLoading ? (D(), G("div", {
|
|
1013
1013
|
key: 0,
|
|
1014
1014
|
class: B(e.ns.e("empty-text"))
|
|
1015
1015
|
}, [
|
|
@@ -1017,16 +1017,16 @@ function qs(e, t, n, r, a, o) {
|
|
|
1017
1017
|
size: "14",
|
|
1018
1018
|
class: B(e.ns.is("loading"))
|
|
1019
1019
|
}, {
|
|
1020
|
-
default:
|
|
1020
|
+
default: re(() => [
|
|
1021
1021
|
Z(l)
|
|
1022
1022
|
]),
|
|
1023
1023
|
_: 1
|
|
1024
1024
|
}, 8, ["class"]),
|
|
1025
1025
|
pn(" " + Je(e.t("el.cascader.loading")), 1)
|
|
1026
|
-
], 2)) : e.isEmpty ? (
|
|
1026
|
+
], 2)) : e.isEmpty ? (D(), G("div", {
|
|
1027
1027
|
key: 1,
|
|
1028
1028
|
class: B(e.ns.e("empty-text"))
|
|
1029
|
-
}, Je(e.t("el.cascader.noData")), 3)) : (f = e.panel) != null && f.isHoverMenu ? (
|
|
1029
|
+
}, Je(e.t("el.cascader.noData")), 3)) : (f = e.panel) != null && f.isHoverMenu ? (D(), G("svg", {
|
|
1030
1030
|
key: 2,
|
|
1031
1031
|
ref: "hoverZone",
|
|
1032
1032
|
class: B(e.ns.e("hover-zone"))
|
|
@@ -1045,56 +1045,56 @@ const Js = (e) => {
|
|
|
1045
1045
|
t.unshift(n), n = n.parent;
|
|
1046
1046
|
return t;
|
|
1047
1047
|
};
|
|
1048
|
-
class
|
|
1048
|
+
class se {
|
|
1049
1049
|
constructor(t, n, r, a = !1) {
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1050
|
+
E(this, "uid", Zs++);
|
|
1051
|
+
E(this, "level");
|
|
1052
|
+
E(this, "value");
|
|
1053
|
+
E(this, "label");
|
|
1054
|
+
E(this, "pathNodes");
|
|
1055
|
+
E(this, "pathValues");
|
|
1056
|
+
E(this, "pathLabels");
|
|
1057
|
+
E(this, "childrenData");
|
|
1058
|
+
E(this, "children");
|
|
1059
|
+
E(this, "text");
|
|
1060
|
+
E(this, "loaded");
|
|
1061
1061
|
/**
|
|
1062
1062
|
* Is it checked
|
|
1063
1063
|
*
|
|
1064
1064
|
* @default false
|
|
1065
1065
|
*/
|
|
1066
|
-
|
|
1066
|
+
E(this, "checked", !1);
|
|
1067
1067
|
/**
|
|
1068
1068
|
* Used to indicate the intermediate state of unchecked and fully checked child nodes
|
|
1069
1069
|
*
|
|
1070
1070
|
* @default false
|
|
1071
1071
|
*/
|
|
1072
|
-
|
|
1072
|
+
E(this, "indeterminate", !1);
|
|
1073
1073
|
/**
|
|
1074
1074
|
* Loading Status
|
|
1075
1075
|
*
|
|
1076
1076
|
* @default false
|
|
1077
1077
|
*/
|
|
1078
|
-
|
|
1078
|
+
E(this, "loading", !1);
|
|
1079
1079
|
this.data = t, this.config = n, this.parent = r, this.root = a;
|
|
1080
1080
|
const { value: o, label: s, children: l } = n, c = t[l], i = Js(this);
|
|
1081
1081
|
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(
|
|
1082
|
-
(d) => new
|
|
1082
|
+
(d) => new se(d, n, this)
|
|
1083
1083
|
), this.loaded = !n.lazy || this.isLeaf || !Re(c);
|
|
1084
1084
|
}
|
|
1085
1085
|
get isDisabled() {
|
|
1086
1086
|
const { data: t, parent: n, config: r } = this, { disabled: a, checkStrictly: o } = r;
|
|
1087
|
-
return (
|
|
1087
|
+
return (le(a) ? a(t, this) : !!t[a]) || !o && (n == null ? void 0 : n.isDisabled);
|
|
1088
1088
|
}
|
|
1089
1089
|
get isLeaf() {
|
|
1090
|
-
const { data: t, config: n, childrenData: r, loaded: a } = this, { lazy: o, leaf: s } = n, l =
|
|
1090
|
+
const { data: t, config: n, childrenData: r, loaded: a } = this, { lazy: o, leaf: s } = n, l = le(s) ? s(t, this) : t[s];
|
|
1091
1091
|
return Ms(l) ? o && !a ? !1 : !(Array.isArray(r) && r.length) : !!l;
|
|
1092
1092
|
}
|
|
1093
1093
|
get valueByOption() {
|
|
1094
1094
|
return this.config.emitPath ? this.pathValues : this.value;
|
|
1095
1095
|
}
|
|
1096
1096
|
appendChild(t) {
|
|
1097
|
-
const { childrenData: n, children: r } = this, a = new
|
|
1097
|
+
const { childrenData: n, children: r } = this, a = new se(t, this.config, this);
|
|
1098
1098
|
return Array.isArray(n) ? n.push(t) : this.childrenData = [t], r.push(a), a;
|
|
1099
1099
|
}
|
|
1100
1100
|
calcText(t, n) {
|
|
@@ -1102,13 +1102,13 @@ class oe {
|
|
|
1102
1102
|
return this.text = r, r;
|
|
1103
1103
|
}
|
|
1104
1104
|
broadcast(t, ...n) {
|
|
1105
|
-
const r = `onParent${
|
|
1105
|
+
const r = `onParent${St(t)}`;
|
|
1106
1106
|
this.children.forEach((a) => {
|
|
1107
1107
|
a && (a.broadcast(t, ...n), a[r] && a[r](...n));
|
|
1108
1108
|
});
|
|
1109
1109
|
}
|
|
1110
1110
|
emit(t, ...n) {
|
|
1111
|
-
const { parent: r } = this, a = `onChild${
|
|
1111
|
+
const { parent: r } = this, a = `onChild${St(t)}`;
|
|
1112
1112
|
r && (r[a] && r[a](...n), r.emit(t, ...n));
|
|
1113
1113
|
}
|
|
1114
1114
|
onParentCheck(t) {
|
|
@@ -1134,12 +1134,12 @@ class oe {
|
|
|
1134
1134
|
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), []);
|
|
1135
1135
|
class Et {
|
|
1136
1136
|
constructor(t, n) {
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1137
|
+
E(this, "nodes");
|
|
1138
|
+
E(this, "allNodes");
|
|
1139
|
+
E(this, "leafNodes");
|
|
1140
1140
|
this.config = n;
|
|
1141
1141
|
const r = (t || []).map(
|
|
1142
|
-
(a) => new
|
|
1142
|
+
(a) => new se(a, this.config)
|
|
1143
1143
|
);
|
|
1144
1144
|
this.nodes = r, this.allNodes = Ve(r, !1), this.leafNodes = Ve(r, !0);
|
|
1145
1145
|
}
|
|
@@ -1150,7 +1150,7 @@ class Et {
|
|
|
1150
1150
|
return t ? this.leafNodes : this.allNodes;
|
|
1151
1151
|
}
|
|
1152
1152
|
appendNode(t, n) {
|
|
1153
|
-
const r = n ? n.appendChild(t) : new
|
|
1153
|
+
const r = n ? n.appendChild(t) : new se(t, this.config);
|
|
1154
1154
|
n || this.nodes.push(r), this.allNodes.push(r), r.isLeaf && this.leafNodes.push(r);
|
|
1155
1155
|
}
|
|
1156
1156
|
appendNodes(t, n) {
|
|
@@ -1159,12 +1159,12 @@ class Et {
|
|
|
1159
1159
|
// when checkStrictly, leaf node first
|
|
1160
1160
|
getNodeByValue(t, n = !1) {
|
|
1161
1161
|
return !t && t !== 0 ? null : this.getFlattedNodes(n).find(
|
|
1162
|
-
(a) =>
|
|
1162
|
+
(a) => ue(a.value, t) || ue(a.pathValues, t)
|
|
1163
1163
|
) || null;
|
|
1164
1164
|
}
|
|
1165
1165
|
getSameNode(t) {
|
|
1166
1166
|
return t && this.getFlattedNodes(!1).find(
|
|
1167
|
-
({ value: r, level: a }) =>
|
|
1167
|
+
({ value: r, level: a }) => ue(t.value, r) && t.level === a
|
|
1168
1168
|
) || null;
|
|
1169
1169
|
}
|
|
1170
1170
|
}
|
|
@@ -1240,7 +1240,7 @@ const Xs = Fs({
|
|
|
1240
1240
|
* @description hover threshold of expanding options
|
|
1241
1241
|
*/
|
|
1242
1242
|
hoverThreshold: 500
|
|
1243
|
-
}, Qs = (e) =>
|
|
1243
|
+
}, Qs = (e) => P(() => ge(ge({}, Ys), e.props)), Nt = (e) => {
|
|
1244
1244
|
if (!e) return 0;
|
|
1245
1245
|
const t = e.id.split("-");
|
|
1246
1246
|
return Number(t[t.length - 2]);
|
|
@@ -1275,89 +1275,100 @@ const Xs = Fs({
|
|
|
1275
1275
|
let r = !1;
|
|
1276
1276
|
const a = we("cascader"), o = Qs(e);
|
|
1277
1277
|
let s = null;
|
|
1278
|
-
const l = q(!0), c = q([]), i = q(null), d = q([]), f = q(null), p = q([]), h =
|
|
1279
|
-
const { options: u } = e,
|
|
1280
|
-
r = !1, s = new Et(u,
|
|
1281
|
-
y && (s = new Et(y,
|
|
1278
|
+
const l = q(!0), c = q([]), i = q(null), d = q([]), f = q(null), p = q([]), h = P(() => o.value.expandTrigger === "hover"), b = P(() => e.renderLabel || n.default), O = () => {
|
|
1279
|
+
const { options: u } = e, g = o.value;
|
|
1280
|
+
r = !1, s = new Et(u, g), d.value = [s.getNodes()], g.lazy && Re(e.options) ? (l.value = !1, C(void 0, (y) => {
|
|
1281
|
+
y && (s = new Et(y, g), d.value = [s.getNodes()]), l.value = !0, k(!1, !0);
|
|
1282
1282
|
})) : k(!1, !0);
|
|
1283
|
-
}, C = (u,
|
|
1283
|
+
}, C = (u, g) => {
|
|
1284
1284
|
const y = o.value;
|
|
1285
|
-
u = u || new
|
|
1285
|
+
u = u || new se({}, y, void 0, !0), u.loading = !0;
|
|
1286
1286
|
const _ = (v) => {
|
|
1287
|
-
const
|
|
1288
|
-
v && (s == null || s.appendNodes(v, H)),
|
|
1287
|
+
const S = u, H = S.root ? null : S;
|
|
1288
|
+
v && (s == null || s.appendNodes(v, H)), S.loading = !1, S.loaded = !0, S.childrenData = S.childrenData || [], g && g(v);
|
|
1289
1289
|
};
|
|
1290
1290
|
y.lazyLoad(u, _);
|
|
1291
|
-
},
|
|
1292
|
-
var
|
|
1291
|
+
}, A = (u, g) => {
|
|
1292
|
+
var S;
|
|
1293
1293
|
const { level: y } = u, _ = d.value.slice(0, y);
|
|
1294
1294
|
let v;
|
|
1295
|
-
u.isLeaf ? v = u.pathNodes[y - 2] : (v = u, _.push(u.children)), ((
|
|
1296
|
-
},
|
|
1297
|
-
const { checkStrictly: _, multiple: v } = o.value,
|
|
1298
|
-
r = !0, !v && (
|
|
1299
|
-
},
|
|
1300
|
-
u && (u = u.parent,
|
|
1301
|
-
},
|
|
1302
|
-
var
|
|
1303
|
-
return (
|
|
1295
|
+
u.isLeaf ? v = u.pathNodes[y - 2] : (v = u, _.push(u.children)), ((S = f.value) == null ? void 0 : S.uid) !== (v == null ? void 0 : v.uid) && (f.value = u, d.value = _, !g && t("expand-change", (u == null ? void 0 : u.pathValues) || []));
|
|
1296
|
+
}, j = (u, g, y = !0) => {
|
|
1297
|
+
const { checkStrictly: _, multiple: v } = o.value, S = p.value[0];
|
|
1298
|
+
r = !0, !v && (S == null || S.doCheck(!1)), u.doCheck(g), x(), y && !v && !_ && t("close"), !y && !v && !_ && M(u);
|
|
1299
|
+
}, M = (u) => {
|
|
1300
|
+
u && (u = u.parent, M(u), u && A(u));
|
|
1301
|
+
}, L = (u) => s == null ? void 0 : s.getFlattedNodes(u), N = (u) => {
|
|
1302
|
+
var g;
|
|
1303
|
+
return (g = L(u)) == null ? void 0 : g.filter((y) => y.checked !== !1);
|
|
1304
1304
|
}, T = () => {
|
|
1305
|
-
|
|
1306
|
-
|
|
1305
|
+
var u;
|
|
1306
|
+
(u = L(!1)) == null || u.forEach((g) => {
|
|
1307
|
+
g.checked = !1, g.indeterminate = !1;
|
|
1308
|
+
}), p.value = [], i.value = o.value.multiple ? [] : null, d.value = d.value.slice(0, 1), f.value = null, t("expand-change", []);
|
|
1309
|
+
}, x = () => {
|
|
1307
1310
|
var H;
|
|
1308
|
-
const { checkStrictly: u, multiple:
|
|
1309
|
-
p.value = v, i.value =
|
|
1310
|
-
}, k = (u = !1,
|
|
1311
|
-
const { modelValue: y } = e, { lazy: _, multiple: v, checkStrictly:
|
|
1312
|
-
if (!(!l.value || r || !
|
|
1311
|
+
const { checkStrictly: u, multiple: g } = o.value, y = p.value, _ = N(!u), v = ti(y, _), S = v.map((te) => te.valueByOption);
|
|
1312
|
+
p.value = v, i.value = g ? S : (H = S[0]) != null ? H : null;
|
|
1313
|
+
}, k = (u = !1, g = !1) => {
|
|
1314
|
+
const { modelValue: y } = e, { lazy: _, multiple: v, checkStrictly: S } = o.value, H = !S;
|
|
1315
|
+
if (!(!l.value || r || !g && ue(y, i.value)))
|
|
1313
1316
|
if (_ && !u) {
|
|
1314
|
-
const
|
|
1315
|
-
Ls(
|
|
1316
|
-
).map((
|
|
1317
|
-
|
|
1318
|
-
C(
|
|
1319
|
-
}) : k(!0,
|
|
1317
|
+
const K = Ot(
|
|
1318
|
+
Ls(Ct(y))
|
|
1319
|
+
).map((w) => s == null ? void 0 : s.getNodeByValue(w)).filter((w) => !!w && !w.loaded && !w.loading);
|
|
1320
|
+
K.length ? K.forEach((w) => {
|
|
1321
|
+
C(w, () => k(!1, g));
|
|
1322
|
+
}) : k(!0, g);
|
|
1320
1323
|
} else {
|
|
1321
|
-
const
|
|
1322
|
-
|
|
1324
|
+
const te = v ? Ct(y) : [y], K = Ot(
|
|
1325
|
+
te.map((w) => s == null ? void 0 : s.getNodeByValue(w, H))
|
|
1323
1326
|
);
|
|
1324
|
-
|
|
1327
|
+
he(K, g), i.value = es(y);
|
|
1325
1328
|
}
|
|
1326
|
-
},
|
|
1329
|
+
}, he = (u, g = !0) => {
|
|
1327
1330
|
const { checkStrictly: y } = o.value, _ = p.value, v = u.filter(
|
|
1328
|
-
(
|
|
1329
|
-
),
|
|
1330
|
-
H ? H.pathNodes.forEach((
|
|
1331
|
+
(w) => !!w && (y || w.isLeaf)
|
|
1332
|
+
), S = s == null ? void 0 : s.getSameNode(f.value), H = g && S || v[0];
|
|
1333
|
+
H ? H.pathNodes.forEach((w) => A(w, !0)) : f.value = null;
|
|
1334
|
+
const te = new Set(v), K = new Set(_);
|
|
1335
|
+
_.forEach((w) => {
|
|
1336
|
+
te.has(w) || w.doCheck(!1);
|
|
1337
|
+
}), e.props && e.props.multiple ? Xe(v).forEach((w) => {
|
|
1338
|
+
K.has(w) || w.doCheck(!0);
|
|
1339
|
+
}) : v.forEach((w) => {
|
|
1340
|
+
K.has(w) || w.doCheck(!0);
|
|
1341
|
+
}), p.value = v;
|
|
1331
1342
|
}, rn = (u) => {
|
|
1332
|
-
const
|
|
1343
|
+
const g = u.target, { code: y } = u;
|
|
1333
1344
|
switch (y) {
|
|
1334
|
-
case
|
|
1335
|
-
case
|
|
1345
|
+
case ne.up:
|
|
1346
|
+
case ne.down: {
|
|
1336
1347
|
u.preventDefault();
|
|
1337
|
-
const _ = y ===
|
|
1348
|
+
const _ = y === ne.up ? -1 : 1;
|
|
1338
1349
|
De(
|
|
1339
|
-
Is(
|
|
1350
|
+
Is(g, _, `.${a.b("node")}[tabindex="-1"]`)
|
|
1340
1351
|
);
|
|
1341
1352
|
break;
|
|
1342
1353
|
}
|
|
1343
|
-
case
|
|
1354
|
+
case ne.left: {
|
|
1344
1355
|
u.preventDefault();
|
|
1345
|
-
const _ = c.value[Nt(
|
|
1356
|
+
const _ = c.value[Nt(g) - 1], v = _ == null ? void 0 : _.$el.querySelector(
|
|
1346
1357
|
`.${a.b("node")}[aria-expanded="true"]`
|
|
1347
1358
|
);
|
|
1348
1359
|
De(v);
|
|
1349
1360
|
break;
|
|
1350
1361
|
}
|
|
1351
|
-
case
|
|
1362
|
+
case ne.right: {
|
|
1352
1363
|
u.preventDefault();
|
|
1353
|
-
const _ = c.value[Nt(
|
|
1364
|
+
const _ = c.value[Nt(g) + 1], v = _ == null ? void 0 : _.$el.querySelector(
|
|
1354
1365
|
`.${a.b("node")}[tabindex="-1"]`
|
|
1355
1366
|
);
|
|
1356
1367
|
De(v);
|
|
1357
1368
|
break;
|
|
1358
1369
|
}
|
|
1359
|
-
case
|
|
1360
|
-
ei(
|
|
1370
|
+
case ne.enter:
|
|
1371
|
+
ei(g);
|
|
1361
1372
|
break;
|
|
1362
1373
|
}
|
|
1363
1374
|
};
|
|
@@ -1369,10 +1380,10 @@ const Xs = Fs({
|
|
|
1369
1380
|
checkedNodes: p,
|
|
1370
1381
|
isHoverMenu: h,
|
|
1371
1382
|
initialLoaded: l,
|
|
1372
|
-
renderLabelFn:
|
|
1383
|
+
renderLabelFn: b,
|
|
1373
1384
|
lazyLoad: C,
|
|
1374
|
-
expandNode:
|
|
1375
|
-
handleCheckChange:
|
|
1385
|
+
expandNode: A,
|
|
1386
|
+
handleCheckChange: j
|
|
1376
1387
|
})
|
|
1377
1388
|
), Ee([o, () => e.options], O, {
|
|
1378
1389
|
deep: !0,
|
|
@@ -1388,7 +1399,7 @@ const Xs = Fs({
|
|
|
1388
1399
|
), Ee(
|
|
1389
1400
|
() => i.value,
|
|
1390
1401
|
(u) => {
|
|
1391
|
-
|
|
1402
|
+
ue(u, e.modelValue) || (t(Ye, u), t(Qe, u));
|
|
1392
1403
|
}
|
|
1393
1404
|
), gn(() => c.value = []), bn(() => !Re(e.modelValue) && k()), {
|
|
1394
1405
|
ns: a,
|
|
@@ -1396,34 +1407,34 @@ const Xs = Fs({
|
|
|
1396
1407
|
menus: d,
|
|
1397
1408
|
checkedNodes: p,
|
|
1398
1409
|
handleKeyDown: rn,
|
|
1399
|
-
handleCheckChange:
|
|
1400
|
-
getFlattedNodes:
|
|
1410
|
+
handleCheckChange: j,
|
|
1411
|
+
getFlattedNodes: L,
|
|
1401
1412
|
/**
|
|
1402
1413
|
* @description get an array of currently selected node,(leafOnly) whether only return the leaf checked nodes, default is `false`
|
|
1403
1414
|
*/
|
|
1404
|
-
getCheckedNodes:
|
|
1415
|
+
getCheckedNodes: N,
|
|
1405
1416
|
/**
|
|
1406
1417
|
* @description clear checked nodes
|
|
1407
1418
|
*/
|
|
1408
1419
|
clearCheckedNodes: T,
|
|
1409
|
-
calculateCheckedValue:
|
|
1420
|
+
calculateCheckedValue: x
|
|
1410
1421
|
};
|
|
1411
1422
|
}
|
|
1412
1423
|
});
|
|
1413
1424
|
function ri(e, t, n, r, a, o) {
|
|
1414
1425
|
var l;
|
|
1415
|
-
const s =
|
|
1416
|
-
return
|
|
1426
|
+
const s = I("custom-cascader-menu");
|
|
1427
|
+
return D(), G("div", {
|
|
1417
1428
|
class: B([e.ns.b("panel"), e.ns.is("bordered", e.border)]),
|
|
1418
1429
|
onKeydown: t[0] || (t[0] = (...c) => e.handleKeyDown && e.handleKeyDown(...c))
|
|
1419
1430
|
}, [
|
|
1420
|
-
(l = e.options) != null && l.length ? (
|
|
1431
|
+
(l = e.options) != null && l.length ? (D(!0), G(Dt, { key: 0 }, vn(e.menus, (c, i) => (D(), W(s, {
|
|
1421
1432
|
key: i,
|
|
1422
1433
|
ref_for: !0,
|
|
1423
1434
|
ref: (d) => e.menuList[i] = d,
|
|
1424
1435
|
index: i,
|
|
1425
1436
|
nodes: [...c]
|
|
1426
|
-
}, null, 8, ["index", "nodes"]))), 128)) : (
|
|
1437
|
+
}, null, 8, ["index", "nodes"]))), 128)) : (D(), G("div", {
|
|
1427
1438
|
key: 1,
|
|
1428
1439
|
class: "empty-panel",
|
|
1429
1440
|
style: It(e.inputWidth ? { width: e.inputWidth + "px" } : {})
|
|
@@ -1436,7 +1447,7 @@ const fi = /* @__PURE__ */ Ke(ni, [["render", ri]]);
|
|
|
1436
1447
|
export {
|
|
1437
1448
|
fi as E,
|
|
1438
1449
|
Ae as a,
|
|
1439
|
-
|
|
1450
|
+
pe as b,
|
|
1440
1451
|
ci as c,
|
|
1441
1452
|
di as d,
|
|
1442
1453
|
Fs as e,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "feikuai-element-plus-virtual-component",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.29",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -33,6 +33,8 @@
|
|
|
33
33
|
"author": "sunshudong",
|
|
34
34
|
"license": "ISC",
|
|
35
35
|
"scripts": {
|
|
36
|
+
"dev": "vite",
|
|
37
|
+
"preview": "vite preview",
|
|
36
38
|
"fmt": "oxfmt",
|
|
37
39
|
"lint": "oxlint",
|
|
38
40
|
"lint:fix": "oxlint --fix",
|