element-assits 0.0.24 → 0.0.26

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
@@ -34,8 +34,6 @@ Vue 原型上挂载了 `$asyncLoad` 方法
34
34
 
35
35
  ## 用法
36
36
 
37
- > 详细文档有时间再补全
38
-
39
37
  ### 表格组件 EaTable
40
38
  此组件扩展了 el-table 组件。不同的是:
41
39
  - 它完全使用对象数组来控制表格列
@@ -52,19 +50,17 @@ Vue 原型上挂载了 `$asyncLoad` 方法
52
50
  | loading | 表格加载状态 | Boolean | undefined |
53
51
  | initRequest | 是否初始化发送请求 | Boolean | true |
54
52
  | innerForm | 内部 - 表单(搜索栏) | Boolean \| Object | undefined |
55
- | innerIndex | 内部 - 索引 | Boolean \| Object | true
56
- | innerSelection | 内部 - 选中列 | Boolean \| Object | undefined
57
- | innerPagination | 内部 - 分页 | Boolean \| Object | undefined
58
- | innerOperation | 内部 - 操作栏(尾列)| Boolean \| Object | undefined
59
-
60
- > `innerForm` 额外属性(其余将绑定至EaForm):
61
- $~~~~$`limit` 限制默认显示的搜索条件数量
62
- $~~~~$`referenceItemWidth` 单项参考宽度
63
- $~~~~$`maxItemWidth` 单项最大宽度
64
- $~~~~$`loading` 控制更多按钮的加载状态
65
- $~~~~$`column[].exclusiveDoubleCells` 允许某一项独占两格
66
- > `innerSelection` 可以绑定 `{ data: selectedRows }` 接收选中的行。
67
- > `innerOperation` 可以绑定 `{ maxNumOfBtn: 3 }` 设置操作栏最大显示的按钮数,超出将被折叠。
53
+ | innerForm.limit|限制默认显示的搜索条件数量|Number \| auto \| all|auto|
54
+ | innerForm.referenceItemWidth|单项参考宽度|Number|180|
55
+ | innerForm.maxItemWidth|单项最大宽度|Number|240|
56
+ | innerForm.loading|控制更多按钮加载状态|Boolean|false|
57
+ | innerForm.column[].exclusiveDoubleCells|允许某一项独占两格|Boolean|false|
58
+ | innerIndex | 内部 - 索引 | Boolean \| Object | true|
59
+ | innerSelection | 内部 - 选中列 | Boolean \| Object | undefined|
60
+ | innerSelection.data|选中的行|Array| [] |
61
+ | innerPagination | 内部 - 分页 | Boolean \| Object | undefined|
62
+ | innerOperation | 内部 - 操作栏(尾列)| Boolean \| Object | undefined|
63
+ | innerOperation.maxNumOfBtn|最大显示的按钮数,溢出折叠|Number|3|
68
64
 
69
65
  ## methods
70
66
 
@@ -86,11 +82,9 @@ $~~~~$`column[].exclusiveDoubleCells` 允许某一项独占两格
86
82
  | footer | bottom-menu&分页 | 表格底部
87
83
 
88
84
  ## events
89
- `search-reset` 搜索重置事件,默认重置搜索表单并搜索。
90
- 一旦监听该事件,则阻止默认行为,参数为三项回调:
91
- $~~~~$ `callback` 执行默认行为
92
- $~~~~$ `reset` 仅执行重置
93
- $~~~~$ `search` 仅执行搜索
85
+ | 事件名 | 说明 | 参数 |
86
+ |:---|:---|:---|
87
+ |search-reset| 搜索重置事件|callback 重置表单并搜索(不监听时默认行为) <br> reset 仅重置表单<br> search 仅搜索 |
94
88
 
95
89
  ## column-attributes
96
90
  | 属性名 | 类型 | 默认值 | 说明 |
@@ -103,39 +97,32 @@ $~~~~$ `search` 仅执行搜索
103
97
  ---
104
98
 
105
99
  ### 表单组件 EaForm
106
- ```
107
- // form
108
- props: {
109
- model: { type: Object, default: () => ({}) },
110
- rules: { type: Object, default: () => ({}) },
111
- column: { type: Array, default: () => ([]) },
112
- labelWidth: { type: String, default: undefined },
113
- inline: { type: Boolean, default: false },
114
- dense: { type: Boolean, default: false }
115
- },
116
- methods: {
117
- setData (row) {
118
- // 设置表单值
119
- }
120
- }
121
- // form-item
122
- {
123
- label: '名称', // 必须,标签名 String | Function
124
- prop: 'name', // 必须,属性名 String
125
- labelTooltip: '名称的tips', // 可选,名称描述tips String | Object
126
- required: true, // 可选(默认false),是否必填 Boolean
127
- component: 'el-input', // 可选(默认el-input),所用组件 String | Component
128
- rules: [], // 可选,校验规则 Array | Function
129
- bind: {}, // 可选,组件v-bind Object
130
- on: {}, // 可选,组件v-on Object
131
- show: false, // 可选(默认true),控制表单项是否显示 Boolean | Function
132
- enable: false, // 可选(默认true),控制表单项是否启用 Boolean | Function
133
- span: 12, // 可选(默认12),所占栅格
134
- pull: 12, // 可选,栅格偏移
135
- push: 12, // 可选,栅格偏移
136
- offset: 12, // 可选,栅格偏移
137
- }
138
- ```
100
+
101
+ ## props
102
+ | 属性名 | 说明 | 类型 | 默认值 |
103
+ |:---|:---|:---|:---|
104
+ |model|表单数据对象|Object|
105
+ |rules|表单验证规则对象|Object|
106
+ |dense|是否紧凑模式|Boolean|false|
107
+ |column|表单项信息组|Array|必填|
108
+ |column[].label|标签名|String \| Function|必填|
109
+ |column[].prop|属性名|String|必填|
110
+ |column[].labelTooltip|名称描述tips|String \| Object|
111
+ |column[].required|是否必填|Boolean|false|
112
+ |column[].component|所用组件|String \| Component|el-input|
113
+ |column[].rules|校验规则|Array \| Function|
114
+ |column[].bind|组件v-bind|Object|
115
+ |column[].on|组件v-on|Object|
116
+ |column[].show|控制表单项是否显示|Boolean \| Function|true|
117
+ |column[].enable|控制表单项是否启用|Boolean \| Function|true|
118
+ |column[].span|所占栅格|Number|12|
119
+ |column[].pull|栅格偏移|Number|
120
+ |column[].push|栅格偏移|Number|
121
+ |column[].offset|栅格偏移|Number|
122
+ ## methods
123
+ | 方法 | 说明 | 参数 |
124
+ |:---|:---|:---|
125
+ |setData|设置表单数据对象的值|要设置的数据对象|
139
126
 
140
127
  ### 按钮 EaButton
141
128
  ```
@@ -273,27 +260,29 @@ props: {
273
260
  ```
274
261
 
275
262
  ### 描述列表 EaDesc
276
- ```
277
- props: {
278
- title: { type: String, default: undefined },
279
- data: { type: Object, required: true },
280
- column: { type: Array, required: true },
281
- labelWidth: { type: [Number, String], default: 100 },
282
- split: { type: Number, default: 2 },
283
- diff: { type: Array, default: undefined },
284
- gutter: { type: Number, default: 0 }
285
- },
286
- ```
263
+
264
+ ## props
265
+ | 属性名 | 含义 | 类型 | 默认值 |
266
+ |:---|:---|:---|:---|
267
+ |title|标题|String|undefined|
268
+ |data|数据|Object|必填|
269
+ |column|列信息|Array|必填|
270
+ |column[].bind.class|单独设置类|Object|undefined|
271
+ |column[].bind.style|单独设置样式|Object|undefined|
272
+ |labelWidth|标签宽度|Number \| String|100|
273
+ |split|分割数量|Number|2|
274
+ |diff|有差异的列信息|Array|undefined|
275
+ |gutter|间隔|Number|0|
287
276
 
288
277
  ### 弹窗文件上传 EaFileUpload
289
- ```
290
- props: {
291
- title: { type: String, default: '文件上传' },
292
- multiple: { type: Boolean, default: false },
293
- limit: { type: Number, default: 1 },
294
- suffix: { type: String, default: 'xlsx,xls' },
295
- httpRequest: { type: Function, required: true },
296
- httpTemplate: { type: Function, default: undefined },
297
- httpFinally: { type: Function, default: undefined }
298
- },
299
- ```
278
+
279
+ ## props
280
+ | 属性名 | 含义 | 类型 | 默认值 |
281
+ |:---|:---|:---|:---|
282
+ |title|标题|String|文件上传|
283
+ |multiple|是否多选|Boolean|false|
284
+ |limit|最大数量限制|Number|1|
285
+ |suffix|允许的文件后缀|String|xlsx,xls|
286
+ |httpRequest|文件上传|Function|必填|
287
+ |httpTemplate|模板下载|Function|undefined|
288
+ |httpFinally|请求完成|Function|undefined|
package/lib/index.js CHANGED
@@ -73,7 +73,7 @@ function En(t) {
73
73
  return !!Je && Je in t;
74
74
  }
75
75
  var An = Function.prototype, Pn = An.toString;
76
- function N(t) {
76
+ function D(t) {
77
77
  if (t != null) {
78
78
  try {
79
79
  return Pn.call(t);
@@ -86,23 +86,23 @@ function N(t) {
86
86
  }
87
87
  return "";
88
88
  }
89
- var Ln = /[\\^$.*+?()[\]{}|]/g, Rn = /^\[object .+?Constructor\]$/, Fn = Function.prototype, Mn = Object.prototype, jn = Fn.toString, In = Mn.hasOwnProperty, Nn = RegExp(
89
+ var Ln = /[\\^$.*+?()[\]{}|]/g, Rn = /^\[object .+?Constructor\]$/, Fn = Function.prototype, Mn = Object.prototype, jn = Fn.toString, In = Mn.hasOwnProperty, Dn = RegExp(
90
90
  "^" + jn.call(In).replace(Ln, "\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g, "$1.*?") + "$"
91
91
  );
92
- function Dn(t) {
92
+ function Nn(t) {
93
93
  if (!q(t) || En(t))
94
94
  return !1;
95
- var e = w(t) ? Nn : Rn;
96
- return e.test(N(t));
95
+ var e = w(t) ? Dn : Rn;
96
+ return e.test(D(t));
97
97
  }
98
98
  function Bn(t, e) {
99
99
  return t == null ? void 0 : t[e];
100
100
  }
101
- function D(t, e) {
101
+ function N(t, e) {
102
102
  var n = Bn(t, e);
103
- return Dn(n) ? n : void 0;
103
+ return Nn(n) ? n : void 0;
104
104
  }
105
- var kn = D(O, "WeakMap");
105
+ var kn = N(O, "WeakMap");
106
106
  const ve = kn;
107
107
  var Qe = Object.create, Wn = function() {
108
108
  function t() {
@@ -157,7 +157,7 @@ function Yn(t) {
157
157
  }
158
158
  var Zn = function() {
159
159
  try {
160
- var t = D(Object, "defineProperty");
160
+ var t = N(Object, "defineProperty");
161
161
  return t({}, "", {}), t;
162
162
  } catch {
163
163
  }
@@ -277,8 +277,8 @@ 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 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;
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]", Dr = "[object Float32Array]", Nr = "[object Float64Array]", Br = "[object Int8Array]", kr = "[object Int16Array]", Wr = "[object Int32Array]", Hr = "[object Uint8Array]", qr = "[object Uint8ClampedArray]", zr = "[object Uint16Array]", Ur = "[object Uint32Array]", _ = {};
281
+ _[Dr] = _[Nr] = _[Br] = _[kr] = _[Wr] = _[Hr] = _[qr] = _[zr] = _[Ur] = !0;
282
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)];
@@ -299,18 +299,18 @@ const k = Kr;
299
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
- function Nt(t, e) {
302
+ function Dt(t, e) {
303
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
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
- function Dt(t, e) {
308
+ function Nt(t, e) {
309
309
  return function(n) {
310
310
  return t(e(n));
311
311
  };
312
312
  }
313
- var Qr = Dt(Object.keys, Object);
313
+ var Qr = Nt(Object.keys, Object);
314
314
  const Vr = Qr;
315
315
  var ei = Object.prototype, ti = ei.hasOwnProperty;
316
316
  function Bt(t) {
@@ -322,7 +322,7 @@ function Bt(t) {
322
322
  return e;
323
323
  }
324
324
  function ce(t) {
325
- return oe(t) ? Nt(t) : Bt(t);
325
+ return oe(t) ? Dt(t) : Bt(t);
326
326
  }
327
327
  function ni(t) {
328
328
  var e = [];
@@ -341,7 +341,7 @@ function si(t) {
341
341
  return n;
342
342
  }
343
343
  function je(t) {
344
- return oe(t) ? Nt(t, !0) : si(t);
344
+ return oe(t) ? Dt(t, !0) : si(t);
345
345
  }
346
346
  var oi = /\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/, ai = /^\w*$/;
347
347
  function Ie(t, e) {
@@ -350,7 +350,7 @@ function Ie(t, e) {
350
350
  var n = typeof t;
351
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
- var li = D(Object, "create");
353
+ var li = N(Object, "create");
354
354
  const K = li;
355
355
  function ui() {
356
356
  this.__data__ = K ? K(null) : {}, this.size = 0;
@@ -430,7 +430,7 @@ A.prototype.delete = xi;
430
430
  A.prototype.get = Ti;
431
431
  A.prototype.has = Ci;
432
432
  A.prototype.set = Si;
433
- var Oi = D(O, "Map");
433
+ var Oi = N(O, "Map");
434
434
  const Y = Oi;
435
435
  function Ei() {
436
436
  this.size = 0, this.__data__ = {
@@ -474,7 +474,7 @@ P.prototype.get = Li;
474
474
  P.prototype.has = Ri;
475
475
  P.prototype.set = Fi;
476
476
  var Mi = "Expected a function";
477
- function Ne(t, e) {
477
+ function De(t, e) {
478
478
  if (typeof t != "function" || e != null && typeof e != "function")
479
479
  throw new TypeError(Mi);
480
480
  var n = function() {
@@ -484,20 +484,20 @@ 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 || P)(), n;
487
+ return n.cache = new (De.Cache || P)(), n;
488
488
  }
489
- Ne.Cache = P;
489
+ De.Cache = P;
490
490
  var ji = 500;
491
491
  function Ii(t) {
492
- var e = Ne(t, function(r) {
492
+ var e = De(t, function(r) {
493
493
  return n.size === ji && n.clear(), r;
494
494
  }), n = e.cache;
495
495
  return e;
496
496
  }
497
- var Ni = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Di = /\\(\\)?/g, Bi = Ii(function(t) {
497
+ var Di = /[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g, Ni = /\\(\\)?/g, Bi = Ii(function(t) {
498
498
  var e = [];
499
- return t.charCodeAt(0) === 46 && e.push(""), t.replace(Ni, function(n, r, i, s) {
500
- e.push(i ? s.replace(Di, "$1") : r || n);
499
+ return t.charCodeAt(0) === 46 && e.push(""), t.replace(Di, function(n, r, i, s) {
500
+ e.push(i ? s.replace(Ni, "$1") : r || n);
501
501
  }), e;
502
502
  });
503
503
  const ki = Bi;
@@ -514,14 +514,14 @@ function V(t) {
514
514
  var e = t + "";
515
515
  return e == "0" && 1 / t == -Hi ? "-0" : e;
516
516
  }
517
- function De(t, e) {
517
+ function Ne(t, e) {
518
518
  e = he(e, t);
519
519
  for (var n = 0, r = e.length; t != null && n < r; )
520
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
- var r = t == null ? void 0 : De(t, e);
524
+ var r = t == null ? void 0 : Ne(t, e);
525
525
  return r === void 0 ? n : r;
526
526
  }
527
527
  function Be(t, e) {
@@ -548,7 +548,7 @@ function zi(t) {
548
548
  function Ui(t) {
549
549
  return At(Ft(t, void 0, zi), t + "");
550
550
  }
551
- var Gi = Dt(Object.getPrototypeOf, Object);
551
+ var Gi = Nt(Object.getPrototypeOf, Object);
552
552
  const We = Gi;
553
553
  var Xi = "[object Object]", Ki = Function.prototype, Yi = Object.prototype, kt = Ki.toString, Zi = Yi.hasOwnProperty, Ji = kt.call(Object);
554
554
  function Z(t) {
@@ -651,15 +651,15 @@ function $e(t) {
651
651
  function Ut(t) {
652
652
  return zt(t, je, qt);
653
653
  }
654
- var ms = D(O, "DataView");
654
+ var ms = N(O, "DataView");
655
655
  const we = ms;
656
- var ys = D(O, "Promise");
656
+ var ys = N(O, "Promise");
657
657
  const xe = ys;
658
- var bs = D(O, "Set");
658
+ var bs = N(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(Y), xs = N(xe), Ts = N(Te), Cs = N(ve), F = I;
660
+ var ut = "[object Map]", vs = "[object Object]", ct = "[object Promise]", dt = "[object Set]", ft = "[object WeakMap]", ht = "[object DataView]", $s = D(we), ws = D(Y), xs = D(xe), Ts = D(Te), Cs = D(ve), F = I;
661
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
- var e = I(t), n = e == vs ? t.constructor : void 0, r = n ? N(n) : "";
662
+ var e = I(t), n = e == vs ? t.constructor : void 0, r = n ? D(n) : "";
663
663
  if (r)
664
664
  switch (r) {
665
665
  case $s:
@@ -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]", 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]";
707
+ var js = "[object Boolean]", Is = "[object Date]", Ds = "[object Map]", Ns = "[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) {
@@ -725,9 +725,9 @@ function eo(t, e, n) {
725
725
  case Qs:
726
726
  case Vs:
727
727
  return Ms(t, n);
728
- case Ns:
729
- return new r();
730
728
  case Ds:
729
+ return new r();
730
+ case Ns:
731
731
  case Ws:
732
732
  return new r(t);
733
733
  case Bs:
@@ -793,9 +793,9 @@ function G(t, e, n, r, i, s) {
793
793
  $ && (v = b, b = t[v]), Rt(o, v, G(b, e, n, v, t, s));
794
794
  }), o;
795
795
  }
796
- var No = 1, Do = 4;
796
+ var Do = 1, No = 4;
797
797
  function E(t) {
798
- return G(t, No | Do);
798
+ return G(t, Do | No);
799
799
  }
800
800
  var Bo = "__lodash_hash_undefined__";
801
801
  function ko(t) {
@@ -1035,7 +1035,7 @@ function Ca(t) {
1035
1035
  }
1036
1036
  function Sa(t) {
1037
1037
  return function(e) {
1038
- return De(e, t);
1038
+ return Ne(e, t);
1039
1039
  };
1040
1040
  }
1041
1041
  function Oa(t) {
@@ -1082,9 +1082,9 @@ var Ra = cr(function(t, e) {
1082
1082
  });
1083
1083
  const Fa = Ra;
1084
1084
  function Ma(t, e) {
1085
- return e.length < 2 ? t : De(t, Qi(e, 0, -1));
1085
+ return e.length < 2 ? t : Ne(t, Qi(e, 0, -1));
1086
1086
  }
1087
- var ja = "[object Map]", Ia = "[object Set]", Na = Object.prototype, Da = Na.hasOwnProperty;
1087
+ var ja = "[object Map]", Ia = "[object Set]", Da = Object.prototype, Na = Da.hasOwnProperty;
1088
1088
  function Ce(t) {
1089
1089
  if (t == null)
1090
1090
  return !0;
@@ -1096,7 +1096,7 @@ function Ce(t) {
1096
1096
  if (ae(t))
1097
1097
  return !Bt(t).length;
1098
1098
  for (var n in t)
1099
- if (Da.call(t, n))
1099
+ if (Na.call(t, n))
1100
1100
  return !1;
1101
1101
  return !0;
1102
1102
  }
@@ -2185,7 +2185,7 @@ const rn = jl.exports, sn = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object
2185
2185
  }, Symbol.toStringTag, { value: "Module" }));
2186
2186
  function Il(t) {
2187
2187
  const e = t.querySelector(".el-dialog"), n = t.querySelector(".el-dialog__header");
2188
- n.style.cursor = "all-scroll";
2188
+ e.style.overflow = "auto", n.style.cursor = "all-scroll";
2189
2189
  let r = e.offsetLeft, i = e.offsetTop, s = !1, o, a;
2190
2190
  const l = () => {
2191
2191
  s = !1, o = void 0, a = void 0, r = e.offsetLeft, i = e.offsetTop;
@@ -2201,7 +2201,7 @@ function Il(t) {
2201
2201
  document.removeEventListener("mouseup", l), document.removeEventListener("mousemove", u);
2202
2202
  };
2203
2203
  }
2204
- function Nl(t) {
2204
+ function Dl(t) {
2205
2205
  const e = t.querySelector(".el-dialog"), n = [
2206
2206
  L(e, "left"),
2207
2207
  L(e, "right"),
@@ -2216,7 +2216,7 @@ function Nl(t) {
2216
2216
  }
2217
2217
  function L(t, e) {
2218
2218
  const n = document.createElement("div");
2219
- n.style.position = "absolute", Dl(n, e), t.style.userSelect = "none", t.appendChild(n);
2219
+ n.style.position = "absolute", Nl(n, e), t.style.userSelect = "none", t.appendChild(n);
2220
2220
  let r = t.offsetLeft, i = t.offsetTop, s = t.offsetWidth, o = t.offsetHeight, a = !1, l, u;
2221
2221
  const f = () => {
2222
2222
  a = !1, l = void 0, u = void 0, r = t.offsetLeft, i = t.offsetTop, s = t.offsetWidth, o = t.offsetHeight;
@@ -2232,7 +2232,7 @@ function L(t, e) {
2232
2232
  document.removeEventListener("mouseup", f), document.removeEventListener("mousemove", c);
2233
2233
  };
2234
2234
  }
2235
- function Dl(t, e) {
2235
+ function Nl(t, e) {
2236
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");
2237
2237
  }
2238
2238
  const Bl = {
@@ -2267,10 +2267,12 @@ const Bl = {
2267
2267
  if (this.$emit("opened"), !this.allowDrag)
2268
2268
  return;
2269
2269
  this.isClosing = !0;
2270
- const t = Il(this.$el), e = Nl(this.$el);
2270
+ const t = Il(this.$el), e = Dl(this.$el);
2271
2271
  this.$on("hook:destroyed", () => {
2272
2272
  t(), e();
2273
2273
  });
2274
+ const n = this.$el.querySelector(".el-dialog"), r = document.createElement("div");
2275
+ r.style.height = "75px", r.style.marginBottom = "75px", n.parentElement.appendChild(r);
2274
2276
  },
2275
2277
  handleClosed() {
2276
2278
  this.$emit("closed"), this.$parent && this.$parent.$emit("closed");
@@ -2756,7 +2758,7 @@ var _u = function() {
2756
2758
  return n("div", { staticClass: "ea-desc" }, [e._t("title", function() {
2757
2759
  return [e.title ? n("div", { staticClass: "ea-desc__title" }, [e._v(e._s(e.title))]) : e._e()];
2758
2760
  }), n("div", { staticClass: "ea-desc__list" }, e._l(e.initColumn, function(r) {
2759
- return n("div", { key: r.prop, class: { item: 1, "has-diff": r.__hasDiff }, style: r.__style }, [n("div", { staticClass: "item-label", style: { width: e.rawLabelWidth } }, [e._v(e._s(r.label))]), n("div", { staticClass: "item-value", style: { marginLeft: e.rawLabelWidth } }, [e._t(r.prop, function() {
2761
+ return n("div", { key: r.prop, class: { item: 1, "has-diff": r.__hasDiff, ...r.bind && r.bind.class }, style: { ...r.__style, ...r.bind && r.bind.style } }, [n("div", { staticClass: "item-label", style: { width: e.rawLabelWidth } }, [e._v(e._s(r.label))]), n("div", { staticClass: "item-value", style: { marginLeft: e.rawLabelWidth } }, [e._t(r.prop, function() {
2760
2762
  return [r.render ? n("div", [n(e.getComponent(r, e.data), { tag: "component" })], 1) : n("div", { class: { "value-no-wrap": r.__isTooLength } }, [e._v(" " + e._s(e.data[r.prop]) + " "), r.__isTooLength ? n("span", { staticClass: "click-see-more", on: { click: function(i) {
2761
2763
  r.__isTooLength = !1;
2762
2764
  } } }, [e._v("\u67E5\u770B\u66F4\u591A")]) : e._e()])];
@@ -2954,7 +2956,7 @@ var ju = function() {
2954
2956
  e.visible = !1;
2955
2957
  } } }, [e._v("\u53D6\u6D88")])];
2956
2958
  }, proxy: !0 }]) }, [e._t("title"), n("el-upload", { ref: "upload", attrs: { drag: "", action: "/", multiple: e.multiple, limit: e.limit, "auto-upload": !1, "file-list": e.fileList, "on-remove": e.handleRemove, "on-change": e.handleChange, "on-exceed": e.handleExceed, "on-error": e.httpError, "on-success": e.httpSuccess, "http-request": e.httpRequestMiddleware } }, [n("i", { staticClass: "el-icon-upload" }), e.$scopedSlots.content ? n("div", [e._t("content")], 2) : n("div", { staticClass: "el-upload__text" }, [e._v("\u5C06\u6587\u4EF6\u62D6\u5230\u6B64\u5904\uFF0C\u6216"), n("em", [e._v("\u70B9\u51FB\u4E0A\u4F20")])]), e._t("default")], 2), e._t("footer")], 2);
2957
- }, Iu = [], Nu = /* @__PURE__ */ m(
2959
+ }, Iu = [], Du = /* @__PURE__ */ m(
2958
2960
  Mu,
2959
2961
  ju,
2960
2962
  Iu,
@@ -2964,8 +2966,8 @@ var ju = function() {
2964
2966
  null,
2965
2967
  null
2966
2968
  );
2967
- const Du = Nu.exports, Gu = (t) => {
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;
2969
+ const Nu = Du.exports, Gu = (t) => {
2970
+ 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", Nu), t.prototype.$asyncLoad = M;
2969
2971
  };
2970
2972
  const Bu = {
2971
2973
  components: { EaModal: on },
@@ -3014,7 +3016,7 @@ export {
3014
3016
  Xl as EaButton,
3015
3017
  Fu as EaCheckbox,
3016
3018
  yu as EaDesc,
3017
- Du as EaFileUpload,
3019
+ Nu as EaFileUpload,
3018
3020
  en as EaForm,
3019
3021
  hu as EaList,
3020
3022
  on as EaModal,
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;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}
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 0 50px!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;overflow:hidden}.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,36 +11,6 @@ $--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
-
44
14
  // table
45
15
  .ea-table {
46
16
  // 表格头部样式美化
@@ -158,6 +128,54 @@ $--color-border-extralight: #F2F6FC !default;
158
128
  transform: scaleY(0);
159
129
  }
160
130
 
131
+ .ea-select {
132
+ display: inline-block;
133
+ position: relative;
134
+ .el-select {
135
+ width: 100%;
136
+ }
137
+ .async-loading.el-icon-loading {
138
+ position: absolute;
139
+ top: 10px;
140
+ right: 28px;
141
+ color: #999;
142
+ }
143
+ }
144
+ .ea-select-popover {
145
+ .el-select-dropdown__item {
146
+ display: flex;
147
+ justify-content: space-between;
148
+ .select-item-value {
149
+ overflow: hidden;
150
+ text-overflow: ellipsis;
151
+ }
152
+ .select-item-desc {
153
+ overflow: hidden;
154
+ text-overflow: ellipsis;
155
+ color: #8492a6;
156
+ margin-left: 8px;
157
+ }
158
+ }
159
+ }
160
+
161
+ .el-dialog.ea-modal {
162
+ &.is-closing {
163
+ margin: 0 0 50px !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
+
161
179
  .ea-button-tooltip + .ea-button-tooltip {
162
180
  margin-left: 10px;
163
181
  }
@@ -223,8 +241,60 @@ td {
223
241
  }
224
242
  }
225
243
 
226
- .ea-number .el-input__inner {
227
- text-align: left;
244
+ .ea-desc {
245
+ font-size: 14px;
246
+ &__title {
247
+ font-size: 16px;
248
+ margin-bottom: 12px;
249
+ }
250
+ &__list {
251
+ display: flex;
252
+ flex-wrap: wrap;
253
+ }
254
+ }
255
+ .ea-desc .item {
256
+ line-height: 24px;
257
+ margin-bottom: 10px;
258
+ flex: 0 0 auto;
259
+ .item-label {
260
+ float: left;
261
+ text-align: right;
262
+ padding-right: 8px;
263
+ color: #909399;
264
+ }
265
+ .item-value {
266
+ word-break: break-all;
267
+ overflow: hidden;
268
+ .value-no-wrap {
269
+ height: 48px;
270
+ overflow: hidden;
271
+ position: relative;
272
+ .click-see-more {
273
+ position: absolute;
274
+ right: 0;
275
+ bottom: 0;
276
+ height: 24px;
277
+ padding-left: 30px;
278
+ padding-right: 4px;
279
+ background-image: linear-gradient(to right, transparent 0%, #fff 20%, #fff 100%);
280
+ cursor: pointer;
281
+ color: $--color-primary;
282
+ user-select: none;
283
+ }
284
+ }
285
+ }
286
+ }
287
+
288
+ .ea-tree {
289
+ .ea-tree-real {
290
+ .el-tree-node > .el-tree-node__content{
291
+ border-radius: 4px;
292
+ }
293
+ .el-tree-node.is-current > .el-tree-node__content {
294
+ color: $--color-primary;
295
+ background-color: rgba($--color-primary, 0.1);
296
+ }
297
+ }
228
298
  }
229
299
 
230
300
  .ea-split-container {
@@ -264,36 +334,6 @@ td {
264
334
  }
265
335
  }
266
336
 
267
- .ea-tree {
268
- .ea-tree-real {
269
- .el-tree-node > .el-tree-node__content{
270
- border-radius: 4px;
271
- }
272
- .el-tree-node.is-current > .el-tree-node__content {
273
- color: $--color-primary;
274
- background-color: rgba($--color-primary, 0.1);
275
- }
276
- }
277
- }
278
-
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
- }
296
-
297
337
  .ea-list {
298
338
  .loading-text {
299
339
  color: $--color-secondary-text;
@@ -302,47 +342,8 @@ td {
302
342
  }
303
343
  }
304
344
 
305
- .ea-desc {
306
- font-size: 14px;
307
- &__title {
308
- font-size: 16px;
309
- margin-bottom: 12px;
310
- }
311
- &__list {
312
- display: flex;
313
- flex-wrap: wrap;
314
- }
315
- }
316
- .ea-desc .item {
317
- line-height: 24px;
318
- margin-bottom: 10px;
319
- flex: 0 0 auto;
320
- .item-label {
321
- float: left;
322
- text-align: right;
323
- padding-right: 8px;
324
- color: #909399;
325
- }
326
- .item-value {
327
- word-break: break-all;
328
- .value-no-wrap {
329
- height: 48px;
330
- overflow: hidden;
331
- position: relative;
332
- .click-see-more {
333
- position: absolute;
334
- right: 0;
335
- bottom: 0;
336
- height: 24px;
337
- padding-left: 30px;
338
- padding-right: 4px;
339
- background-image: linear-gradient(to right, transparent 0%, #fff 20%, #fff 100%);
340
- cursor: pointer;
341
- color: $--color-primary;
342
- user-select: none;
343
- }
344
- }
345
- }
345
+ .ea-number .el-input__inner {
346
+ text-align: left;
346
347
  }
347
348
 
348
349
  .file-upload-dialog {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.24",
3
+ "version": "0.0.26",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",