element-assits 0.0.21 → 0.0.23
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 +1 -0
- package/lib/index.js +93 -72
- package/lib/style.css +1 -1
- package/lib/style.scss +102 -101
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -192,6 +192,7 @@ props: {
|
|
|
192
192
|
value: { type: [String, Array, Number], default: undefined },
|
|
193
193
|
label: { type: String, default: undefined },
|
|
194
194
|
data: { type: Array, default: () => [] },
|
|
195
|
+
asyncParams: undefined,
|
|
195
196
|
asyncData: { type: Function, default: undefined },
|
|
196
197
|
props: { type: Object, default: undefined },
|
|
197
198
|
itemMaxWidth: { type: [Number, Array], default: 150 },
|
package/lib/index.js
CHANGED
|
@@ -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
|
|
31
|
+
function Pe(t) {
|
|
32
32
|
return typeof t == "symbol" || S(t) && I(t) == vn;
|
|
33
33
|
}
|
|
34
|
-
function
|
|
34
|
+
function Ae(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,8 +43,8 @@ function Et(t) {
|
|
|
43
43
|
if (typeof t == "string")
|
|
44
44
|
return t;
|
|
45
45
|
if (y(t))
|
|
46
|
-
return
|
|
47
|
-
if (
|
|
46
|
+
return Ae(t, Et) + "";
|
|
47
|
+
if (Pe(t))
|
|
48
48
|
return Ze ? Ze.call(t) : "";
|
|
49
49
|
var e = t + "";
|
|
50
50
|
return e == "0" && 1 / t == -wn ? "-0" : e;
|
|
@@ -72,11 +72,11 @@ var Je = function() {
|
|
|
72
72
|
function En(t) {
|
|
73
73
|
return !!Je && Je in t;
|
|
74
74
|
}
|
|
75
|
-
var
|
|
75
|
+
var Pn = Function.prototype, An = Pn.toString;
|
|
76
76
|
function N(t) {
|
|
77
77
|
if (t != null) {
|
|
78
78
|
try {
|
|
79
|
-
return
|
|
79
|
+
return An.call(t);
|
|
80
80
|
} catch {
|
|
81
81
|
}
|
|
82
82
|
try {
|
|
@@ -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
|
|
176
|
+
const Pt = 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,7 +202,7 @@ 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
|
|
205
|
+
function At(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
|
}
|
|
@@ -243,7 +243,7 @@ function Ft(t, e, n) {
|
|
|
243
243
|
};
|
|
244
244
|
}
|
|
245
245
|
function cr(t, e) {
|
|
246
|
-
return
|
|
246
|
+
return Pt(Ft(t, e, Le), t + "");
|
|
247
247
|
}
|
|
248
248
|
var dr = 9007199254740991;
|
|
249
249
|
function Fe(t) {
|
|
@@ -277,9 +277,9 @@ function yr() {
|
|
|
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
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]",
|
|
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
281
|
_[Nr] = _[Dr] = _[kr] = _[Br] = _[Wr] = _[Hr] = _[qr] = _[zr] = _[Ur] = !0;
|
|
282
|
-
_[wr] = _[xr] = _[jr] = _[Tr] = _[Ir] = _[Cr] = _[Sr] = _[Or] = _[Er] = _[
|
|
282
|
+
_[wr] = _[xr] = _[jr] = _[Tr] = _[Ir] = _[Cr] = _[Sr] = _[Or] = _[Er] = _[Pr] = _[Ar] = _[Lr] = _[Rr] = _[Fr] = _[Mr] = !1;
|
|
283
283
|
function Gr(t) {
|
|
284
284
|
return S(t) && Fe(t.length) && !!_[I(t)];
|
|
285
285
|
}
|
|
@@ -302,7 +302,7 @@ var Zr = Object.prototype, Jr = Zr.hasOwnProperty;
|
|
|
302
302
|
function Nt(t, e) {
|
|
303
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;
|
|
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") ||
|
|
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);
|
|
306
306
|
return a;
|
|
307
307
|
}
|
|
308
308
|
function Dt(t, e) {
|
|
@@ -348,7 +348,7 @@ 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 ||
|
|
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);
|
|
352
352
|
}
|
|
353
353
|
var li = D(Object, "create");
|
|
354
354
|
const X = li;
|
|
@@ -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
|
|
421
|
+
function P(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
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
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;
|
|
433
433
|
var Oi = D(O, "Map");
|
|
434
434
|
const K = Oi;
|
|
435
435
|
function Ei() {
|
|
436
436
|
this.size = 0, this.__data__ = {
|
|
437
437
|
hash: new j(),
|
|
438
|
-
map: new (K ||
|
|
438
|
+
map: new (K || P)(),
|
|
439
439
|
string: new j()
|
|
440
440
|
};
|
|
441
441
|
}
|
|
442
|
-
function
|
|
442
|
+
function Pi(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
|
|
448
|
+
return Pi(e) ? n[typeof e == "string" ? "string" : "hash"] : n.map;
|
|
449
449
|
}
|
|
450
|
-
function
|
|
450
|
+
function Ai(t) {
|
|
451
451
|
var e = fe(this, t).delete(t);
|
|
452
452
|
return this.size -= e ? 1 : 0, e;
|
|
453
453
|
}
|
|
@@ -469,7 +469,7 @@ function A(t) {
|
|
|
469
469
|
}
|
|
470
470
|
}
|
|
471
471
|
A.prototype.clear = Ei;
|
|
472
|
-
A.prototype.delete =
|
|
472
|
+
A.prototype.delete = Ai;
|
|
473
473
|
A.prototype.get = Li;
|
|
474
474
|
A.prototype.has = Ri;
|
|
475
475
|
A.prototype.set = Fi;
|
|
@@ -509,7 +509,7 @@ function he(t, e) {
|
|
|
509
509
|
}
|
|
510
510
|
var Hi = 1 / 0;
|
|
511
511
|
function Q(t) {
|
|
512
|
-
if (typeof t == "string" ||
|
|
512
|
+
if (typeof t == "string" || Pe(t))
|
|
513
513
|
return t;
|
|
514
514
|
var e = t + "";
|
|
515
515
|
return e == "0" && 1 / t == -Hi ? "-0" : e;
|
|
@@ -546,7 +546,7 @@ function zi(t) {
|
|
|
546
546
|
return e ? Be(t, 1) : [];
|
|
547
547
|
}
|
|
548
548
|
function Ui(t) {
|
|
549
|
-
return
|
|
549
|
+
return Pt(Ft(t, void 0, zi), t + "");
|
|
550
550
|
}
|
|
551
551
|
var Gi = Dt(Object.getPrototypeOf, Object);
|
|
552
552
|
const We = Gi;
|
|
@@ -568,7 +568,7 @@ function Qi(t, e, n) {
|
|
|
568
568
|
return s;
|
|
569
569
|
}
|
|
570
570
|
function Vi() {
|
|
571
|
-
this.__data__ = new
|
|
571
|
+
this.__data__ = new P(), this.size = 0;
|
|
572
572
|
}
|
|
573
573
|
function es(t) {
|
|
574
574
|
var e = this.__data__, n = e.delete(t);
|
|
@@ -583,7 +583,7 @@ function ns(t) {
|
|
|
583
583
|
var rs = 200;
|
|
584
584
|
function is(t, e) {
|
|
585
585
|
var n = this.__data__;
|
|
586
|
-
if (n instanceof
|
|
586
|
+
if (n instanceof P) {
|
|
587
587
|
var r = n.__data__;
|
|
588
588
|
if (!K || r.length < rs - 1)
|
|
589
589
|
return r.push([t, e]), this.size = ++n.size, this;
|
|
@@ -592,7 +592,7 @@ function is(t, e) {
|
|
|
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
|
|
595
|
+
var e = this.__data__ = new P(t);
|
|
596
596
|
this.size = e.size;
|
|
597
597
|
}
|
|
598
598
|
C.prototype.clear = Vi;
|
|
@@ -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
|
|
685
|
-
const ie =
|
|
684
|
+
var Ps = O.Uint8Array;
|
|
685
|
+
const ie = Ps;
|
|
686
686
|
function qe(t) {
|
|
687
687
|
var e = new t.constructor(t.byteLength);
|
|
688
688
|
return new ie(e).set(new ie(t)), e;
|
|
689
689
|
}
|
|
690
|
-
function
|
|
690
|
+
function As(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
|
}
|
|
@@ -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
|
|
717
|
+
return As(t, n);
|
|
718
718
|
case Us:
|
|
719
719
|
case Gs:
|
|
720
720
|
case Xs:
|
|
@@ -753,8 +753,8 @@ function ao(t) {
|
|
|
753
753
|
}
|
|
754
754
|
var mt = B && B.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]",
|
|
757
|
-
p[Gt] = p[po] = p[So] = p[Oo] = p[_o] = p[go] = p[Eo] = p[
|
|
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;
|
|
758
758
|
p[mo] = p[Xt] = p[Co] = !1;
|
|
759
759
|
function U(t, e, n, r, i, s) {
|
|
760
760
|
var o, a = e & co, l = e & fo, u = e & ho;
|
|
@@ -794,7 +794,7 @@ function U(t, e, n, r, i, s) {
|
|
|
794
794
|
}), o;
|
|
795
795
|
}
|
|
796
796
|
var No = 1, Do = 4;
|
|
797
|
-
function
|
|
797
|
+
function E(t) {
|
|
798
798
|
return U(t, No | Do);
|
|
799
799
|
}
|
|
800
800
|
var ko = "__lodash_hash_undefined__";
|
|
@@ -1016,7 +1016,7 @@ function va(t, e, n) {
|
|
|
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) &&
|
|
1019
|
+
return s || ++r != i ? s : (i = t == null ? 0 : t.length, !!i && Fe(i) && At(o, i) && (y(t) || le(t)));
|
|
1020
1020
|
}
|
|
1021
1021
|
function $a(t, e) {
|
|
1022
1022
|
return t != null && va(t, e, ba);
|
|
@@ -1047,18 +1047,18 @@ function Ea(t) {
|
|
|
1047
1047
|
function ye(t) {
|
|
1048
1048
|
return S(t) && oe(t);
|
|
1049
1049
|
}
|
|
1050
|
-
function
|
|
1050
|
+
function Pa(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
|
|
1056
|
+
var Aa = 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 =
|
|
1061
|
+
n && (e = Ae(e, ue(n))), r ? (s = Pa, o = !1) : e.length >= Aa && (s = Yt, o = !1, e = new Z(e));
|
|
1062
1062
|
e:
|
|
1063
1063
|
for (; ++i < a; ) {
|
|
1064
1064
|
var f = t[i], c = n == null ? f : n(f);
|
|
@@ -1114,7 +1114,7 @@ var Wa = 1, Ha = 2, qa = 4, za = Ui(function(t, e) {
|
|
|
1114
1114
|
if (t == null)
|
|
1115
1115
|
return n;
|
|
1116
1116
|
var r = !1;
|
|
1117
|
-
e =
|
|
1117
|
+
e = Ae(e, function(s) {
|
|
1118
1118
|
return s = he(s, t), r || (r = s.length > 1), s;
|
|
1119
1119
|
}), J(t, Ut(t), n), r && (n = U(n, Wa | Ha | qa, Ba));
|
|
1120
1120
|
for (var i = e.length; i--; )
|
|
@@ -1224,10 +1224,13 @@ const Ya = {
|
|
|
1224
1224
|
value: { type: [String, Array, Number], default: void 0 },
|
|
1225
1225
|
label: { type: String, default: void 0 },
|
|
1226
1226
|
data: { type: Array, default: () => [] },
|
|
1227
|
+
asyncParams: void 0,
|
|
1227
1228
|
asyncData: { type: Function, default: void 0 },
|
|
1228
1229
|
props: { type: Object, default: void 0 },
|
|
1229
1230
|
itemMaxWidth: { type: [Number, Array], default: 150 },
|
|
1230
|
-
popperClass: { type: String, default: void 0 }
|
|
1231
|
+
popperClass: { type: String, default: void 0 },
|
|
1232
|
+
noDataText: { type: String, default: "\u65E0\u6570\u636E" },
|
|
1233
|
+
noMatchText: { type: String, default: "\u65E0\u5339\u914D\u6570\u636E" }
|
|
1231
1234
|
},
|
|
1232
1235
|
data() {
|
|
1233
1236
|
return {
|
|
@@ -1250,20 +1253,36 @@ const Ya = {
|
|
|
1250
1253
|
data: {
|
|
1251
1254
|
immediate: !0,
|
|
1252
1255
|
handler(t) {
|
|
1253
|
-
this.options = t, this.originalOptions =
|
|
1256
|
+
this.options = t, this.originalOptions = E(t);
|
|
1257
|
+
}
|
|
1258
|
+
},
|
|
1259
|
+
asyncParams: {
|
|
1260
|
+
deep: !0,
|
|
1261
|
+
handler(t, e) {
|
|
1262
|
+
this.init(t, e);
|
|
1254
1263
|
}
|
|
1264
|
+
},
|
|
1265
|
+
"options.length"(t) {
|
|
1266
|
+
t === 0 && (this.cachedOptions = []);
|
|
1255
1267
|
}
|
|
1256
1268
|
},
|
|
1257
1269
|
mounted() {
|
|
1258
|
-
this.cacheCurrent(),
|
|
1259
|
-
this.options = t, this.originalOptions = L(t);
|
|
1260
|
-
}).finally(() => {
|
|
1261
|
-
this.loading = !1;
|
|
1262
|
-
}));
|
|
1270
|
+
this.cacheCurrent(), this.init();
|
|
1263
1271
|
},
|
|
1264
1272
|
methods: {
|
|
1273
|
+
init(t, e) {
|
|
1274
|
+
if (w(this.asyncData)) {
|
|
1275
|
+
this.loading = !0;
|
|
1276
|
+
let n = this.asyncData(t, e);
|
|
1277
|
+
Array.isArray(n) && (n = Promise.resolve(n)), n.then((r) => {
|
|
1278
|
+
this.options = r, this.originalOptions = E(r);
|
|
1279
|
+
}).finally(() => {
|
|
1280
|
+
this.loading = !1;
|
|
1281
|
+
});
|
|
1282
|
+
}
|
|
1283
|
+
},
|
|
1265
1284
|
filterMethod(t) {
|
|
1266
|
-
this.options =
|
|
1285
|
+
this.options = E(this.originalOptions).filter((e) => e.label.indexOf(t) > -1);
|
|
1267
1286
|
},
|
|
1268
1287
|
cacheCurrent() {
|
|
1269
1288
|
const t = this.options.find((n) => n[this.endProps.value] === this.value), e = this.cachedOptions.find((n) => n[this.endProps.value] === this.value);
|
|
@@ -1278,16 +1297,18 @@ const Ya = {
|
|
|
1278
1297
|
}
|
|
1279
1298
|
},
|
|
1280
1299
|
handleVisibleChange(t) {
|
|
1281
|
-
this.$emit("visible-change", t), this.$refs.vs && this.$refs.vs.$emit("visible-change", t)
|
|
1300
|
+
this.$emit("visible-change", t), this.$refs.vs && this.$refs.vs.$emit("visible-change", t), t === !1 && setTimeout(() => {
|
|
1301
|
+
this.options = E(this.originalOptions);
|
|
1302
|
+
}, 280);
|
|
1282
1303
|
}
|
|
1283
1304
|
}
|
|
1284
1305
|
};
|
|
1285
1306
|
var Za = function() {
|
|
1286
1307
|
var e = this, n = e._self._c;
|
|
1287
|
-
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 : "") } }, "el-select", e.$attrs, !1), { ...e.$listeners, input: e.handleInput, "visible-change": e.handleVisibleChange }), [e._l(e.cachedOptions, function(r) {
|
|
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) {
|
|
1288
1309
|
return n("el-option", { key: r[e.endProps.value], staticStyle: { display: "none" }, attrs: { label: r[e.endProps.label], value: r[e.endProps.value] } });
|
|
1289
1310
|
}), n("VirtualScroll", { ref: "vs", attrs: { options: e.options, "item-size": 34 }, scopedSlots: e._u([{ key: "item", fn: function({ item: r }) {
|
|
1290
|
-
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" } }, [e._v(" " + e._s(r[e.endProps.label]) + " ")]), n("span", { staticClass: "select-item-desc", style: { maxWidth: e.endItemMaxWidth[1] + "px" } }, [e._v(" " + e._s(r[e.endProps.desc]) + " ")])] : e._e()], 2)];
|
|
1311
|
+
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)];
|
|
1291
1312
|
} }]) })], 2), e.loading ? n("i", { staticClass: "el-icon-loading async-loading" }) : e._e()], 1);
|
|
1292
1313
|
}, Ja = [], Qa = /* @__PURE__ */ m(
|
|
1293
1314
|
Ya,
|
|
@@ -1488,7 +1509,7 @@ const cl = {
|
|
|
1488
1509
|
se(t[e]) || (this.model[e] = t[e]);
|
|
1489
1510
|
},
|
|
1490
1511
|
setValue(t) {
|
|
1491
|
-
const e = this.model[t.prop], n =
|
|
1512
|
+
const e = this.model[t.prop], n = E(t.defaultValue), r = e === void 0 ? n : e;
|
|
1492
1513
|
this.$set(this.model, t.prop, r);
|
|
1493
1514
|
},
|
|
1494
1515
|
dealtItem(t, e) {
|
|
@@ -1594,7 +1615,7 @@ const en = hl.exports, pl = {
|
|
|
1594
1615
|
immediate: !0,
|
|
1595
1616
|
deep: !0,
|
|
1596
1617
|
handler(t) {
|
|
1597
|
-
const e =
|
|
1618
|
+
const e = E(t);
|
|
1598
1619
|
e.forEach((n) => {
|
|
1599
1620
|
n.style = n.style || {}, n.style.width = "180px", n.style.marginRight = "10px";
|
|
1600
1621
|
}), this.allColumn = e, this.init();
|
|
@@ -1687,7 +1708,7 @@ const bl = {
|
|
|
1687
1708
|
}
|
|
1688
1709
|
},
|
|
1689
1710
|
data() {
|
|
1690
|
-
const t =
|
|
1711
|
+
const t = E(this.options);
|
|
1691
1712
|
t.forEach((n) => n.show = !1);
|
|
1692
1713
|
const { size: e } = this.$ELEMENT || { size: "small" };
|
|
1693
1714
|
return {
|
|
@@ -1887,7 +1908,7 @@ const Ol = {
|
|
|
1887
1908
|
total: 0
|
|
1888
1909
|
};
|
|
1889
1910
|
let e = [];
|
|
1890
|
-
return this.pageRequest ? this.data.splice(0) : (e =
|
|
1911
|
+
return this.pageRequest ? this.data.splice(0) : (e = E(this.data), this.data.splice(t.pageSize), t.total = e.length), {
|
|
1891
1912
|
uuid: x,
|
|
1892
1913
|
rawColumn: [],
|
|
1893
1914
|
columnMenu: Tl,
|
|
@@ -1948,7 +1969,7 @@ const Ol = {
|
|
|
1948
1969
|
columnWatcher(t) {
|
|
1949
1970
|
if (!y(t))
|
|
1950
1971
|
return;
|
|
1951
|
-
const e =
|
|
1972
|
+
const e = E(t);
|
|
1952
1973
|
e.forEach((n, r) => {
|
|
1953
1974
|
n.show === void 0 && this.$set(n, "show", !0), n.key === void 0 && this.$set(n, "key", x()), n.sort === void 0 && (n.sort = r), n.bind = n.bind || {}, n.bind.render = n.bind.render || n.render, this.columnControl && (n.bind.renderHeader = this.middleRender(n.bind.renderHeader));
|
|
1954
1975
|
}), this.rawColumn = e;
|
|
@@ -2090,17 +2111,17 @@ var El = function() {
|
|
|
2090
2111
|
}, { data: e.data }), e._t("footer", function() {
|
|
2091
2112
|
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)];
|
|
2092
2113
|
})], 2);
|
|
2093
|
-
},
|
|
2114
|
+
}, Pl = [], Al = /* @__PURE__ */ m(
|
|
2094
2115
|
Ol,
|
|
2095
2116
|
El,
|
|
2096
|
-
|
|
2117
|
+
Pl,
|
|
2097
2118
|
!1,
|
|
2098
2119
|
null,
|
|
2099
2120
|
null,
|
|
2100
2121
|
null,
|
|
2101
2122
|
null
|
|
2102
2123
|
);
|
|
2103
|
-
const Ll =
|
|
2124
|
+
const Ll = Al.exports, Rl = {
|
|
2104
2125
|
inheritAttrs: !1,
|
|
2105
2126
|
props: {
|
|
2106
2127
|
reference: {
|
|
@@ -2165,18 +2186,18 @@ function Il(t) {
|
|
|
2165
2186
|
}
|
|
2166
2187
|
function Nl(t) {
|
|
2167
2188
|
const e = t.querySelector(".el-dialog"), n = [
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2189
|
+
L(e, "left"),
|
|
2190
|
+
L(e, "right"),
|
|
2191
|
+
L(e, "top"),
|
|
2192
|
+
L(e, "bottom"),
|
|
2193
|
+
L(e, "top-left"),
|
|
2194
|
+
L(e, "top-right"),
|
|
2195
|
+
L(e, "bottom-left"),
|
|
2196
|
+
L(e, "bottom-right")
|
|
2176
2197
|
];
|
|
2177
2198
|
return () => n.forEach((r) => r());
|
|
2178
2199
|
}
|
|
2179
|
-
function
|
|
2200
|
+
function L(t, e) {
|
|
2180
2201
|
const n = document.createElement("div");
|
|
2181
2202
|
n.style.position = "absolute", Dl(n, e), t.style.userSelect = "none", t.appendChild(n);
|
|
2182
2203
|
let r = t.offsetLeft, i = t.offsetTop, s = t.offsetWidth, o = t.offsetHeight, a = !1, l, u;
|
|
@@ -2802,7 +2823,7 @@ var Cu = function() {
|
|
|
2802
2823
|
null,
|
|
2803
2824
|
null
|
|
2804
2825
|
);
|
|
2805
|
-
const Eu = Ou.exports,
|
|
2826
|
+
const Eu = Ou.exports, Pu = {
|
|
2806
2827
|
inheritAttrs: !1,
|
|
2807
2828
|
props: {
|
|
2808
2829
|
data: { type: Array, default: void 0 },
|
|
@@ -2830,14 +2851,14 @@ const Eu = Ou.exports, Au = {
|
|
|
2830
2851
|
},
|
|
2831
2852
|
methods: {}
|
|
2832
2853
|
};
|
|
2833
|
-
var
|
|
2854
|
+
var Au = function() {
|
|
2834
2855
|
var e = this, n = e._self._c;
|
|
2835
2856
|
return n("el-checkbox-group", e._g(e._b({}, "el-checkbox-group", e.$attrs, !1), e.$listeners), e._l(e.options, function(r, i) {
|
|
2836
2857
|
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]) + " ")]);
|
|
2837
2858
|
}), 1);
|
|
2838
2859
|
}, Lu = [], Ru = /* @__PURE__ */ m(
|
|
2839
|
-
Au,
|
|
2840
2860
|
Pu,
|
|
2861
|
+
Au,
|
|
2841
2862
|
Lu,
|
|
2842
2863
|
!1,
|
|
2843
2864
|
null,
|
package/lib/style.css
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
.ea-select{display:inline-block;position:relative}.ea-select .el-select{width:100%}.ea-select .async-loading.el-icon-loading{position:absolute;top:10px;right:28px;color:#999}.ea-select-popover .el-select-dropdown__item{display:flex}.ea-select-popover .el-select-dropdown__item .select-item-value{overflow:hidden;text-overflow:ellipsis}.ea-select-popover .el-select-dropdown__item .select-item-desc{overflow:hidden;text-overflow:ellipsis;color:#8492a6;margin-left:8px}.ea-form .el-form-item__content>.el-input-number,.ea-form .el-form-item__content>.el-input,.ea-form .el-form-item__content>.ea-select,.ea-form .el-form-item__content>.el-select{width:100%}.ea-form .el-form-item.hidden-label>.el-form-item__label{display:none}.ea-form .el-form-item.hidden-label>.el-form-item__content{width:100%}.ea-form .form-group-title{position:relative;height:32px;margin-bottom:22px}.ea-form .form-group-title>span{position:absolute;top:0;left:20%;padding:5px 25px;background-color:#fff;z-index:1;color:#909399}.ea-form .form-group-title:after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px dashed #DCDFE6}.ea-select-container{display:flex;justify-content:flex-start;font-size:12px}.ea-select-container.medium{font-size:14px}.ea-select-container.medium .ea-select-panel .ea-select-panel__item{line-height:28px}.ea-select-container .ea-select-panel{padding:0;margin:0;list-style:none;flex-grow:1;min-width:120px}.ea-select-container .ea-select-panel+.ea-select-panel{border-left:1px solid #DDD}.ea-select-container .ea-select-panel__item{width:100%;line-height:24px;cursor:pointer;padding:0 12px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;font-size:inherit}.ea-select-container .ea-select-panel__item:hover{background-color:#ebeef5}.ea-select-container .ea-select-panel__item.active{color:#409eff;font-weight:700}.ea-table .el-table th{background-color:#f2f6fc;color:#303133}.ea-table .el-table th .cell{min-height:30px;display:flex;justify-content:flex-start;align-items:center}.ea-table .el-table th.is-center .cell{justify-content:center}.ea-table .el-table th.is-right .cell{justify-content:flex-end}.ea-table .el-table td .cell,.ea-table .el-table th .cell{line-height:1.2}.ea-table .el-table.el-table--small td,.ea-table .el-table.el-table--small th{height:48px}.ea-table .el-table.is-dense td,.ea-table .el-table.is-dense th{height:32px;padding:2px 0}.ea-table .el-table.is-dense td .el-button,.ea-table .el-table.is-dense th .el-button{padding-top:0;padding-bottom:0}.ea-table .theader-th-cell .cell-icon-menu{position:absolute;top:50%;right:4px;transform:rotate(90deg) translate(-50%);color:#c0c4cc;cursor:pointer;padding:4px;border-radius:2px}.ea-table .theader-th-cell .cell-icon-menu:hover{color:#303133;background-color:#e4e7ed}.ea-table .ea-table__footer{display:flex;justify-content:space-between}.ea-table .ea-table__footer .ea-table__footer-right{margin-left:auto;padding-right:0}.ea-table .ea-table__footer>*{margin-top:12px}.ea-table .column-transition-active{opacity:.33}.ea-table .el-button>i{min-width:12px}.ea-table .more-btn>i{transform:rotate(-90deg)}.el-popover.ea-popover-no-padding{padding:8px 0;min-width:100px}.el-popover.ea-popover-no-padding.dense{margin-top:0;margin-bottom:0;min-width:70px}.more-btn-panel__item:hover{background-color:#ebeef5}.more-btn-panel__item .el-button{padding:8px 12px;width:100%;text-align:left}.ea-zoom-in-top-enter-active,.ea-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.ea-zoom-in-top-enter,.ea-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-dialog.ea-modal.is-closing{margin:0!important}.el-dialog.ea-modal.is-fullscreen{border-radius:0;margin:0}.el-dialog.ea-modal .el-dialog__header{color:#555;font-size:18px}.el-dialog.ea-modal .el-dialog__header .el-dialog__title{color:inherit;font-size:inherit}.ea-button-tooltip+.ea-button-tooltip{margin-left:10px}td .ea-button-tooltip+.ea-button-tooltip{margin-left:4px}td .ea-button-tooltip+.ea-button-tooltip.text{margin-left:10px}td .el-button [class*=el-icon-]+span{margin-left:2px}.el-button.ea-button.mini-rect-btn{padding:7px;border:0}.el-button.ea-button.mini-rect-btn [class^=design-]{margin-right:0}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary{background-color:#409eff26;color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus{background-color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success{background-color:#67c23a26;color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus{background-color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info{background-color:#90939926;color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus{background-color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning{background-color:#e6a23c26;color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus{background-color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger{background-color:#f56c6c26;color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus{background-color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus i{color:#fff}.ea-split-container{display:flex}.ea-split-container.is-down{user-select:none}.ea-split-container .sc-left,.ea-split-container .sc-right{flex-grow:1;flex-shrink:1}.ea-split-container .sc-bamboo{flex-grow:0;flex-shrink:0;width:8px;border:1px solid #DCDEE2;border-top:none;border-bottom:none;background-color:#f8f8f9;cursor:col-resize;user-select:none;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0 16px}.ea-split-container .sc-bamboo .sc-texture{width:4px;height:1px;background:rgba(23,35,61,.25);margin-top:3px}.ea-tree .ea-tree-real .el-tree-node>.el-tree-node__content{border-radius:4px}.ea-tree .ea-tree-real .el-tree-node.is-current>.el-tree-node__content{color:#409eff;background-color:#409eff1a}.ea-list .loading-text{color:#909399;text-align:center;font-size:inherit}.ea-desc{font-size:14px}.ea-desc__title{font-size:16px;margin-bottom:12px}.ea-desc__list{display:flex;flex-wrap:wrap}.ea-desc .item{line-height:24px;margin-bottom:10px;flex:0 0 auto}.ea-desc .item .item-label{float:left;text-align:right;padding-right:8px;color:#909399}.ea-desc .item .item-value{word-break:break-all}.ea-desc .item .item-value .value-no-wrap{height:48px;overflow:hidden;position:relative}.ea-desc .item .item-value .value-no-wrap .click-see-more{position:absolute;right:0;bottom:0;height:24px;padding-left:30px;padding-right:4px;background-image:linear-gradient(to right,transparent 0%,#fff 20%,#fff 100%);cursor:pointer;color:#409eff;user-select:none}.ea-number .el-input__inner{text-align:left}.file-upload-dialog .el-upload,.file-upload-dialog .el-upload .el-upload-dragger{width:100%}.file-upload-dialog .el-upload-list .el-upload-list__item{border:1px dashed #aaa}.file-upload-dialog .el-upload-list .el-upload-list__item .el-icon-close{display:inline-block}.file-upload-dialog .el-list-enter,.file-upload-dialog .el-list-enter-active,.file-upload-dialog .el-list-enter-to,.file-upload-dialog .el-list-leave,.file-upload-dialog .el-list-leave-active,.file-upload-dialog .el-list-leave-to{-webkit-transition:none!important;transition:none!important}.ea-table-modal{overflow:visible;right:unset;right:initial;bottom:unset;bottom:initial;width:100%;height:0}.ea-table-modal .el-dialog{background:#fdfdfd;box-shadow:0 0 16px #00000026}.ea-table-modal .el-dialog .el-dialog__header{padding:12px 20px;background-color:#f2f6fc;border-bottom:1px solid #EBEEF5}.ea-table-modal .el-dialog .el-dialog__headerbtn{top:12px}.ea-table-modal .el-dialog .el-dialog__close{font-weight:700;color:#909399}.ea-table-modal .el-dialog .el-dialog__body{padding:10px 0;height:calc(100% - 70px);min-height:40px;max-height:800px;overflow:auto}.ea-table-modal .el-dialog .el-dialog__body .scm-title{font-size:12px;font-weight:700;color:#303133}.ea-table-modal .el-dialog .el-dialog__body .scm-title.medium{font-size:14px}.ea-table-modal .el-dialog .el-dialog__body .el-tree{background:transparent;font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree .el-tree-node__label{font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium,.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium .el-tree-node__label{font-size:14px}
|
|
1
|
+
.ea-select{display:inline-block;position:relative}.ea-select .el-select{width:100%}.ea-select .async-loading.el-icon-loading{position:absolute;top:10px;right:28px;color:#999}.ea-select-popover .el-select-dropdown__item{display:flex;justify-content:space-between}.ea-select-popover .el-select-dropdown__item .select-item-value{overflow:hidden;text-overflow:ellipsis}.ea-select-popover .el-select-dropdown__item .select-item-desc{overflow:hidden;text-overflow:ellipsis;color:#8492a6;margin-left:8px}.ea-form .el-form-item__content>.el-input-number,.ea-form .el-form-item__content>.el-input,.ea-form .el-form-item__content>.ea-select,.ea-form .el-form-item__content>.el-select{width:100%}.ea-form .el-form-item.hidden-label>.el-form-item__label{display:none}.ea-form .el-form-item.hidden-label>.el-form-item__content{width:100%}.ea-form .form-group-title{position:relative;height:32px;margin-bottom:22px}.ea-form .form-group-title>span{position:absolute;top:0;left:20%;padding:5px 25px;background-color:#fff;z-index:1;color:#909399}.ea-form .form-group-title:after{content:"";position:absolute;top:50%;left:0;width:100%;height:0;border-bottom:1px dashed #DCDFE6}.ea-select-container{display:flex;justify-content:flex-start;font-size:12px}.ea-select-container.medium{font-size:14px}.ea-select-container.medium .ea-select-panel .ea-select-panel__item{line-height:28px}.ea-select-container .ea-select-panel{padding:0;margin:0;list-style:none;flex-grow:1;min-width:120px}.ea-select-container .ea-select-panel+.ea-select-panel{border-left:1px solid #DDD}.ea-select-container .ea-select-panel__item{width:100%;line-height:24px;cursor:pointer;padding:0 12px;box-sizing:border-box;display:flex;justify-content:space-between;align-items:center;font-size:inherit}.ea-select-container .ea-select-panel__item:hover{background-color:#ebeef5}.ea-select-container .ea-select-panel__item.active{color:#409eff;font-weight:700}.ea-table .el-table th{background-color:#f2f6fc;color:#303133}.ea-table .el-table th .cell{min-height:30px;display:flex;justify-content:flex-start;align-items:center}.ea-table .el-table th.is-center .cell{justify-content:center}.ea-table .el-table th.is-right .cell{justify-content:flex-end}.ea-table .el-table td .cell,.ea-table .el-table th .cell{line-height:1.2}.ea-table .el-table.el-table--small td,.ea-table .el-table.el-table--small th{height:48px}.ea-table .el-table.is-dense td,.ea-table .el-table.is-dense th{height:32px;padding:2px 0}.ea-table .el-table.is-dense td .el-button,.ea-table .el-table.is-dense th .el-button{padding-top:0;padding-bottom:0}.ea-table .theader-th-cell .cell-icon-menu{position:absolute;top:50%;right:4px;transform:rotate(90deg) translate(-50%);color:#c0c4cc;cursor:pointer;padding:4px;border-radius:2px}.ea-table .theader-th-cell .cell-icon-menu:hover{color:#303133;background-color:#e4e7ed}.ea-table .ea-table__footer{display:flex;justify-content:space-between}.ea-table .ea-table__footer .ea-table__footer-right{margin-left:auto;padding-right:0}.ea-table .ea-table__footer>*{margin-top:12px}.ea-table .column-transition-active{opacity:.33}.ea-table .el-button>i{min-width:12px}.ea-table .more-btn>i{transform:rotate(-90deg)}.el-popover.ea-popover-no-padding{padding:8px 0;min-width:100px}.el-popover.ea-popover-no-padding.dense{margin-top:0;margin-bottom:0;min-width:70px}.more-btn-panel__item:hover{background-color:#ebeef5}.more-btn-panel__item .el-button{padding:8px 12px;width:100%;text-align:left}.ea-zoom-in-top-enter-active,.ea-zoom-in-top-leave-active{opacity:1;transform:scaleY(1);transition:transform .3s cubic-bezier(.23,1,.32,1),opacity .3s cubic-bezier(.23,1,.32,1);transform-origin:center top}.ea-zoom-in-top-enter,.ea-zoom-in-top-leave-active{opacity:0;transform:scaleY(0)}.el-dialog.ea-modal.is-closing{margin:0!important}.el-dialog.ea-modal.is-fullscreen{border-radius:0;margin:0}.el-dialog.ea-modal .el-dialog__header{color:#555;font-size:18px}.el-dialog.ea-modal .el-dialog__header .el-dialog__title{color:inherit;font-size:inherit}.ea-button-tooltip+.ea-button-tooltip{margin-left:10px}td .ea-button-tooltip+.ea-button-tooltip{margin-left:4px}td .ea-button-tooltip+.ea-button-tooltip.text{margin-left:10px}td .el-button [class*=el-icon-]+span{margin-left:2px}.el-button.ea-button.mini-rect-btn{padding:7px;border:0}.el-button.ea-button.mini-rect-btn [class^=design-]{margin-right:0}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary{background-color:#409eff26;color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus{background-color:#409eff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).primary:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success{background-color:#67c23a26;color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus{background-color:#67c23a}.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).success:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info{background-color:#90939926;color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus{background-color:#909399}.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).info:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning{background-color:#e6a23c26;color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus{background-color:#e6a23c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).warning:focus i{color:#fff}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger{background-color:#f56c6c26;color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus{background-color:#f56c6c}.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:hover i,.el-button.ea-button.mini-rect-btn:not(.is-disabled).danger:focus i{color:#fff}.ea-split-container{display:flex}.ea-split-container.is-down{user-select:none}.ea-split-container .sc-left,.ea-split-container .sc-right{flex-grow:1;flex-shrink:1}.ea-split-container .sc-bamboo{flex-grow:0;flex-shrink:0;width:8px;border:1px solid #DCDEE2;border-top:none;border-bottom:none;background-color:#f8f8f9;cursor:col-resize;user-select:none;display:flex;flex-direction:column;justify-content:center;align-items:center;margin:0 16px}.ea-split-container .sc-bamboo .sc-texture{width:4px;height:1px;background:rgba(23,35,61,.25);margin-top:3px}.ea-tree .ea-tree-real .el-tree-node>.el-tree-node__content{border-radius:4px}.ea-tree .ea-tree-real .el-tree-node.is-current>.el-tree-node__content{color:#409eff;background-color:#409eff1a}.ea-list .loading-text{color:#909399;text-align:center;font-size:inherit}.ea-desc{font-size:14px}.ea-desc__title{font-size:16px;margin-bottom:12px}.ea-desc__list{display:flex;flex-wrap:wrap}.ea-desc .item{line-height:24px;margin-bottom:10px;flex:0 0 auto}.ea-desc .item .item-label{float:left;text-align:right;padding-right:8px;color:#909399}.ea-desc .item .item-value{word-break:break-all}.ea-desc .item .item-value .value-no-wrap{height:48px;overflow:hidden;position:relative}.ea-desc .item .item-value .value-no-wrap .click-see-more{position:absolute;right:0;bottom:0;height:24px;padding-left:30px;padding-right:4px;background-image:linear-gradient(to right,transparent 0%,#fff 20%,#fff 100%);cursor:pointer;color:#409eff;user-select:none}.ea-number .el-input__inner{text-align:left}.file-upload-dialog .el-upload,.file-upload-dialog .el-upload .el-upload-dragger{width:100%}.file-upload-dialog .el-upload-list .el-upload-list__item{border:1px dashed #aaa}.file-upload-dialog .el-upload-list .el-upload-list__item .el-icon-close{display:inline-block}.file-upload-dialog .el-list-enter,.file-upload-dialog .el-list-enter-active,.file-upload-dialog .el-list-enter-to,.file-upload-dialog .el-list-leave,.file-upload-dialog .el-list-leave-active,.file-upload-dialog .el-list-leave-to{-webkit-transition:none!important;transition:none!important}.ea-table-modal{overflow:visible;right:unset;right:initial;bottom:unset;bottom:initial;width:100%;height:0}.ea-table-modal .el-dialog{background:#fdfdfd;box-shadow:0 0 16px #00000026}.ea-table-modal .el-dialog .el-dialog__header{padding:12px 20px;background-color:#f2f6fc;border-bottom:1px solid #EBEEF5}.ea-table-modal .el-dialog .el-dialog__headerbtn{top:12px}.ea-table-modal .el-dialog .el-dialog__close{font-weight:700;color:#909399}.ea-table-modal .el-dialog .el-dialog__body{padding:10px 0;height:calc(100% - 70px);min-height:40px;max-height:800px;overflow:auto}.ea-table-modal .el-dialog .el-dialog__body .scm-title{font-size:12px;font-weight:700;color:#303133}.ea-table-modal .el-dialog .el-dialog__body .scm-title.medium{font-size:14px}.ea-table-modal .el-dialog .el-dialog__body .el-tree{background:transparent;font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree .el-tree-node__label{font-size:12px}.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium,.ea-table-modal .el-dialog .el-dialog__body .el-tree.medium .el-tree-node__label{font-size:14px}
|
package/lib/style.scss
CHANGED
|
@@ -11,6 +11,36 @@ $--color-border-base: #DCDFE6 !default;
|
|
|
11
11
|
$--color-border-light: #E4E7ED !default;
|
|
12
12
|
$--color-border-lighter: #EBEEF5 !default;
|
|
13
13
|
$--color-border-extralight: #F2F6FC !default;
|
|
14
|
+
.ea-select {
|
|
15
|
+
display: inline-block;
|
|
16
|
+
position: relative;
|
|
17
|
+
.el-select {
|
|
18
|
+
width: 100%;
|
|
19
|
+
}
|
|
20
|
+
.async-loading.el-icon-loading {
|
|
21
|
+
position: absolute;
|
|
22
|
+
top: 10px;
|
|
23
|
+
right: 28px;
|
|
24
|
+
color: #999;
|
|
25
|
+
}
|
|
26
|
+
}
|
|
27
|
+
.ea-select-popover {
|
|
28
|
+
.el-select-dropdown__item {
|
|
29
|
+
display: flex;
|
|
30
|
+
justify-content: space-between;
|
|
31
|
+
.select-item-value {
|
|
32
|
+
overflow: hidden;
|
|
33
|
+
text-overflow: ellipsis;
|
|
34
|
+
}
|
|
35
|
+
.select-item-desc {
|
|
36
|
+
overflow: hidden;
|
|
37
|
+
text-overflow: ellipsis;
|
|
38
|
+
color: #8492a6;
|
|
39
|
+
margin-left: 8px;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
14
44
|
// table
|
|
15
45
|
.ea-table {
|
|
16
46
|
// 表格头部样式美化
|
|
@@ -128,31 +158,20 @@ $--color-border-extralight: #F2F6FC !default;
|
|
|
128
158
|
transform: scaleY(0);
|
|
129
159
|
}
|
|
130
160
|
|
|
131
|
-
.ea-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
.el-select {
|
|
135
|
-
width: 100%;
|
|
161
|
+
.el-dialog.ea-modal {
|
|
162
|
+
&.is-closing {
|
|
163
|
+
margin: 0 !important;
|
|
136
164
|
}
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
right: 28px;
|
|
141
|
-
color: #999;
|
|
165
|
+
&.is-fullscreen {
|
|
166
|
+
border-radius: 0;
|
|
167
|
+
margin: 0;
|
|
142
168
|
}
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
text-overflow: ellipsis;
|
|
150
|
-
}
|
|
151
|
-
.select-item-desc {
|
|
152
|
-
overflow: hidden;
|
|
153
|
-
text-overflow: ellipsis;
|
|
154
|
-
color: #8492a6;
|
|
155
|
-
margin-left: 8px;
|
|
169
|
+
.el-dialog__header {
|
|
170
|
+
color: #555;
|
|
171
|
+
font-size: 18px;
|
|
172
|
+
.el-dialog__title {
|
|
173
|
+
color: inherit;
|
|
174
|
+
font-size: inherit;
|
|
156
175
|
}
|
|
157
176
|
}
|
|
158
177
|
}
|
|
@@ -222,48 +241,6 @@ td {
|
|
|
222
241
|
}
|
|
223
242
|
}
|
|
224
243
|
|
|
225
|
-
.ea-list {
|
|
226
|
-
.loading-text {
|
|
227
|
-
color: $--color-secondary-text;
|
|
228
|
-
text-align: center;
|
|
229
|
-
font-size: inherit;
|
|
230
|
-
}
|
|
231
|
-
}
|
|
232
|
-
|
|
233
|
-
.ea-number .el-input__inner {
|
|
234
|
-
text-align: left;
|
|
235
|
-
}
|
|
236
|
-
|
|
237
|
-
.el-dialog.ea-modal {
|
|
238
|
-
&.is-closing {
|
|
239
|
-
margin: 0 !important;
|
|
240
|
-
}
|
|
241
|
-
&.is-fullscreen {
|
|
242
|
-
border-radius: 0;
|
|
243
|
-
margin: 0;
|
|
244
|
-
}
|
|
245
|
-
.el-dialog__header {
|
|
246
|
-
color: #555;
|
|
247
|
-
font-size: 18px;
|
|
248
|
-
.el-dialog__title {
|
|
249
|
-
color: inherit;
|
|
250
|
-
font-size: inherit;
|
|
251
|
-
}
|
|
252
|
-
}
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
.ea-tree {
|
|
256
|
-
.ea-tree-real {
|
|
257
|
-
.el-tree-node > .el-tree-node__content{
|
|
258
|
-
border-radius: 4px;
|
|
259
|
-
}
|
|
260
|
-
.el-tree-node.is-current > .el-tree-node__content {
|
|
261
|
-
color: $--color-primary;
|
|
262
|
-
background-color: rgba($--color-primary, 0.1);
|
|
263
|
-
}
|
|
264
|
-
}
|
|
265
|
-
}
|
|
266
|
-
|
|
267
244
|
.ea-split-container {
|
|
268
245
|
display: flex;
|
|
269
246
|
&.is-down {
|
|
@@ -301,6 +278,30 @@ td {
|
|
|
301
278
|
}
|
|
302
279
|
}
|
|
303
280
|
|
|
281
|
+
.ea-tree {
|
|
282
|
+
.ea-tree-real {
|
|
283
|
+
.el-tree-node > .el-tree-node__content{
|
|
284
|
+
border-radius: 4px;
|
|
285
|
+
}
|
|
286
|
+
.el-tree-node.is-current > .el-tree-node__content {
|
|
287
|
+
color: $--color-primary;
|
|
288
|
+
background-color: rgba($--color-primary, 0.1);
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
.ea-number .el-input__inner {
|
|
294
|
+
text-align: left;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
.ea-list {
|
|
298
|
+
.loading-text {
|
|
299
|
+
color: $--color-secondary-text;
|
|
300
|
+
text-align: center;
|
|
301
|
+
font-size: inherit;
|
|
302
|
+
}
|
|
303
|
+
}
|
|
304
|
+
|
|
304
305
|
.ea-desc {
|
|
305
306
|
font-size: 14px;
|
|
306
307
|
&__title {
|
|
@@ -371,6 +372,30 @@ td {
|
|
|
371
372
|
}
|
|
372
373
|
}
|
|
373
374
|
|
|
375
|
+
.ea-form .form-group-title {
|
|
376
|
+
position: relative;
|
|
377
|
+
height: 32px;
|
|
378
|
+
margin-bottom: 22px;
|
|
379
|
+
> span {
|
|
380
|
+
position: absolute;
|
|
381
|
+
top: 0;
|
|
382
|
+
left: 20%;
|
|
383
|
+
padding: 5px 25px;
|
|
384
|
+
background-color: #fff;
|
|
385
|
+
z-index: 1;
|
|
386
|
+
color: $--color-secondary-text;
|
|
387
|
+
}
|
|
388
|
+
&::after {
|
|
389
|
+
content: '';
|
|
390
|
+
position: absolute;
|
|
391
|
+
top: 50%;
|
|
392
|
+
left: 0;
|
|
393
|
+
width: 100%;
|
|
394
|
+
height: 0;
|
|
395
|
+
border-bottom: 1px dashed $--color-border-base;
|
|
396
|
+
}
|
|
397
|
+
}
|
|
398
|
+
|
|
374
399
|
.ea-table-modal {
|
|
375
400
|
overflow: visible;
|
|
376
401
|
right: unset;
|
|
@@ -425,27 +450,20 @@ td {
|
|
|
425
450
|
}
|
|
426
451
|
}
|
|
427
452
|
|
|
428
|
-
.ea-form .form-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
>
|
|
433
|
-
|
|
434
|
-
top: 0;
|
|
435
|
-
left: 20%;
|
|
436
|
-
padding: 5px 25px;
|
|
437
|
-
background-color: #fff;
|
|
438
|
-
z-index: 1;
|
|
439
|
-
color: $--color-secondary-text;
|
|
453
|
+
.ea-form .el-form-item__content {
|
|
454
|
+
& > .el-input-number,
|
|
455
|
+
& > .el-input,
|
|
456
|
+
& > .ea-select,
|
|
457
|
+
& > .el-select {
|
|
458
|
+
width: 100%;
|
|
440
459
|
}
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
460
|
+
}
|
|
461
|
+
.ea-form .el-form-item.hidden-label {
|
|
462
|
+
> .el-form-item__label {
|
|
463
|
+
display: none;
|
|
464
|
+
}
|
|
465
|
+
> .el-form-item__content {
|
|
446
466
|
width: 100%;
|
|
447
|
-
height: 0;
|
|
448
|
-
border-bottom: 1px dashed $--color-border-base;
|
|
449
467
|
}
|
|
450
468
|
}
|
|
451
469
|
|
|
@@ -488,20 +506,3 @@ td {
|
|
|
488
506
|
}
|
|
489
507
|
}
|
|
490
508
|
}
|
|
491
|
-
|
|
492
|
-
.ea-form .el-form-item__content {
|
|
493
|
-
& > .el-input-number,
|
|
494
|
-
& > .el-input,
|
|
495
|
-
& > .ea-select,
|
|
496
|
-
& > .el-select {
|
|
497
|
-
width: 100%;
|
|
498
|
-
}
|
|
499
|
-
}
|
|
500
|
-
.ea-form .el-form-item.hidden-label {
|
|
501
|
-
> .el-form-item__label {
|
|
502
|
-
display: none;
|
|
503
|
-
}
|
|
504
|
-
> .el-form-item__content {
|
|
505
|
-
width: 100%;
|
|
506
|
-
}
|
|
507
|
-
}
|