element-assits 0.0.23 → 0.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -57,9 +57,12 @@ Vue 原型上挂载了 `$asyncLoad` 方法
57
57
  | innerPagination | 内部 - 分页 | Boolean \| Object | undefined
58
58
  | innerOperation | 内部 - 操作栏(尾列)| Boolean \| Object | undefined
59
59
 
60
- > `innerForm` 可以绑定 `{ limit: 'auto', referenceItemWidth: 180, maxItemWidth: 240 }`
61
- `limit` 限制默认显示的搜索条件数量,`referenceItemWidth` 单项参考宽度,`maxItemWidth` 单项最大宽度。
62
- `column[].exclusiveDoubleCells` 允许某一项独占两格
60
+ > `innerForm` 额外属性(其余将绑定至EaForm):
61
+ $~~~~$`limit` 限制默认显示的搜索条件数量
62
+ $~~~~$`referenceItemWidth` 单项参考宽度
63
+ $~~~~$`maxItemWidth` 单项最大宽度
64
+ $~~~~$`loading` 控制更多按钮的加载状态
65
+ $~~~~$`column[].exclusiveDoubleCells` 允许某一项独占两格
63
66
  > `innerSelection` 可以绑定 `{ data: selectedRows }` 接收选中的行。
64
67
  > `innerOperation` 可以绑定 `{ maxNumOfBtn: 3 }` 设置操作栏最大显示的按钮数,超出将被折叠。
65
68
 
@@ -82,6 +85,13 @@ Vue 原型上挂载了 `$asyncLoad` 方法
82
85
  | after-column | 无 | 表格内部列之后
83
86
  | footer | bottom-menu&分页 | 表格底部
84
87
 
88
+ ## events
89
+ `search-reset` 搜索重置事件,默认重置搜索表单并搜索。
90
+ 一旦监听该事件,则阻止默认行为,参数为三项回调:
91
+ $~~~~$ `callback` 执行默认行为
92
+ $~~~~$ `reset` 仅执行重置
93
+ $~~~~$ `search` 仅执行搜索
94
+
85
95
  ## column-attributes
86
96
  | 属性名 | 类型 | 默认值 | 说明 |
87
97
  |:---|:---|:---|:---|
package/lib/index.js CHANGED
@@ -5,16 +5,16 @@ var un = typeof self == "object" && self && self.Object === Object && self, cn =
5
5
  const O = cn;
6
6
  var dn = O.Symbol;
7
7
  const T = dn;
8
- var Ot = Object.prototype, fn = Ot.hasOwnProperty, hn = Ot.toString, q = T ? T.toStringTag : void 0;
8
+ var Ot = Object.prototype, fn = Ot.hasOwnProperty, hn = Ot.toString, z = T ? T.toStringTag : void 0;
9
9
  function pn(t) {
10
- var e = fn.call(t, q), n = t[q];
10
+ var e = fn.call(t, z), n = t[z];
11
11
  try {
12
- t[q] = void 0;
12
+ t[z] = void 0;
13
13
  var r = !0;
14
14
  } catch {
15
15
  }
16
16
  var i = hn.call(t);
17
- return r && (e ? t[q] = n : delete t[q]), i;
17
+ return r && (e ? t[z] = n : delete t[z]), i;
18
18
  }
19
19
  var _n = Object.prototype, gn = _n.toString;
20
20
  function mn(t) {
@@ -28,10 +28,10 @@ function S(t) {
28
28
  return t != null && typeof t == "object";
29
29
  }
30
30
  var vn = "[object Symbol]";
31
- function Pe(t) {
31
+ function Ae(t) {
32
32
  return typeof t == "symbol" || S(t) && I(t) == vn;
33
33
  }
34
- function Ae(t, e) {
34
+ function Pe(t, e) {
35
35
  for (var n = -1, r = t == null ? 0 : t.length, i = Array(r); ++n < r; )
36
36
  i[n] = e(t[n], n, t);
37
37
  return i;
@@ -43,13 +43,13 @@ function Et(t) {
43
43
  if (typeof t == "string")
44
44
  return t;
45
45
  if (y(t))
46
- return Ae(t, Et) + "";
47
- if (Pe(t))
46
+ return Pe(t, Et) + "";
47
+ if (Ae(t))
48
48
  return Ze ? Ze.call(t) : "";
49
49
  var e = t + "";
50
50
  return e == "0" && 1 / t == -wn ? "-0" : e;
51
51
  }
52
- function H(t) {
52
+ function q(t) {
53
53
  var e = typeof t;
54
54
  return t != null && (e == "object" || e == "function");
55
55
  }
@@ -58,7 +58,7 @@ function Le(t) {
58
58
  }
59
59
  var xn = "[object AsyncFunction]", Tn = "[object Function]", Cn = "[object GeneratorFunction]", Sn = "[object Proxy]";
60
60
  function w(t) {
61
- if (!H(t))
61
+ if (!q(t))
62
62
  return !1;
63
63
  var e = I(t);
64
64
  return e == Tn || e == Cn || e == xn || e == Sn;
@@ -72,11 +72,11 @@ var Je = function() {
72
72
  function En(t) {
73
73
  return !!Je && Je in t;
74
74
  }
75
- var Pn = Function.prototype, An = Pn.toString;
75
+ var An = Function.prototype, Pn = An.toString;
76
76
  function N(t) {
77
77
  if (t != null) {
78
78
  try {
79
- return An.call(t);
79
+ return Pn.call(t);
80
80
  } catch {
81
81
  }
82
82
  try {
@@ -90,25 +90,25 @@ var Ln = /[\\^$.*+?()[\]{}|]/g, Rn = /^\[object .+?Constructor\]$/, Fn = Functio
90
90
  "^" + jn.call(In).replace(Ln, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
91
91
  );
92
92
  function Dn(t) {
93
- if (!H(t) || En(t))
93
+ if (!q(t) || En(t))
94
94
  return !1;
95
95
  var e = w(t) ? Nn : Rn;
96
96
  return e.test(N(t));
97
97
  }
98
- function kn(t, e) {
98
+ function Bn(t, e) {
99
99
  return t == null ? void 0 : t[e];
100
100
  }
101
101
  function D(t, e) {
102
- var n = kn(t, e);
102
+ var n = Bn(t, e);
103
103
  return Dn(n) ? n : void 0;
104
104
  }
105
- var Bn = D(O, "WeakMap");
106
- const ve = Bn;
105
+ var kn = D(O, "WeakMap");
106
+ const ve = kn;
107
107
  var Qe = Object.create, Wn = function() {
108
108
  function t() {
109
109
  }
110
110
  return function(e) {
111
- if (!H(e))
111
+ if (!q(e))
112
112
  return {};
113
113
  if (Qe)
114
114
  return Qe(e);
@@ -162,9 +162,9 @@ var Zn = function() {
162
162
  } catch {
163
163
  }
164
164
  }();
165
- const re = Zn;
166
- var Jn = re ? function(t, e) {
167
- return re(t, "toString", {
165
+ const ie = Zn;
166
+ var Jn = ie ? function(t, e) {
167
+ return ie(t, "toString", {
168
168
  configurable: !0,
169
169
  enumerable: !1,
170
170
  value: Yn(e),
@@ -173,7 +173,7 @@ var Jn = re ? function(t, e) {
173
173
  } : Le;
174
174
  const Qn = Jn;
175
175
  var Vn = Kn(Qn);
176
- const Pt = Vn;
176
+ const At = Vn;
177
177
  function er(t, e) {
178
178
  for (var n = -1, r = t == null ? 0 : t.length; ++n < r && e(t[n], n, t) !== !1; )
179
179
  ;
@@ -202,12 +202,12 @@ function sr(t, e) {
202
202
  return !!n && ir(t, e, 0) > -1;
203
203
  }
204
204
  var or = 9007199254740991, ar = /^(?:0|[1-9]\d*)$/;
205
- function At(t, e) {
205
+ function Pt(t, e) {
206
206
  var n = typeof t;
207
207
  return e = e == null ? or : e, !!e && (n == "number" || n != "symbol" && ar.test(t)) && t > -1 && t % 1 == 0 && t < e;
208
208
  }
209
209
  function Lt(t, e, n) {
210
- e == "__proto__" && re ? re(t, e, {
210
+ e == "__proto__" && ie ? ie(t, e, {
211
211
  configurable: !0,
212
212
  enumerable: !0,
213
213
  value: n,
@@ -222,7 +222,7 @@ function Rt(t, e, n) {
222
222
  var r = t[e];
223
223
  (!(ur.call(t, e) && Re(r, n)) || n === void 0 && !(e in t)) && Lt(t, e, n);
224
224
  }
225
- function J(t, e, n, r) {
225
+ function Q(t, e, n, r) {
226
226
  var i = !n;
227
227
  n || (n = {});
228
228
  for (var s = -1, o = e.length; ++s < o; ) {
@@ -243,7 +243,7 @@ function Ft(t, e, n) {
243
243
  };
244
244
  }
245
245
  function cr(t, e) {
246
- return Pt(Ft(t, e, Le), t + "");
246
+ return At(Ft(t, e, Le), t + "");
247
247
  }
248
248
  var dr = 9007199254740991;
249
249
  function Fe(t) {
@@ -276,10 +276,10 @@ function yr() {
276
276
  return !1;
277
277
  }
278
278
  var jt = typeof exports == "object" && exports && !exports.nodeType && exports, tt = jt && typeof module == "object" && module && !module.nodeType && module, br = tt && tt.exports === jt, nt = br ? O.Buffer : void 0, vr = nt ? nt.isBuffer : void 0, $r = vr || yr;
279
- const G = $r;
280
- var wr = "[object Arguments]", xr = "[object Array]", Tr = "[object Boolean]", Cr = "[object Date]", Sr = "[object Error]", Or = "[object Function]", Er = "[object Map]", Pr = "[object Number]", Ar = "[object Object]", Lr = "[object RegExp]", Rr = "[object Set]", Fr = "[object String]", Mr = "[object WeakMap]", jr = "[object ArrayBuffer]", Ir = "[object DataView]", Nr = "[object Float32Array]", Dr = "[object Float64Array]", kr = "[object Int8Array]", Br = "[object Int16Array]", Wr = "[object Int32Array]", Hr = "[object Uint8Array]", qr = "[object Uint8ClampedArray]", zr = "[object Uint16Array]", Ur = "[object Uint32Array]", _ = {};
281
- _[Nr] = _[Dr] = _[kr] = _[Br] = _[Wr] = _[Hr] = _[qr] = _[zr] = _[Ur] = !0;
282
- _[wr] = _[xr] = _[jr] = _[Tr] = _[Ir] = _[Cr] = _[Sr] = _[Or] = _[Er] = _[Pr] = _[Ar] = _[Lr] = _[Rr] = _[Fr] = _[Mr] = !1;
279
+ const X = $r;
280
+ var wr = "[object Arguments]", xr = "[object Array]", Tr = "[object Boolean]", Cr = "[object Date]", Sr = "[object Error]", Or = "[object Function]", Er = "[object Map]", Ar = "[object Number]", Pr = "[object Object]", Lr = "[object RegExp]", Rr = "[object Set]", Fr = "[object String]", Mr = "[object WeakMap]", jr = "[object ArrayBuffer]", Ir = "[object DataView]", Nr = "[object Float32Array]", Dr = "[object Float64Array]", Br = "[object Int8Array]", kr = "[object Int16Array]", Wr = "[object Int32Array]", Hr = "[object Uint8Array]", qr = "[object Uint8ClampedArray]", zr = "[object Uint16Array]", Ur = "[object Uint32Array]", _ = {};
281
+ _[Nr] = _[Dr] = _[Br] = _[kr] = _[Wr] = _[Hr] = _[qr] = _[zr] = _[Ur] = !0;
282
+ _[wr] = _[xr] = _[jr] = _[Tr] = _[Ir] = _[Cr] = _[Sr] = _[Or] = _[Er] = _[Ar] = _[Pr] = _[Lr] = _[Rr] = _[Fr] = _[Mr] = !1;
283
283
  function Gr(t) {
284
284
  return S(t) && Fe(t.length) && !!_[I(t)];
285
285
  }
@@ -288,21 +288,21 @@ function ue(t) {
288
288
  return t(e);
289
289
  };
290
290
  }
291
- var It = typeof exports == "object" && exports && !exports.nodeType && exports, z = It && typeof module == "object" && module && !module.nodeType && module, Xr = z && z.exports === It, ge = Xr && St.process, Kr = function() {
291
+ var It = typeof exports == "object" && exports && !exports.nodeType && exports, U = It && typeof module == "object" && module && !module.nodeType && module, Xr = U && U.exports === It, ge = Xr && St.process, Kr = function() {
292
292
  try {
293
- var t = z && z.require && z.require("util").types;
293
+ var t = U && U.require && U.require("util").types;
294
294
  return t || ge && ge.binding && ge.binding("util");
295
295
  } catch {
296
296
  }
297
297
  }();
298
- const B = Kr;
299
- var rt = B && B.isTypedArray, Yr = rt ? ue(rt) : Gr;
298
+ const k = Kr;
299
+ var rt = k && k.isTypedArray, Yr = rt ? ue(rt) : Gr;
300
300
  const Me = Yr;
301
301
  var Zr = Object.prototype, Jr = Zr.hasOwnProperty;
302
302
  function Nt(t, e) {
303
- var n = y(t), r = !n && le(t), i = !n && !r && G(t), s = !n && !r && !i && Me(t), o = n || r || i || s, a = o ? hr(t.length, String) : [], l = a.length;
303
+ var n = y(t), r = !n && le(t), i = !n && !r && X(t), s = !n && !r && !i && Me(t), o = n || r || i || s, a = o ? hr(t.length, String) : [], l = a.length;
304
304
  for (var u in t)
305
- (e || Jr.call(t, u)) && !(o && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || At(u, l))) && a.push(u);
305
+ (e || Jr.call(t, u)) && !(o && (u == "length" || i && (u == "offset" || u == "parent") || s && (u == "buffer" || u == "byteLength" || u == "byteOffset") || Pt(u, l))) && a.push(u);
306
306
  return a;
307
307
  }
308
308
  function Dt(t, e) {
@@ -313,7 +313,7 @@ function Dt(t, e) {
313
313
  var Qr = Dt(Object.keys, Object);
314
314
  const Vr = Qr;
315
315
  var ei = Object.prototype, ti = ei.hasOwnProperty;
316
- function kt(t) {
316
+ function Bt(t) {
317
317
  if (!ae(t))
318
318
  return Vr(t);
319
319
  var e = [];
@@ -322,7 +322,7 @@ function kt(t) {
322
322
  return e;
323
323
  }
324
324
  function ce(t) {
325
- return oe(t) ? Nt(t) : kt(t);
325
+ return oe(t) ? Nt(t) : Bt(t);
326
326
  }
327
327
  function ni(t) {
328
328
  var e = [];
@@ -333,7 +333,7 @@ function ni(t) {
333
333
  }
334
334
  var ri = Object.prototype, ii = ri.hasOwnProperty;
335
335
  function si(t) {
336
- if (!H(t))
336
+ if (!q(t))
337
337
  return ni(t);
338
338
  var e = ae(t), n = [];
339
339
  for (var r in t)
@@ -348,12 +348,12 @@ function Ie(t, e) {
348
348
  if (y(t))
349
349
  return !1;
350
350
  var n = typeof t;
351
- return n == "number" || n == "symbol" || n == "boolean" || t == null || Pe(t) ? !0 : ai.test(t) || !oi.test(t) || e != null && t in Object(e);
351
+ return n == "number" || n == "symbol" || n == "boolean" || t == null || Ae(t) ? !0 : ai.test(t) || !oi.test(t) || e != null && t in Object(e);
352
352
  }
353
353
  var li = D(Object, "create");
354
- const X = li;
354
+ const K = li;
355
355
  function ui() {
356
- this.__data__ = X ? X(null) : {}, this.size = 0;
356
+ this.__data__ = K ? K(null) : {}, this.size = 0;
357
357
  }
358
358
  function ci(t) {
359
359
  var e = this.has(t) && delete this.__data__[t];
@@ -362,7 +362,7 @@ function ci(t) {
362
362
  var di = "__lodash_hash_undefined__", fi = Object.prototype, hi = fi.hasOwnProperty;
363
363
  function pi(t) {
364
364
  var e = this.__data__;
365
- if (X) {
365
+ if (K) {
366
366
  var n = e[t];
367
367
  return n === di ? void 0 : n;
368
368
  }
@@ -371,12 +371,12 @@ function pi(t) {
371
371
  var _i = Object.prototype, gi = _i.hasOwnProperty;
372
372
  function mi(t) {
373
373
  var e = this.__data__;
374
- return X ? e[t] !== void 0 : gi.call(e, t);
374
+ return K ? e[t] !== void 0 : gi.call(e, t);
375
375
  }
376
376
  var yi = "__lodash_hash_undefined__";
377
377
  function bi(t, e) {
378
378
  var n = this.__data__;
379
- return this.size += this.has(t) ? 0 : 1, n[t] = X && e === void 0 ? yi : e, this;
379
+ return this.size += this.has(t) ? 0 : 1, n[t] = K && e === void 0 ? yi : e, this;
380
380
  }
381
381
  function j(t) {
382
382
  var e = -1, n = t == null ? 0 : t.length;
@@ -418,36 +418,36 @@ function Si(t, e) {
418
418
  var n = this.__data__, r = de(n, t);
419
419
  return r < 0 ? (++this.size, n.push([t, e])) : n[r][1] = e, this;
420
420
  }
421
- function P(t) {
421
+ function A(t) {
422
422
  var e = -1, n = t == null ? 0 : t.length;
423
423
  for (this.clear(); ++e < n; ) {
424
424
  var r = t[e];
425
425
  this.set(r[0], r[1]);
426
426
  }
427
427
  }
428
- P.prototype.clear = vi;
429
- P.prototype.delete = xi;
430
- P.prototype.get = Ti;
431
- P.prototype.has = Ci;
432
- P.prototype.set = Si;
428
+ A.prototype.clear = vi;
429
+ A.prototype.delete = xi;
430
+ A.prototype.get = Ti;
431
+ A.prototype.has = Ci;
432
+ A.prototype.set = Si;
433
433
  var Oi = D(O, "Map");
434
- const K = Oi;
434
+ const Y = Oi;
435
435
  function Ei() {
436
436
  this.size = 0, this.__data__ = {
437
437
  hash: new j(),
438
- map: new (K || P)(),
438
+ map: new (Y || A)(),
439
439
  string: new j()
440
440
  };
441
441
  }
442
- function Pi(t) {
442
+ function Ai(t) {
443
443
  var e = typeof t;
444
444
  return e == "string" || e == "number" || e == "symbol" || e == "boolean" ? t !== "__proto__" : t === null;
445
445
  }
446
446
  function fe(t, e) {
447
447
  var n = t.__data__;
448
- return Pi(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
448
+ return Ai(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
449
449
  }
450
- function Ai(t) {
450
+ function Pi(t) {
451
451
  var e = fe(this, t).delete(t);
452
452
  return this.size -= e ? 1 : 0, e;
453
453
  }
@@ -461,18 +461,18 @@ function Fi(t, e) {
461
461
  var n = fe(this, t), r = n.size;
462
462
  return n.set(t, e), this.size += n.size == r ? 0 : 1, this;
463
463
  }
464
- function A(t) {
464
+ function P(t) {
465
465
  var e = -1, n = t == null ? 0 : t.length;
466
466
  for (this.clear(); ++e < n; ) {
467
467
  var r = t[e];
468
468
  this.set(r[0], r[1]);
469
469
  }
470
470
  }
471
- A.prototype.clear = Ei;
472
- A.prototype.delete = Ai;
473
- A.prototype.get = Li;
474
- A.prototype.has = Ri;
475
- A.prototype.set = Fi;
471
+ P.prototype.clear = Ei;
472
+ P.prototype.delete = Pi;
473
+ P.prototype.get = Li;
474
+ P.prototype.has = Ri;
475
+ P.prototype.set = Fi;
476
476
  var Mi = "Expected a function";
477
477
  function Ne(t, e) {
478
478
  if (typeof t != "function" || e != null && typeof e != "function")
@@ -484,9 +484,9 @@ function Ne(t, e) {
484
484
  var o = t.apply(this, r);
485
485
  return n.cache = s.set(i, o) || s, o;
486
486
  };
487
- return n.cache = new (Ne.Cache || A)(), n;
487
+ return n.cache = new (Ne.Cache || P)(), n;
488
488
  }
489
- Ne.Cache = A;
489
+ Ne.Cache = P;
490
490
  var ji = 500;
491
491
  function Ii(t) {
492
492
  var e = Ne(t, function(r) {
@@ -494,22 +494,22 @@ function Ii(t) {
494
494
  }), n = e.cache;
495
495
  return e;
496
496
  }
497
- var Ni = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Di = /\\(\\)?/g, ki = Ii(function(t) {
497
+ var Ni = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Di = /\\(\\)?/g, Bi = Ii(function(t) {
498
498
  var e = [];
499
499
  return t.charCodeAt(0) === 46 && e.push(""), t.replace(Ni, function(n, r, i, s) {
500
500
  e.push(i ? s.replace(Di, "$1") : r || n);
501
501
  }), e;
502
502
  });
503
- const Bi = ki;
503
+ const ki = Bi;
504
504
  function Wi(t) {
505
505
  return t == null ? "" : Et(t);
506
506
  }
507
507
  function he(t, e) {
508
- return y(t) ? t : Ie(t, e) ? [t] : Bi(Wi(t));
508
+ return y(t) ? t : Ie(t, e) ? [t] : ki(Wi(t));
509
509
  }
510
510
  var Hi = 1 / 0;
511
- function Q(t) {
512
- if (typeof t == "string" || Pe(t))
511
+ function V(t) {
512
+ if (typeof t == "string" || Ae(t))
513
513
  return t;
514
514
  var e = t + "";
515
515
  return e == "0" && 1 / t == -Hi ? "-0" : e;
@@ -517,14 +517,14 @@ function Q(t) {
517
517
  function De(t, e) {
518
518
  e = he(e, t);
519
519
  for (var n = 0, r = e.length; t != null && n < r; )
520
- t = t[Q(e[n++])];
520
+ t = t[V(e[n++])];
521
521
  return n && n == r ? t : void 0;
522
522
  }
523
523
  function pe(t, e, n) {
524
524
  var r = t == null ? void 0 : De(t, e);
525
525
  return r === void 0 ? n : r;
526
526
  }
527
- function ke(t, e) {
527
+ function Be(t, e) {
528
528
  for (var n = -1, r = e.length, i = t.length; ++n < r; )
529
529
  t[i + n] = e[n];
530
530
  return t;
@@ -533,32 +533,32 @@ var it = T ? T.isConcatSpreadable : void 0;
533
533
  function qi(t) {
534
534
  return y(t) || le(t) || !!(it && t && t[it]);
535
535
  }
536
- function Be(t, e, n, r, i) {
536
+ function ke(t, e, n, r, i) {
537
537
  var s = -1, o = t.length;
538
538
  for (n || (n = qi), i || (i = []); ++s < o; ) {
539
539
  var a = t[s];
540
- e > 0 && n(a) ? e > 1 ? Be(a, e - 1, n, r, i) : ke(i, a) : r || (i[i.length] = a);
540
+ e > 0 && n(a) ? e > 1 ? ke(a, e - 1, n, r, i) : Be(i, a) : r || (i[i.length] = a);
541
541
  }
542
542
  return i;
543
543
  }
544
544
  function zi(t) {
545
545
  var e = t == null ? 0 : t.length;
546
- return e ? Be(t, 1) : [];
546
+ return e ? ke(t, 1) : [];
547
547
  }
548
548
  function Ui(t) {
549
- return Pt(Ft(t, void 0, zi), t + "");
549
+ return At(Ft(t, void 0, zi), t + "");
550
550
  }
551
551
  var Gi = Dt(Object.getPrototypeOf, Object);
552
552
  const We = Gi;
553
- var Xi = "[object Object]", Ki = Function.prototype, Yi = Object.prototype, Bt = Ki.toString, Zi = Yi.hasOwnProperty, Ji = Bt.call(Object);
554
- function Y(t) {
553
+ var Xi = "[object Object]", Ki = Function.prototype, Yi = Object.prototype, kt = Ki.toString, Zi = Yi.hasOwnProperty, Ji = kt.call(Object);
554
+ function Z(t) {
555
555
  if (!S(t) || I(t) != Xi)
556
556
  return !1;
557
557
  var e = We(t);
558
558
  if (e === null)
559
559
  return !0;
560
560
  var n = Zi.call(e, "constructor") && e.constructor;
561
- return typeof n == "function" && n instanceof n && Bt.call(n) == Ji;
561
+ return typeof n == "function" && n instanceof n && kt.call(n) == Ji;
562
562
  }
563
563
  function Qi(t, e, n) {
564
564
  var r = -1, i = t.length;
@@ -568,7 +568,7 @@ function Qi(t, e, n) {
568
568
  return s;
569
569
  }
570
570
  function Vi() {
571
- this.__data__ = new P(), this.size = 0;
571
+ this.__data__ = new A(), this.size = 0;
572
572
  }
573
573
  function es(t) {
574
574
  var e = this.__data__, n = e.delete(t);
@@ -583,16 +583,16 @@ function ns(t) {
583
583
  var rs = 200;
584
584
  function is(t, e) {
585
585
  var n = this.__data__;
586
- if (n instanceof P) {
586
+ if (n instanceof A) {
587
587
  var r = n.__data__;
588
- if (!K || r.length < rs - 1)
588
+ if (!Y || r.length < rs - 1)
589
589
  return r.push([t, e]), this.size = ++n.size, this;
590
- n = this.__data__ = new A(r);
590
+ n = this.__data__ = new P(r);
591
591
  }
592
592
  return n.set(t, e), this.size = n.size, this;
593
593
  }
594
594
  function C(t) {
595
- var e = this.__data__ = new P(t);
595
+ var e = this.__data__ = new A(t);
596
596
  this.size = e.size;
597
597
  }
598
598
  C.prototype.clear = Vi;
@@ -601,10 +601,10 @@ C.prototype.get = ts;
601
601
  C.prototype.has = ns;
602
602
  C.prototype.set = is;
603
603
  function ss(t, e) {
604
- return t && J(e, ce(e), t);
604
+ return t && Q(e, ce(e), t);
605
605
  }
606
606
  function os(t, e) {
607
- return t && J(e, je(e), t);
607
+ return t && Q(e, je(e), t);
608
608
  }
609
609
  var Wt = typeof exports == "object" && exports && !exports.nodeType && exports, st = Wt && typeof module == "object" && module && !module.nodeType && module, as = st && st.exports === Wt, ot = as ? O.Buffer : void 0, at = ot ? ot.allocUnsafe : void 0;
610
610
  function ls(t, e) {
@@ -630,20 +630,20 @@ var cs = Object.prototype, ds = cs.propertyIsEnumerable, lt = Object.getOwnPrope
630
630
  } : Ht;
631
631
  const He = fs;
632
632
  function hs(t, e) {
633
- return J(t, He(t), e);
633
+ return Q(t, He(t), e);
634
634
  }
635
635
  var ps = Object.getOwnPropertySymbols, _s = ps ? function(t) {
636
636
  for (var e = []; t; )
637
- ke(e, He(t)), t = We(t);
637
+ Be(e, He(t)), t = We(t);
638
638
  return e;
639
639
  } : Ht;
640
640
  const qt = _s;
641
641
  function gs(t, e) {
642
- return J(t, qt(t), e);
642
+ return Q(t, qt(t), e);
643
643
  }
644
644
  function zt(t, e, n) {
645
645
  var r = e(t);
646
- return y(t) ? r : ke(r, n(t));
646
+ return y(t) ? r : Be(r, n(t));
647
647
  }
648
648
  function $e(t) {
649
649
  return zt(t, ce, He);
@@ -657,8 +657,8 @@ var ys = D(O, "Promise");
657
657
  const xe = ys;
658
658
  var bs = D(O, "Set");
659
659
  const Te = bs;
660
- var ut = "[object Map]", vs = "[object Object]", ct = "[object Promise]", dt = "[object Set]", ft = "[object WeakMap]", ht = "[object DataView]", $s = N(we), ws = N(K), xs = N(xe), Ts = N(Te), Cs = N(ve), F = I;
661
- (we && F(new we(new ArrayBuffer(1))) != ht || K && F(new K()) != ut || xe && F(xe.resolve()) != ct || Te && F(new Te()) != dt || ve && F(new ve()) != ft) && (F = function(t) {
660
+ var ut = "[object Map]", vs = "[object Object]", ct = "[object Promise]", dt = "[object Set]", ft = "[object WeakMap]", ht = "[object DataView]", $s = N(we), ws = N(Y), xs = N(xe), Ts = N(Te), Cs = N(ve), F = I;
661
+ (we && F(new we(new ArrayBuffer(1))) != ht || Y && F(new Y()) != ut || xe && F(xe.resolve()) != ct || Te && F(new Te()) != dt || ve && F(new ve()) != ft) && (F = function(t) {
662
662
  var e = I(t), n = e == vs ? t.constructor : void 0, r = n ? N(n) : "";
663
663
  if (r)
664
664
  switch (r) {
@@ -681,13 +681,13 @@ function Es(t) {
681
681
  var e = t.length, n = new t.constructor(e);
682
682
  return e && typeof t[0] == "string" && Os.call(t, "index") && (n.index = t.index, n.input = t.input), n;
683
683
  }
684
- var Ps = O.Uint8Array;
685
- const ie = Ps;
684
+ var As = O.Uint8Array;
685
+ const se = As;
686
686
  function qe(t) {
687
687
  var e = new t.constructor(t.byteLength);
688
- return new ie(e).set(new ie(t)), e;
688
+ return new se(e).set(new se(t)), e;
689
689
  }
690
- function As(t, e) {
690
+ function Ps(t, e) {
691
691
  var n = e ? qe(t.buffer) : t.buffer;
692
692
  return new t.constructor(n, t.byteOffset, t.byteLength);
693
693
  }
@@ -704,7 +704,7 @@ function Ms(t, e) {
704
704
  var n = e ? qe(t.buffer) : t.buffer;
705
705
  return new t.constructor(n, t.byteOffset, t.length);
706
706
  }
707
- var js = "[object Boolean]", Is = "[object Date]", Ns = "[object Map]", Ds = "[object Number]", ks = "[object RegExp]", Bs = "[object Set]", Ws = "[object String]", Hs = "[object Symbol]", qs = "[object ArrayBuffer]", zs = "[object DataView]", Us = "[object Float32Array]", Gs = "[object Float64Array]", Xs = "[object Int8Array]", Ks = "[object Int16Array]", Ys = "[object Int32Array]", Zs = "[object Uint8Array]", Js = "[object Uint8ClampedArray]", Qs = "[object Uint16Array]", Vs = "[object Uint32Array]";
707
+ var js = "[object Boolean]", Is = "[object Date]", Ns = "[object Map]", Ds = "[object Number]", Bs = "[object RegExp]", ks = "[object Set]", Ws = "[object String]", Hs = "[object Symbol]", qs = "[object ArrayBuffer]", zs = "[object DataView]", Us = "[object Float32Array]", Gs = "[object Float64Array]", Xs = "[object Int8Array]", Ks = "[object Int16Array]", Ys = "[object Int32Array]", Zs = "[object Uint8Array]", Js = "[object Uint8ClampedArray]", Qs = "[object Uint16Array]", Vs = "[object Uint32Array]";
708
708
  function eo(t, e, n) {
709
709
  var r = t.constructor;
710
710
  switch (e) {
@@ -714,7 +714,7 @@ function eo(t, e, n) {
714
714
  case Is:
715
715
  return new r(+t);
716
716
  case zs:
717
- return As(t, n);
717
+ return Ps(t, n);
718
718
  case Us:
719
719
  case Gs:
720
720
  case Xs:
@@ -730,9 +730,9 @@ function eo(t, e, n) {
730
730
  case Ds:
731
731
  case Ws:
732
732
  return new r(t);
733
- case ks:
734
- return Rs(t);
735
733
  case Bs:
734
+ return Rs(t);
735
+ case ks:
736
736
  return new r();
737
737
  case Hs:
738
738
  return Fs(t);
@@ -745,22 +745,22 @@ var no = "[object Map]";
745
745
  function ro(t) {
746
746
  return S(t) && W(t) == no;
747
747
  }
748
- var gt = B && B.isMap, io = gt ? ue(gt) : ro;
748
+ var gt = k && k.isMap, io = gt ? ue(gt) : ro;
749
749
  const so = io;
750
750
  var oo = "[object Set]";
751
751
  function ao(t) {
752
752
  return S(t) && W(t) == oo;
753
753
  }
754
- var mt = B && B.isSet, lo = mt ? ue(mt) : ao;
754
+ var mt = k && k.isSet, lo = mt ? ue(mt) : ao;
755
755
  const uo = lo;
756
- var co = 1, fo = 2, ho = 4, Gt = "[object Arguments]", po = "[object Array]", _o = "[object Boolean]", go = "[object Date]", mo = "[object Error]", Xt = "[object Function]", yo = "[object GeneratorFunction]", bo = "[object Map]", vo = "[object Number]", Kt = "[object Object]", $o = "[object RegExp]", wo = "[object Set]", xo = "[object String]", To = "[object Symbol]", Co = "[object WeakMap]", So = "[object ArrayBuffer]", Oo = "[object DataView]", Eo = "[object Float32Array]", Po = "[object Float64Array]", Ao = "[object Int8Array]", Lo = "[object Int16Array]", Ro = "[object Int32Array]", Fo = "[object Uint8Array]", Mo = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Io = "[object Uint32Array]", p = {};
757
- p[Gt] = p[po] = p[So] = p[Oo] = p[_o] = p[go] = p[Eo] = p[Po] = p[Ao] = p[Lo] = p[Ro] = p[bo] = p[vo] = p[Kt] = p[$o] = p[wo] = p[xo] = p[To] = p[Fo] = p[Mo] = p[jo] = p[Io] = !0;
756
+ var co = 1, fo = 2, ho = 4, Gt = "[object Arguments]", po = "[object Array]", _o = "[object Boolean]", go = "[object Date]", mo = "[object Error]", Xt = "[object Function]", yo = "[object GeneratorFunction]", bo = "[object Map]", vo = "[object Number]", Kt = "[object Object]", $o = "[object RegExp]", wo = "[object Set]", xo = "[object String]", To = "[object Symbol]", Co = "[object WeakMap]", So = "[object ArrayBuffer]", Oo = "[object DataView]", Eo = "[object Float32Array]", Ao = "[object Float64Array]", Po = "[object Int8Array]", Lo = "[object Int16Array]", Ro = "[object Int32Array]", Fo = "[object Uint8Array]", Mo = "[object Uint8ClampedArray]", jo = "[object Uint16Array]", Io = "[object Uint32Array]", p = {};
757
+ p[Gt] = p[po] = p[So] = p[Oo] = p[_o] = p[go] = p[Eo] = p[Ao] = p[Po] = p[Lo] = p[Ro] = p[bo] = p[vo] = p[Kt] = p[$o] = p[wo] = p[xo] = p[To] = p[Fo] = p[Mo] = p[jo] = p[Io] = !0;
758
758
  p[mo] = p[Xt] = p[Co] = !1;
759
- function U(t, e, n, r, i, s) {
759
+ function G(t, e, n, r, i, s) {
760
760
  var o, a = e & co, l = e & fo, u = e & ho;
761
761
  if (n && (o = i ? n(t, r, i, s) : n(t)), o !== void 0)
762
762
  return o;
763
- if (!H(t))
763
+ if (!q(t))
764
764
  return t;
765
765
  var f = y(t);
766
766
  if (f) {
@@ -768,7 +768,7 @@ function U(t, e, n, r, i, s) {
768
768
  return zn(t, o);
769
769
  } else {
770
770
  var c = W(t), d = c == Xt || c == yo;
771
- if (G(t))
771
+ if (X(t))
772
772
  return ls(t, a);
773
773
  if (c == Kt || c == Gt || d && !i) {
774
774
  if (o = l || d ? {} : to(t), !a)
@@ -784,33 +784,33 @@ function U(t, e, n, r, i, s) {
784
784
  if (h)
785
785
  return h;
786
786
  s.set(t, o), uo(t) ? t.forEach(function(b) {
787
- o.add(U(b, e, n, b, t, s));
787
+ o.add(G(b, e, n, b, t, s));
788
788
  }) : so(t) && t.forEach(function(b, v) {
789
- o.set(v, U(b, e, n, v, t, s));
789
+ o.set(v, G(b, e, n, v, t, s));
790
790
  });
791
791
  var g = u ? l ? Ut : $e : l ? je : ce, $ = f ? void 0 : g(t);
792
792
  return er($ || t, function(b, v) {
793
- $ && (v = b, b = t[v]), Rt(o, v, U(b, e, n, v, t, s));
793
+ $ && (v = b, b = t[v]), Rt(o, v, G(b, e, n, v, t, s));
794
794
  }), o;
795
795
  }
796
796
  var No = 1, Do = 4;
797
797
  function E(t) {
798
- return U(t, No | Do);
798
+ return G(t, No | Do);
799
799
  }
800
- var ko = "__lodash_hash_undefined__";
801
- function Bo(t) {
802
- return this.__data__.set(t, ko), this;
800
+ var Bo = "__lodash_hash_undefined__";
801
+ function ko(t) {
802
+ return this.__data__.set(t, Bo), this;
803
803
  }
804
804
  function Wo(t) {
805
805
  return this.__data__.has(t);
806
806
  }
807
- function Z(t) {
807
+ function J(t) {
808
808
  var e = -1, n = t == null ? 0 : t.length;
809
- for (this.__data__ = new A(); ++e < n; )
809
+ for (this.__data__ = new P(); ++e < n; )
810
810
  this.add(t[e]);
811
811
  }
812
- Z.prototype.add = Z.prototype.push = Bo;
813
- Z.prototype.has = Wo;
812
+ J.prototype.add = J.prototype.push = ko;
813
+ J.prototype.has = Wo;
814
814
  function Ho(t, e) {
815
815
  for (var n = -1, r = t == null ? 0 : t.length; ++n < r; )
816
816
  if (e(t[n], n, t))
@@ -828,7 +828,7 @@ function Zt(t, e, n, r, i, s) {
828
828
  var u = s.get(t), f = s.get(e);
829
829
  if (u && f)
830
830
  return u == e && f == t;
831
- var c = -1, d = !0, h = n & zo ? new Z() : void 0;
831
+ var c = -1, d = !0, h = n & zo ? new J() : void 0;
832
832
  for (s.set(t, e), s.set(e, t); ++c < a; ) {
833
833
  var g = t[c], $ = e[c];
834
834
  if (r)
@@ -874,7 +874,7 @@ function oa(t, e, n, r, i, s, o) {
874
874
  return !1;
875
875
  t = t.buffer, e = e.buffer;
876
876
  case ia:
877
- return !(t.byteLength != e.byteLength || !s(new ie(t), new ie(e)));
877
+ return !(t.byteLength != e.byteLength || !s(new se(t), new se(e)));
878
878
  case Yo:
879
879
  case Zo:
880
880
  case Vo:
@@ -929,18 +929,18 @@ function ca(t, e, n, r, i, s) {
929
929
  b || (b = d == "constructor");
930
930
  }
931
931
  if ($ && !b) {
932
- var V = t.constructor, ee = e.constructor;
933
- V != ee && "constructor" in t && "constructor" in e && !(typeof V == "function" && V instanceof V && typeof ee == "function" && ee instanceof ee) && ($ = !1);
932
+ var ee = t.constructor, te = e.constructor;
933
+ ee != te && "constructor" in t && "constructor" in e && !(typeof ee == "function" && ee instanceof ee && typeof te == "function" && te instanceof te) && ($ = !1);
934
934
  }
935
935
  return s.delete(t), s.delete(e), $;
936
936
  }
937
- var da = 1, bt = "[object Arguments]", vt = "[object Array]", te = "[object Object]", fa = Object.prototype, $t = fa.hasOwnProperty;
937
+ var da = 1, bt = "[object Arguments]", vt = "[object Array]", ne = "[object Object]", fa = Object.prototype, $t = fa.hasOwnProperty;
938
938
  function ha(t, e, n, r, i, s) {
939
939
  var o = y(t), a = y(e), l = o ? vt : W(t), u = a ? vt : W(e);
940
- l = l == bt ? te : l, u = u == bt ? te : u;
941
- var f = l == te, c = u == te, d = l == u;
942
- if (d && G(t)) {
943
- if (!G(e))
940
+ l = l == bt ? ne : l, u = u == bt ? ne : u;
941
+ var f = l == ne, c = u == ne, d = l == u;
942
+ if (d && X(t)) {
943
+ if (!X(e))
944
944
  return !1;
945
945
  o = !0, f = !1;
946
946
  }
@@ -985,7 +985,7 @@ function ga(t, e, n, r) {
985
985
  return !0;
986
986
  }
987
987
  function Jt(t) {
988
- return t === t && !H(t);
988
+ return t === t && !q(t);
989
989
  }
990
990
  function ma(t) {
991
991
  for (var e = ce(t), n = e.length; n--; ) {
@@ -1011,19 +1011,19 @@ function ba(t, e) {
1011
1011
  function va(t, e, n) {
1012
1012
  e = he(e, t);
1013
1013
  for (var r = -1, i = e.length, s = !1; ++r < i; ) {
1014
- var o = Q(e[r]);
1014
+ var o = V(e[r]);
1015
1015
  if (!(s = t != null && n(t, o)))
1016
1016
  break;
1017
1017
  t = t[o];
1018
1018
  }
1019
- return s || ++r != i ? s : (i = t == null ? 0 : t.length, !!i && Fe(i) && At(o, i) && (y(t) || le(t)));
1019
+ return s || ++r != i ? s : (i = t == null ? 0 : t.length, !!i && Fe(i) && Pt(o, i) && (y(t) || le(t)));
1020
1020
  }
1021
1021
  function $a(t, e) {
1022
1022
  return t != null && va(t, e, ba);
1023
1023
  }
1024
1024
  var wa = 1, xa = 2;
1025
1025
  function Ta(t, e) {
1026
- return Ie(t) && Jt(e) ? Qt(Q(t), e) : function(n) {
1026
+ return Ie(t) && Jt(e) ? Qt(V(t), e) : function(n) {
1027
1027
  var r = pe(n, t);
1028
1028
  return r === void 0 && r === e ? $a(n, t) : ze(e, r, wa | xa);
1029
1029
  };
@@ -1039,7 +1039,7 @@ function Sa(t) {
1039
1039
  };
1040
1040
  }
1041
1041
  function Oa(t) {
1042
- return Ie(t) ? Ca(Q(t)) : Sa(t);
1042
+ return Ie(t) ? Ca(V(t)) : Sa(t);
1043
1043
  }
1044
1044
  function Ea(t) {
1045
1045
  return typeof t == "function" ? t : t == null ? Le : typeof t == "object" ? y(t) ? Ta(t[0], t[1]) : ya(t) : Oa(t);
@@ -1047,18 +1047,18 @@ function Ea(t) {
1047
1047
  function ye(t) {
1048
1048
  return S(t) && oe(t);
1049
1049
  }
1050
- function Pa(t, e, n) {
1050
+ function Aa(t, e, n) {
1051
1051
  for (var r = -1, i = t == null ? 0 : t.length; ++r < i; )
1052
1052
  if (n(e, t[r]))
1053
1053
  return !0;
1054
1054
  return !1;
1055
1055
  }
1056
- var Aa = 200;
1056
+ var Pa = 200;
1057
1057
  function La(t, e, n, r) {
1058
1058
  var i = -1, s = sr, o = !0, a = t.length, l = [], u = e.length;
1059
1059
  if (!a)
1060
1060
  return l;
1061
- n && (e = Ae(e, ue(n))), r ? (s = Pa, o = !1) : e.length >= Aa && (s = Yt, o = !1, e = new Z(e));
1061
+ n && (e = Pe(e, ue(n))), r ? (s = Aa, o = !1) : e.length >= Pa && (s = Yt, o = !1, e = new J(e));
1062
1062
  e:
1063
1063
  for (; ++i < a; ) {
1064
1064
  var f = t[i], c = n == null ? f : n(f);
@@ -1078,7 +1078,7 @@ function Vt(t) {
1078
1078
  }
1079
1079
  var Ra = cr(function(t, e) {
1080
1080
  var n = Vt(e);
1081
- return ye(n) && (n = void 0), ye(t) ? La(t, Be(e, 1, ye, !0), Ea(n)) : [];
1081
+ return ye(n) && (n = void 0), ye(t) ? La(t, ke(e, 1, ye, !0), Ea(n)) : [];
1082
1082
  });
1083
1083
  const Fa = Ra;
1084
1084
  function Ma(t, e) {
@@ -1088,37 +1088,37 @@ var ja = "[object Map]", Ia = "[object Set]", Na = Object.prototype, Da = Na.has
1088
1088
  function Ce(t) {
1089
1089
  if (t == null)
1090
1090
  return !0;
1091
- if (oe(t) && (y(t) || typeof t == "string" || typeof t.splice == "function" || G(t) || Me(t) || le(t)))
1091
+ if (oe(t) && (y(t) || typeof t == "string" || typeof t.splice == "function" || X(t) || Me(t) || le(t)))
1092
1092
  return !t.length;
1093
1093
  var e = W(t);
1094
1094
  if (e == ja || e == Ia)
1095
1095
  return !t.size;
1096
1096
  if (ae(t))
1097
- return !kt(t).length;
1097
+ return !Bt(t).length;
1098
1098
  for (var n in t)
1099
1099
  if (Da.call(t, n))
1100
1100
  return !1;
1101
1101
  return !0;
1102
1102
  }
1103
- function se(t) {
1103
+ function H(t) {
1104
1104
  return t == null;
1105
1105
  }
1106
- function ka(t, e) {
1107
- return e = he(e, t), t = Ma(t, e), t == null || delete t[Q(Vt(e))];
1106
+ function Ba(t, e) {
1107
+ return e = he(e, t), t = Ma(t, e), t == null || delete t[V(Vt(e))];
1108
1108
  }
1109
- function Ba(t) {
1110
- return Y(t) ? void 0 : t;
1109
+ function ka(t) {
1110
+ return Z(t) ? void 0 : t;
1111
1111
  }
1112
1112
  var Wa = 1, Ha = 2, qa = 4, za = Ui(function(t, e) {
1113
1113
  var n = {};
1114
1114
  if (t == null)
1115
1115
  return n;
1116
1116
  var r = !1;
1117
- e = Ae(e, function(s) {
1117
+ e = Pe(e, function(s) {
1118
1118
  return s = he(s, t), r || (r = s.length > 1), s;
1119
- }), J(t, Ut(t), n), r && (n = U(n, Wa | Ha | qa, Ba));
1119
+ }), Q(t, Ut(t), n), r && (n = G(n, Wa | Ha | qa, ka));
1120
1120
  for (var i = e.length; i--; )
1121
- ka(n, e[i]);
1121
+ Ba(n, e[i]);
1122
1122
  return n;
1123
1123
  });
1124
1124
  const Se = za;
@@ -1185,9 +1185,9 @@ const Ua = {
1185
1185
  },
1186
1186
  scrollFunc() {
1187
1187
  const t = this.getContainer();
1188
- clearTimeout(this.timer), this.timer = setTimeout(() => {
1188
+ clearTimeout(this.timer), t && (this.timer = setTimeout(() => {
1189
1189
  this.current = Math.floor(t.scrollTop / this.itemSize);
1190
- }, 100);
1190
+ }, 100));
1191
1191
  },
1192
1192
  add() {
1193
1193
  const t = this.getContainer();
@@ -1237,8 +1237,7 @@ const Ya = {
1237
1237
  checkAll: !1,
1238
1238
  indeterminate: !1,
1239
1239
  loading: !1,
1240
- options: [],
1241
- cachedOptions: []
1240
+ options: []
1242
1241
  };
1243
1242
  },
1244
1243
  computed: {
@@ -1262,8 +1261,8 @@ const Ya = {
1262
1261
  this.init(t, e);
1263
1262
  }
1264
1263
  },
1265
- "options.length"(t) {
1266
- t === 0 && (this.cachedOptions = []);
1264
+ value() {
1265
+ this.cacheCurrent();
1267
1266
  }
1268
1267
  },
1269
1268
  mounted() {
@@ -1275,23 +1274,31 @@ const Ya = {
1275
1274
  this.loading = !0;
1276
1275
  let n = this.asyncData(t, e);
1277
1276
  Array.isArray(n) && (n = Promise.resolve(n)), n.then((r) => {
1278
- this.options = r, this.originalOptions = E(r);
1277
+ this.options = r, this.originalOptions = E(r), this.cacheCurrent();
1279
1278
  }).finally(() => {
1280
1279
  this.loading = !1;
1281
1280
  });
1282
1281
  }
1283
1282
  },
1284
1283
  filterMethod(t) {
1285
- this.options = E(this.originalOptions).filter((e) => e.label.indexOf(t) > -1);
1284
+ this.options = E(this.originalOptions).filter((e) => {
1285
+ if (!t)
1286
+ return !0;
1287
+ const n = this.endProps, r = H(e[n.label]) ? "" : String(e[n.label]), i = H(e[n.value]) ? "" : String(e[n.value]);
1288
+ return r.indexOf(t) > -1 || i.indexOf(t) > -1;
1289
+ });
1286
1290
  },
1287
1291
  cacheCurrent() {
1288
- const t = this.options.find((n) => n[this.endProps.value] === this.value), e = this.cachedOptions.find((n) => n[this.endProps.value] === this.value);
1289
- t && !e && this.cachedOptions.push(t);
1292
+ const t = this.options.find((r) => r[this.endProps.value] === this.value), e = this.$refs.sel.cachedOptions, n = e.find((r) => r.value === this.value);
1293
+ t && !n && e.push({
1294
+ currentLabel: t[this.endProps.label],
1295
+ label: t[this.endProps.label],
1296
+ currentValue: t[this.endProps.value],
1297
+ value: t[this.endProps.value]
1298
+ });
1290
1299
  },
1291
1300
  handleInput(t) {
1292
- if (this.$emit("input", t), this.$nextTick(() => {
1293
- this.cacheCurrent();
1294
- }), this.label !== void 0 || this.$listeners["obj-change"]) {
1301
+ if (this.$emit("input", t), this.label !== void 0 || this.$listeners["obj-change"]) {
1295
1302
  const e = this.options.find((n) => n[this.endProps.value] === t);
1296
1303
  e && (this.$emit("update:label", e[this.endProps.label]), this.$emit("obj-change", e));
1297
1304
  }
@@ -1305,11 +1312,9 @@ const Ya = {
1305
1312
  };
1306
1313
  var Za = function() {
1307
1314
  var e = this, n = e._self._c;
1308
- return n("div", { staticClass: "ea-select" }, [n("el-select", e._g(e._b({ ref: "sel", attrs: { value: e.value, loading: e.loading, "filter-method": e.filterMethod, "popper-class": "ea-select-popover" + (e.popperClass ? " " + e.popperClass : ""), "no-data-text": e.originalOptions.length ? e.noMatchText : e.noDataText } }, "el-select", e.$attrs, !1), { ...e.$listeners, input: e.handleInput, "visible-change": e.handleVisibleChange }), [e._l(e.cachedOptions, function(r) {
1309
- return n("el-option", { key: r[e.endProps.value], staticStyle: { display: "none" }, attrs: { label: r[e.endProps.label], value: r[e.endProps.value] } });
1310
- }), n("VirtualScroll", { ref: "vs", attrs: { options: e.options, "item-size": 34 }, scopedSlots: e._u([{ key: "item", fn: function({ item: r }) {
1315
+ return n("div", { staticClass: "ea-select" }, [n("el-select", e._g(e._b({ ref: "sel", attrs: { value: e.value, loading: e.loading, "filter-method": e.filterMethod, "popper-class": "ea-select-popover" + (e.popperClass ? " " + e.popperClass : ""), "no-data-text": e.originalOptions.length ? e.noMatchText : e.noDataText } }, "el-select", e.$attrs, !1), { ...e.$listeners, input: e.handleInput, "visible-change": e.handleVisibleChange }), [n("VirtualScroll", { ref: "vs", attrs: { options: e.options, "item-size": 34 }, scopedSlots: e._u([{ key: "item", fn: function({ item: r }) {
1311
1316
  return [n("el-option", { key: r[e.endProps.value], attrs: { label: r[e.endProps.label], value: r[e.endProps.value] } }, [e.endProps.desc ? [n("span", { staticClass: "select-item-value", style: { maxWidth: e.endItemMaxWidth[0] + "px" }, attrs: { title: r[e.endProps.label] } }, [e._v(" " + e._s(r[e.endProps.label]) + " ")]), n("span", { staticClass: "select-item-desc", style: { maxWidth: e.endItemMaxWidth[1] + "px" }, attrs: { title: r[e.endProps.desc] } }, [e._v(" " + e._s(r[e.endProps.desc]) + " ")])] : e._e()], 2)];
1312
- } }]) })], 2), e.loading ? n("i", { staticClass: "el-icon-loading async-loading" }) : e._e()], 1);
1317
+ } }]) })], 1), e.loading ? n("i", { staticClass: "el-icon-loading async-loading" }) : e._e()], 1);
1313
1318
  }, Ja = [], Qa = /* @__PURE__ */ m(
1314
1319
  Ya,
1315
1320
  Za,
@@ -1493,7 +1498,7 @@ const cl = {
1493
1498
  if (!y(t))
1494
1499
  return;
1495
1500
  const n = [...t];
1496
- this.rawColumn = n, this.deleteLostProp(e, t);
1501
+ this.rawColumn = n, this.deleteLostProp(t, e);
1497
1502
  }
1498
1503
  }
1499
1504
  },
@@ -1503,10 +1508,10 @@ const cl = {
1503
1508
  methods: {
1504
1509
  async setData(t) {
1505
1510
  for (const [e] of Object.entries(this.model))
1506
- se(t[e]) || (this.model[e] = t[e]);
1511
+ H(t[e]) || (this.model[e] = t[e]);
1507
1512
  await this.$nextTick();
1508
1513
  for (const [e] of Object.entries(this.model))
1509
- se(t[e]) || (this.model[e] = t[e]);
1514
+ H(t[e]) || (this.model[e] = t[e]);
1510
1515
  },
1511
1516
  setValue(t) {
1512
1517
  const e = this.model[t.prop], n = E(t.defaultValue), r = e === void 0 ? n : e;
@@ -1520,7 +1525,7 @@ const cl = {
1520
1525
  } else
1521
1526
  y(t.rules) && s.push(...t.rules);
1522
1527
  const o = {};
1523
- w(t.on) ? Object.assign(o, t.on(...n)) : Y(t.on) && Object.assign(o, t.on);
1528
+ w(t.on) ? Object.assign(o, t.on(...n)) : Z(t.on) && Object.assign(o, t.on);
1524
1529
  const a = { clearable: !0, placeholder: t.label };
1525
1530
  Object.assign(a, w(t.bind) ? t.bind(...n) : t.bind);
1526
1531
  const l = w(t.label) ? t.label(...n) : t.label, u = w(t.labelTooltip) ? t.labelTooltip(...n) : t.labelTooltip;
@@ -1659,22 +1664,34 @@ const en = hl.exports, pl = {
1659
1664
  else {
1660
1665
  const t = [];
1661
1666
  let e = this.defaultCount;
1662
- for (let n of this.allColumn)
1663
- if (e -= n.exclusiveDoubleCells ? 2 : 1, t.push(n), e <= 0)
1667
+ for (let n of this.allColumn) {
1668
+ if (e -= n.exclusiveDoubleCells ? 2 : 1, e < 0)
1664
1669
  break;
1670
+ t.push(n);
1671
+ }
1665
1672
  this.rawColumn = t;
1666
1673
  }
1667
1674
  },
1668
- handleSearch() {
1669
- this.$emit("search");
1675
+ async handleSearch() {
1676
+ await this.$refs.eform.clearValidate(), this.$refs.eform.validate((t) => {
1677
+ !t || this.$emit("search");
1678
+ });
1670
1679
  },
1671
1680
  handleReset() {
1672
- this.$emit("reset", () => {
1673
- this.$refs.eform.resetFields(), this.handleSearch();
1681
+ this.$emit("reset", {
1682
+ callback: (t) => {
1683
+ this.$refs.eform.resetFields(), this.handleSearch(), t && (this.showAll = !1);
1684
+ },
1685
+ reset: (t) => {
1686
+ this.$refs.eform.resetFields(), t && (this.showAll = !1);
1687
+ },
1688
+ search: () => {
1689
+ this.handleSearch();
1690
+ }
1674
1691
  });
1675
1692
  },
1676
1693
  handleMore() {
1677
- this.limit !== "all" && (this.allLength <= this.defaultCount || (this.showAll = !this.showAll, this.resetSearchCount()));
1694
+ this.limit !== "all" && (this.allLength <= this.defaultCount || (this.showAll = !this.showAll, this.init()));
1678
1695
  },
1679
1696
  handleRefresh() {
1680
1697
  this.$emit("refresh");
@@ -1800,7 +1817,7 @@ function Cl(t) {
1800
1817
  }
1801
1818
  function be(t) {
1802
1819
  let e, n;
1803
- return Y(t) ? (e = t.show !== !1, n = Se(t, "show")) : e = Boolean(t), { show: e, attrs: n };
1820
+ return Z(t) ? (e = t.show !== !1, n = Se(t, "show")) : e = Boolean(t), { show: e, attrs: n };
1804
1821
  }
1805
1822
  function wt(t = 3) {
1806
1823
  const e = this;
@@ -1924,7 +1941,7 @@ const Ol = {
1924
1941
  computed: {
1925
1942
  theForm() {
1926
1943
  let t, e;
1927
- return Y(this.innerForm) ? (t = this.innerForm.show !== !1, e = {
1944
+ return Z(this.innerForm) ? (t = this.innerForm.show !== !1, e = {
1928
1945
  column: [],
1929
1946
  model: this.searchForm,
1930
1947
  ...Se(this.innerForm, "show")
@@ -1935,7 +1952,7 @@ const Ol = {
1935
1952
  if (this.innerOperation === void 0) {
1936
1953
  const { showAction: r, collapseBtnRender: i } = wt.bind(this)();
1937
1954
  t = r, n = i;
1938
- } else if (!Y(this.innerOperation))
1955
+ } else if (!Z(this.innerOperation))
1939
1956
  t = Boolean(this.innerOperation);
1940
1957
  else {
1941
1958
  const r = this.innerOperation.maxNumOfBtn, { showAction: i, collapseBtnRender: s } = wt.bind(this)(r), o = this.innerOperation.show;
@@ -2069,8 +2086,8 @@ const Ol = {
2069
2086
  handleRefresh() {
2070
2087
  this.getList();
2071
2088
  },
2072
- handleReset(t) {
2073
- this.$listeners["search-reset"] ? this.$emit("search-reset", t) : t && t();
2089
+ handleReset({ callback: t, reset: e, search: n }) {
2090
+ this.$listeners["search-reset"] ? this.$emit("search-reset", t, e, n) : t && t();
2074
2091
  },
2075
2092
  handleClear() {
2076
2093
  this.data.splice(0), this.page.total = 0;
@@ -2111,17 +2128,17 @@ var El = function() {
2111
2128
  }, { data: e.data }), e._t("footer", function() {
2112
2129
  return [n("div", { staticClass: "ea-table__footer" }, [n("div", [e._t("bottom-menu")], 2), e.thePagination.show && e.page.total ? n("el-pagination", e._b({ staticClass: "ea-table__footer-right", attrs: { layout: "total, sizes, prev, pager, next, jumper", "page-size": e.page.pageSize, "current-page": e.page.current, total: e.page.total, "page-sizes": [10, 20, 50, 100], background: "" }, on: { "size-change": e.handleSizeChange, "current-change": e.handleCurrentChange } }, "el-pagination", e.thePagination.attrs, !1)) : e._e()], 1)];
2113
2130
  })], 2);
2114
- }, Pl = [], Al = /* @__PURE__ */ m(
2131
+ }, Al = [], Pl = /* @__PURE__ */ m(
2115
2132
  Ol,
2116
2133
  El,
2117
- Pl,
2134
+ Al,
2118
2135
  !1,
2119
2136
  null,
2120
2137
  null,
2121
2138
  null,
2122
2139
  null
2123
2140
  );
2124
- const Ll = Al.exports, Rl = {
2141
+ const Ll = Pl.exports, Rl = {
2125
2142
  inheritAttrs: !1,
2126
2143
  props: {
2127
2144
  reference: {
@@ -2218,7 +2235,7 @@ function L(t, e) {
2218
2235
  function Dl(t, e) {
2219
2236
  e === "left" && (t.style.width = "5px", t.style.height = "calc(100% - 10px)", t.style.left = 0, t.style.top = "5px", t.style.cursor = "e-resize"), e === "right" && (t.style.width = "5px", t.style.height = "calc(100% - 10px)", t.style.right = 0, t.style.top = "5px", t.style.cursor = "e-resize"), e === "top" && (t.style.width = "calc(100% - 10px)", t.style.height = "5px", t.style.left = "5px", t.style.top = 0, t.style.cursor = "n-resize"), e === "bottom" && (t.style.width = "calc(100% - 10px)", t.style.height = "5px", t.style.left = "5px", t.style.bottom = 0, t.style.cursor = "n-resize"), e === "top-left" && (t.style.width = "5px", t.style.height = "5px", t.style.left = 0, t.style.top = 0, t.style.cursor = "nw-resize"), e === "top-right" && (t.style.width = "5px", t.style.height = "5px", t.style.right = 0, t.style.top = 0, t.style.cursor = "ne-resize"), e === "bottom-left" && (t.style.width = "5px", t.style.height = "5px", t.style.left = 0, t.style.bottom = 0, t.style.cursor = "ne-resize"), e === "bottom-right" && (t.style.width = "5px", t.style.height = "5px", t.style.right = 0, t.style.bottom = 0, t.style.cursor = "nw-resize");
2220
2237
  }
2221
- const kl = {
2238
+ const Bl = {
2222
2239
  inheritAttrs: !1,
2223
2240
  props: {
2224
2241
  customClass: { type: String, default: void 0 },
@@ -2260,7 +2277,7 @@ const kl = {
2260
2277
  }
2261
2278
  }
2262
2279
  };
2263
- var Bl = function() {
2280
+ var kl = function() {
2264
2281
  var e = this, n = e._self._c;
2265
2282
  return n("el-dialog", e._g(e._b({ attrs: { "custom-class": e._customClass }, on: { opened: e.handleOpened, closed: e.handleClosed }, scopedSlots: e._u([e.$listeners.confirm || e.$listeners.cancel ? { key: "footer", fn: function() {
2266
2283
  return [e.$listeners.confirm ? n("el-button", { class: e.$listeners.cancel ? "" : "single-btn", attrs: { type: "primary", icon: e.$listeners.cancel ? "el-icon-circle-check" : "", loading: e.confirmLoading }, on: { click: function(r) {
@@ -2274,8 +2291,8 @@ var Bl = function() {
2274
2291
  }, proxy: !0 };
2275
2292
  })], null, !0) }, "el-dialog", { closeOnClickModal: !1, appendToBody: !0, ...e.$attrs }, !1), e.$listeners));
2276
2293
  }, Wl = [], Hl = /* @__PURE__ */ m(
2277
- kl,
2278
2294
  Bl,
2295
+ kl,
2279
2296
  Wl,
2280
2297
  !1,
2281
2298
  null,
@@ -2360,7 +2377,7 @@ const Kl = {
2360
2377
  },
2361
2378
  mounted() {
2362
2379
  const t = this.$refs.sc_container;
2363
- this.domPageX = k(t), this.domWidth = Yl(t);
2380
+ this.domPageX = B(t), this.domWidth = Yl(t);
2364
2381
  },
2365
2382
  methods: {
2366
2383
  handleMousedown(t) {
@@ -2376,11 +2393,11 @@ const Kl = {
2376
2393
  }
2377
2394
  }
2378
2395
  };
2379
- function k(t) {
2380
- if (k.result = (k.result || 0) + t.offsetLeft, t.offsetParent)
2381
- return k(t.offsetParent);
2382
- const e = k.result;
2383
- return k.result = void 0, e;
2396
+ function B(t) {
2397
+ if (B.result = (B.result || 0) + t.offsetLeft, t.offsetParent)
2398
+ return B(t.offsetParent);
2399
+ const e = B.result;
2400
+ return B.result = void 0, e;
2384
2401
  }
2385
2402
  function Yl(t) {
2386
2403
  const e = t.getBoundingClientRect();
@@ -2408,12 +2425,12 @@ var Zl = function() {
2408
2425
  null
2409
2426
  );
2410
2427
  const Vl = Ql.exports;
2411
- let ne;
2428
+ let re;
2412
2429
  function Ct() {
2413
2430
  if (an.prototype.$isServer)
2414
2431
  return 0;
2415
- if (ne !== void 0)
2416
- return ne;
2432
+ if (re !== void 0)
2433
+ return re;
2417
2434
  const t = document.createElement("div");
2418
2435
  t.className = "el-scrollbar__wrap", t.style.visibility = "hidden", t.style.width = "100px", t.style.position = "absolute", t.style.top = "-9999px", document.body.appendChild(t);
2419
2436
  const e = t.offsetWidth;
@@ -2421,7 +2438,7 @@ function Ct() {
2421
2438
  const n = document.createElement("div");
2422
2439
  n.style.width = "100%", t.appendChild(n);
2423
2440
  const r = n.offsetWidth;
2424
- return t.parentNode.removeChild(t), ne = e - r, ne;
2441
+ return t.parentNode.removeChild(t), re = e - r, re;
2425
2442
  }
2426
2443
  const eu = {
2427
2444
  inheritAttrs: !1,
@@ -2551,7 +2568,7 @@ const iu = {
2551
2568
  defaultFilterNodeMethod(t, e) {
2552
2569
  if (!t)
2553
2570
  return !0;
2554
- const n = this.endProps, r = se(e[n.label]) ? "" : String(e[n.label]), i = se(e[n.value]) ? "" : String(e[n.value]);
2571
+ const n = this.endProps, r = H(e[n.label]) ? "" : String(e[n.label]), i = H(e[n.value]) ? "" : String(e[n.value]);
2555
2572
  return r.indexOf(t) > -1 || i.indexOf(t) > -1;
2556
2573
  }
2557
2574
  }
@@ -2823,7 +2840,7 @@ var Cu = function() {
2823
2840
  null,
2824
2841
  null
2825
2842
  );
2826
- const Eu = Ou.exports, Pu = {
2843
+ const Eu = Ou.exports, Au = {
2827
2844
  inheritAttrs: !1,
2828
2845
  props: {
2829
2846
  data: { type: Array, default: void 0 },
@@ -2851,14 +2868,14 @@ const Eu = Ou.exports, Pu = {
2851
2868
  },
2852
2869
  methods: {}
2853
2870
  };
2854
- var Au = function() {
2871
+ var Pu = function() {
2855
2872
  var e = this, n = e._self._c;
2856
2873
  return n("el-checkbox-group", e._g(e._b({}, "el-checkbox-group", e.$attrs, !1), e.$listeners), e._l(e.options, function(r, i) {
2857
2874
  return n("el-checkbox", e._b({ key: i, attrs: { label: r[e.endProps.value] } }, "el-checkbox", e.innerCheckbox, !1), [e._v(" " + e._s(r[e.endProps.label]) + " ")]);
2858
2875
  }), 1);
2859
2876
  }, Lu = [], Ru = /* @__PURE__ */ m(
2860
- Pu,
2861
2877
  Au,
2878
+ Pu,
2862
2879
  Lu,
2863
2880
  !1,
2864
2881
  null,
@@ -2950,7 +2967,7 @@ var ju = function() {
2950
2967
  const Du = Nu.exports, Gu = (t) => {
2951
2968
  t.component("EaForm", en), t.component("EaTable", Ll), t.component("EaSelect", Va), t.component("EaVirtualScroll", Ue), t.component("EaPopover", rn), t.component("EaModal", on), t.component("EaButton", Xl), t.component("EaSplit", Vl), t.component("EaTree", lu), t.component("EaList", hu), t.component("EaDesc", yu), t.component("EaScrollbar", Ge), t.component("EaNumber", xu), t.component("EaRadio", Eu), t.component("EaCheckbox", Fu), t.component("EaFileUpload", Du), t.prototype.$asyncLoad = M;
2952
2969
  };
2953
- const ku = {
2970
+ const Bu = {
2954
2971
  components: { EaModal: on },
2955
2972
  props: {
2956
2973
  column: { type: Array, required: !0 },
@@ -2974,14 +2991,14 @@ const ku = {
2974
2991
  }
2975
2992
  }
2976
2993
  };
2977
- var Bu = function() {
2994
+ var ku = function() {
2978
2995
  var e = this, n = e._self._c;
2979
2996
  return n("EaModal", { staticClass: "ea-table-modal", attrs: { visible: e.visible, modal: !1, width: "260px", "append-to-body": "" }, on: { "update:visible": function(r) {
2980
2997
  e.visible = r;
2981
2998
  } } }, [n("div", { staticClass: "scm-title", class: { [e.size]: 1 }, attrs: { slot: "title" }, slot: "title" }, [e._v("\u9009\u62E9\u5217")]), n("el-tree", { class: { [e.size]: 1 }, attrs: { data: e.treeData, "node-key": "prop", "show-checkbox": "", "default-checked-keys": e.defaultCheckedKeys, "check-on-click-node": !0 }, on: { "check-change": e.handleCheckChange } })], 1);
2982
2999
  }, Wu = [], Hu = /* @__PURE__ */ m(
2983
- ku,
2984
3000
  Bu,
3001
+ ku,
2985
3002
  Wu,
2986
3003
  !1,
2987
3004
  null,
package/lib/style.scss CHANGED
@@ -158,24 +158,6 @@ $--color-border-extralight: #F2F6FC !default;
158
158
  transform: scaleY(0);
159
159
  }
160
160
 
161
- .el-dialog.ea-modal {
162
- &.is-closing {
163
- margin: 0 !important;
164
- }
165
- &.is-fullscreen {
166
- border-radius: 0;
167
- margin: 0;
168
- }
169
- .el-dialog__header {
170
- color: #555;
171
- font-size: 18px;
172
- .el-dialog__title {
173
- color: inherit;
174
- font-size: inherit;
175
- }
176
- }
177
- }
178
-
179
161
  .ea-button-tooltip + .ea-button-tooltip {
180
162
  margin-left: 10px;
181
163
  }
@@ -241,6 +223,10 @@ td {
241
223
  }
242
224
  }
243
225
 
226
+ .ea-number .el-input__inner {
227
+ text-align: left;
228
+ }
229
+
244
230
  .ea-split-container {
245
231
  display: flex;
246
232
  &.is-down {
@@ -290,8 +276,22 @@ td {
290
276
  }
291
277
  }
292
278
 
293
- .ea-number .el-input__inner {
294
- text-align: left;
279
+ .el-dialog.ea-modal {
280
+ &.is-closing {
281
+ margin: 0 !important;
282
+ }
283
+ &.is-fullscreen {
284
+ border-radius: 0;
285
+ margin: 0;
286
+ }
287
+ .el-dialog__header {
288
+ color: #555;
289
+ font-size: 18px;
290
+ .el-dialog__title {
291
+ color: inherit;
292
+ font-size: inherit;
293
+ }
294
+ }
295
295
  }
296
296
 
297
297
  .ea-list {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.23",
3
+ "version": "0.0.24",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",