element-assits 0.0.46 → 0.0.47
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/lib/index.js +7 -6
- package/lib/style.scss +129 -129
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -2076,8 +2076,8 @@ class Xx {
|
|
|
2076
2076
|
}
|
|
2077
2077
|
add({ $index: n }, i) {
|
|
2078
2078
|
this.isTrigger || (this.o[n] = i.map((o) => {
|
|
2079
|
-
const u = Rt(o, "
|
|
2080
|
-
return Math.max(u.length, 2) * 14 + 14 + 9;
|
|
2079
|
+
const u = Rt(o, "componentInstance.$el.innerText");
|
|
2080
|
+
return Math.max(u && u.length, 2) * 14 + 14 + 9;
|
|
2081
2081
|
}).reduce((o, u) => o + u, 0) + 14 * 3 + 20, this.o.every(Boolean) && (this.isTrigger = !0, this.callback(Math.max(...this.o))));
|
|
2082
2082
|
}
|
|
2083
2083
|
}
|
|
@@ -2093,15 +2093,16 @@ function $u(r = 3) {
|
|
|
2093
2093
|
o = {
|
|
2094
2094
|
props: { scope: { type: Object, default: void 0 } },
|
|
2095
2095
|
data() {
|
|
2096
|
-
|
|
2097
|
-
const d = Cu.bind(n)(this.scope).filter((S) => S.tag), v = d.slice(0, r - 1);
|
|
2098
|
-
(b = n.fitOpt) == null || b.add(this.scope, v);
|
|
2099
|
-
const m = d.slice(r - 1);
|
|
2096
|
+
const d = Cu.bind(n)(this.scope).filter((b) => b.tag), v = d.slice(0, r - 1), m = d.slice(r - 1);
|
|
2100
2097
|
return {
|
|
2101
2098
|
children: v,
|
|
2102
2099
|
moreChildren: m
|
|
2103
2100
|
};
|
|
2104
2101
|
},
|
|
2102
|
+
mounted() {
|
|
2103
|
+
var d;
|
|
2104
|
+
(d = n.fitOpt) == null || d.add(this.scope, this.children);
|
|
2105
|
+
},
|
|
2105
2106
|
render(d) {
|
|
2106
2107
|
return d("div", [
|
|
2107
2108
|
...this.children,
|
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
|
// 表格头部样式美化
|
|
@@ -167,36 +197,6 @@ $--color-border-extralight: #F2F6FC !default;
|
|
|
167
197
|
}
|
|
168
198
|
}
|
|
169
199
|
|
|
170
|
-
.ea-select {
|
|
171
|
-
display: inline-block;
|
|
172
|
-
position: relative;
|
|
173
|
-
.el-select {
|
|
174
|
-
width: 100%;
|
|
175
|
-
}
|
|
176
|
-
.async-loading.el-icon-loading {
|
|
177
|
-
position: absolute;
|
|
178
|
-
top: 10px;
|
|
179
|
-
right: 28px;
|
|
180
|
-
color: #999;
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
.ea-select-popover {
|
|
184
|
-
.el-select-dropdown__item {
|
|
185
|
-
display: flex;
|
|
186
|
-
justify-content: space-between;
|
|
187
|
-
.select-item-value {
|
|
188
|
-
overflow: hidden;
|
|
189
|
-
text-overflow: ellipsis;
|
|
190
|
-
}
|
|
191
|
-
.select-item-desc {
|
|
192
|
-
overflow: hidden;
|
|
193
|
-
text-overflow: ellipsis;
|
|
194
|
-
color: #8492a6;
|
|
195
|
-
margin-left: 8px;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
}
|
|
199
|
-
|
|
200
200
|
.el-dialog.ea-modal {
|
|
201
201
|
&.is-closing {
|
|
202
202
|
margin: 0 0 50px !important;
|
|
@@ -215,6 +215,57 @@ $--color-border-extralight: #F2F6FC !default;
|
|
|
215
215
|
}
|
|
216
216
|
}
|
|
217
217
|
|
|
218
|
+
.ea-split-container {
|
|
219
|
+
display: flex;
|
|
220
|
+
&.is-down {
|
|
221
|
+
user-select: none;
|
|
222
|
+
}
|
|
223
|
+
.sc-left {
|
|
224
|
+
flex-grow: 1;
|
|
225
|
+
flex-shrink: 1;
|
|
226
|
+
}
|
|
227
|
+
.sc-right {
|
|
228
|
+
flex-grow: 1;
|
|
229
|
+
flex-shrink: 1;
|
|
230
|
+
}
|
|
231
|
+
.sc-center {
|
|
232
|
+
flex-grow: 0;
|
|
233
|
+
flex-shrink: 0;
|
|
234
|
+
position: relative;
|
|
235
|
+
}
|
|
236
|
+
.sc-bamboo {
|
|
237
|
+
width: 8px;
|
|
238
|
+
height: 100%;
|
|
239
|
+
border: 1px solid #DCDEE2;
|
|
240
|
+
border-top: none;
|
|
241
|
+
border-bottom: none;
|
|
242
|
+
background-color: #F8F8F9;
|
|
243
|
+
cursor: col-resize;
|
|
244
|
+
user-select: none;
|
|
245
|
+
display: flex;
|
|
246
|
+
flex-direction: column;
|
|
247
|
+
justify-content: center;
|
|
248
|
+
align-items: center;
|
|
249
|
+
margin: 0 16px;
|
|
250
|
+
.sc-texture {
|
|
251
|
+
width: 4px;
|
|
252
|
+
height: 1px;
|
|
253
|
+
background: rgba(23, 35, 61, .25);
|
|
254
|
+
margin-top: 3px;
|
|
255
|
+
}
|
|
256
|
+
}
|
|
257
|
+
.sc-on-bamboo {
|
|
258
|
+
position: absolute;
|
|
259
|
+
top: 50%;
|
|
260
|
+
left: 50%;
|
|
261
|
+
transform: translate(-50%, -50%);
|
|
262
|
+
background-color: #FFF;
|
|
263
|
+
display: flex;
|
|
264
|
+
justify-content: center;
|
|
265
|
+
align-items: center;
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
|
+
|
|
218
269
|
.ea-button-tooltip + .ea-button-tooltip {
|
|
219
270
|
margin-left: 10px;
|
|
220
271
|
}
|
|
@@ -280,10 +331,6 @@ td {
|
|
|
280
331
|
}
|
|
281
332
|
}
|
|
282
333
|
|
|
283
|
-
.ea-number .el-input__inner {
|
|
284
|
-
text-align: left;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
334
|
.ea-tree {
|
|
288
335
|
.ea-tree-real {
|
|
289
336
|
.el-tree-node > .el-tree-node__content{
|
|
@@ -296,54 +343,11 @@ td {
|
|
|
296
343
|
}
|
|
297
344
|
}
|
|
298
345
|
|
|
299
|
-
.ea-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
.sc-left {
|
|
305
|
-
flex-grow: 1;
|
|
306
|
-
flex-shrink: 1;
|
|
307
|
-
}
|
|
308
|
-
.sc-right {
|
|
309
|
-
flex-grow: 1;
|
|
310
|
-
flex-shrink: 1;
|
|
311
|
-
}
|
|
312
|
-
.sc-center {
|
|
313
|
-
flex-grow: 0;
|
|
314
|
-
flex-shrink: 0;
|
|
315
|
-
position: relative;
|
|
316
|
-
}
|
|
317
|
-
.sc-bamboo {
|
|
318
|
-
width: 8px;
|
|
319
|
-
height: 100%;
|
|
320
|
-
border: 1px solid #DCDEE2;
|
|
321
|
-
border-top: none;
|
|
322
|
-
border-bottom: none;
|
|
323
|
-
background-color: #F8F8F9;
|
|
324
|
-
cursor: col-resize;
|
|
325
|
-
user-select: none;
|
|
326
|
-
display: flex;
|
|
327
|
-
flex-direction: column;
|
|
328
|
-
justify-content: center;
|
|
329
|
-
align-items: center;
|
|
330
|
-
margin: 0 16px;
|
|
331
|
-
.sc-texture {
|
|
332
|
-
width: 4px;
|
|
333
|
-
height: 1px;
|
|
334
|
-
background: rgba(23, 35, 61, .25);
|
|
335
|
-
margin-top: 3px;
|
|
336
|
-
}
|
|
337
|
-
}
|
|
338
|
-
.sc-on-bamboo {
|
|
339
|
-
position: absolute;
|
|
340
|
-
top: 50%;
|
|
341
|
-
left: 50%;
|
|
342
|
-
transform: translate(-50%, -50%);
|
|
343
|
-
background-color: #FFF;
|
|
344
|
-
display: flex;
|
|
345
|
-
justify-content: center;
|
|
346
|
-
align-items: center;
|
|
346
|
+
.ea-list {
|
|
347
|
+
.loading-text {
|
|
348
|
+
color: $--color-secondary-text;
|
|
349
|
+
text-align: center;
|
|
350
|
+
font-size: inherit;
|
|
347
351
|
}
|
|
348
352
|
}
|
|
349
353
|
|
|
@@ -391,12 +395,8 @@ td {
|
|
|
391
395
|
}
|
|
392
396
|
}
|
|
393
397
|
|
|
394
|
-
.ea-
|
|
395
|
-
|
|
396
|
-
color: $--color-secondary-text;
|
|
397
|
-
text-align: center;
|
|
398
|
-
font-size: inherit;
|
|
399
|
-
}
|
|
398
|
+
.ea-number .el-input__inner {
|
|
399
|
+
text-align: left;
|
|
400
400
|
}
|
|
401
401
|
|
|
402
402
|
.file-upload-dialog {
|
|
@@ -682,6 +682,30 @@ td {
|
|
|
682
682
|
color: $--color-secondary-text;
|
|
683
683
|
}
|
|
684
684
|
|
|
685
|
+
.ea-form .form-group-title {
|
|
686
|
+
position: relative;
|
|
687
|
+
height: 32px;
|
|
688
|
+
margin-bottom: 22px;
|
|
689
|
+
> span {
|
|
690
|
+
position: absolute;
|
|
691
|
+
top: 0;
|
|
692
|
+
left: 20%;
|
|
693
|
+
padding: 5px 25px;
|
|
694
|
+
background-color: #fff;
|
|
695
|
+
z-index: 1;
|
|
696
|
+
color: $--color-secondary-text;
|
|
697
|
+
}
|
|
698
|
+
&::after {
|
|
699
|
+
content: '';
|
|
700
|
+
position: absolute;
|
|
701
|
+
top: 50%;
|
|
702
|
+
left: 0;
|
|
703
|
+
width: 100%;
|
|
704
|
+
height: 0;
|
|
705
|
+
border-bottom: 1px dashed $--color-border-base;
|
|
706
|
+
}
|
|
707
|
+
}
|
|
708
|
+
|
|
685
709
|
.ea-table-modal {
|
|
686
710
|
overflow: visible;
|
|
687
711
|
right: unset;
|
|
@@ -736,30 +760,6 @@ td {
|
|
|
736
760
|
}
|
|
737
761
|
}
|
|
738
762
|
|
|
739
|
-
.ea-form .form-group-title {
|
|
740
|
-
position: relative;
|
|
741
|
-
height: 32px;
|
|
742
|
-
margin-bottom: 22px;
|
|
743
|
-
> span {
|
|
744
|
-
position: absolute;
|
|
745
|
-
top: 0;
|
|
746
|
-
left: 20%;
|
|
747
|
-
padding: 5px 25px;
|
|
748
|
-
background-color: #fff;
|
|
749
|
-
z-index: 1;
|
|
750
|
-
color: $--color-secondary-text;
|
|
751
|
-
}
|
|
752
|
-
&::after {
|
|
753
|
-
content: '';
|
|
754
|
-
position: absolute;
|
|
755
|
-
top: 50%;
|
|
756
|
-
left: 0;
|
|
757
|
-
width: 100%;
|
|
758
|
-
height: 0;
|
|
759
|
-
border-bottom: 1px dashed $--color-border-base;
|
|
760
|
-
}
|
|
761
|
-
}
|
|
762
|
-
|
|
763
763
|
.conf-header {
|
|
764
764
|
border-bottom: 1px solid #DDD;
|
|
765
765
|
padding-bottom: 10px;
|
|
@@ -772,6 +772,23 @@ td {
|
|
|
772
772
|
margin-bottom: 8px !important;
|
|
773
773
|
}
|
|
774
774
|
|
|
775
|
+
.ea-form .el-form-item__content {
|
|
776
|
+
& > .el-input-number,
|
|
777
|
+
& > .el-input,
|
|
778
|
+
& > .ea-select,
|
|
779
|
+
& > .el-select {
|
|
780
|
+
width: 100%;
|
|
781
|
+
}
|
|
782
|
+
}
|
|
783
|
+
.ea-form .el-form-item.hidden-label {
|
|
784
|
+
> .el-form-item__label {
|
|
785
|
+
display: none;
|
|
786
|
+
}
|
|
787
|
+
> .el-form-item__content {
|
|
788
|
+
width: 100%;
|
|
789
|
+
}
|
|
790
|
+
}
|
|
791
|
+
|
|
775
792
|
.ea-select-container {
|
|
776
793
|
display: flex;
|
|
777
794
|
justify-content: flex-start;
|
|
@@ -812,23 +829,6 @@ td {
|
|
|
812
829
|
}
|
|
813
830
|
}
|
|
814
831
|
|
|
815
|
-
.ea-form .el-form-item__content {
|
|
816
|
-
& > .el-input-number,
|
|
817
|
-
& > .el-input,
|
|
818
|
-
& > .ea-select,
|
|
819
|
-
& > .el-select {
|
|
820
|
-
width: 100%;
|
|
821
|
-
}
|
|
822
|
-
}
|
|
823
|
-
.ea-form .el-form-item.hidden-label {
|
|
824
|
-
> .el-form-item__label {
|
|
825
|
-
display: none;
|
|
826
|
-
}
|
|
827
|
-
> .el-form-item__content {
|
|
828
|
-
width: 100%;
|
|
829
|
-
}
|
|
830
|
-
}
|
|
831
|
-
|
|
832
832
|
.ea-switch-mini {
|
|
833
833
|
.el-switch__core {
|
|
834
834
|
width: 30px !important;
|