element-assits 0.0.37 → 0.0.38
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 +10 -10
- package/lib/style.scss +66 -66
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -3499,16 +3499,16 @@ function Ks(r, n, i, o = 0, f = [], d = [], v = !0, m, w) {
|
|
|
3499
3499
|
r.type === "array" && Gt(r.items) && (D.__state.hasChildren = !0, D.__state.isExpanded = !0, Ks(r.items, n, "items", o, f, [...d], !1, r, D));
|
|
3500
3500
|
return f;
|
|
3501
3501
|
}
|
|
3502
|
-
function yC(r, n = {}) {
|
|
3503
|
-
return r.filter((
|
|
3504
|
-
const
|
|
3505
|
-
const
|
|
3506
|
-
return
|
|
3502
|
+
function yC(r, n, i = {}) {
|
|
3503
|
+
return r.filter((o) => !o.__state.isTemp && o.prop).forEach((o) => {
|
|
3504
|
+
const f = o.__state.prefix.split(".").reduce((v, m) => {
|
|
3505
|
+
const w = r.find((S) => S.__state.uuid === m);
|
|
3506
|
+
return v.push(w.prop), w.type === "object" && v.push("properties"), v;
|
|
3507
3507
|
}, []);
|
|
3508
|
-
|
|
3509
|
-
const
|
|
3510
|
-
|
|
3511
|
-
}), n
|
|
3508
|
+
f[f.length - 1] === "properties" && f.pop(), Vw(i, f.join("."), Jn(o, ["prop", "required", "__state"])), f.pop(), f.pop();
|
|
3509
|
+
const d = _n(i, f);
|
|
3510
|
+
o.required && d && (d.required = d.required || [], d.required.push(o.prop));
|
|
3511
|
+
}), i[n];
|
|
3512
3512
|
}
|
|
3513
3513
|
function bC(r, n) {
|
|
3514
3514
|
const i = r.split(".").reduce((o, f) => {
|
|
@@ -7527,7 +7527,7 @@ const MC = {
|
|
|
7527
7527
|
return this.rawList.every((r) => r.prop !== void 0);
|
|
7528
7528
|
},
|
|
7529
7529
|
getData() {
|
|
7530
|
-
return yC(this.rawList);
|
|
7530
|
+
return yC(this.rawList, this.rootAlias);
|
|
7531
7531
|
},
|
|
7532
7532
|
getChecked(r) {
|
|
7533
7533
|
const n = this.rawList.filter((i) => !(i.__state.isRoot || i.__state.virtualArrayItems || i.__state.isTemp) && (i.__state.checked || (r ? i.__state.indeterminate : !1)));
|
package/lib/style.scss
CHANGED
|
@@ -280,6 +280,26 @@ td {
|
|
|
280
280
|
}
|
|
281
281
|
}
|
|
282
282
|
|
|
283
|
+
.ea-list {
|
|
284
|
+
.loading-text {
|
|
285
|
+
color: $--color-secondary-text;
|
|
286
|
+
text-align: center;
|
|
287
|
+
font-size: inherit;
|
|
288
|
+
}
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
.ea-tree {
|
|
292
|
+
.ea-tree-real {
|
|
293
|
+
.el-tree-node > .el-tree-node__content{
|
|
294
|
+
border-radius: 4px;
|
|
295
|
+
}
|
|
296
|
+
.el-tree-node.is-current > .el-tree-node__content {
|
|
297
|
+
color: $--color-primary;
|
|
298
|
+
background-color: rgba($--color-primary, 0.1);
|
|
299
|
+
}
|
|
300
|
+
}
|
|
301
|
+
}
|
|
302
|
+
|
|
283
303
|
.ea-split-container {
|
|
284
304
|
display: flex;
|
|
285
305
|
&.is-down {
|
|
@@ -317,30 +337,6 @@ td {
|
|
|
317
337
|
}
|
|
318
338
|
}
|
|
319
339
|
|
|
320
|
-
.ea-list {
|
|
321
|
-
.loading-text {
|
|
322
|
-
color: $--color-secondary-text;
|
|
323
|
-
text-align: center;
|
|
324
|
-
font-size: inherit;
|
|
325
|
-
}
|
|
326
|
-
}
|
|
327
|
-
|
|
328
|
-
.ea-number .el-input__inner {
|
|
329
|
-
text-align: left;
|
|
330
|
-
}
|
|
331
|
-
|
|
332
|
-
.ea-tree {
|
|
333
|
-
.ea-tree-real {
|
|
334
|
-
.el-tree-node > .el-tree-node__content{
|
|
335
|
-
border-radius: 4px;
|
|
336
|
-
}
|
|
337
|
-
.el-tree-node.is-current > .el-tree-node__content {
|
|
338
|
-
color: $--color-primary;
|
|
339
|
-
background-color: rgba($--color-primary, 0.1);
|
|
340
|
-
}
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
|
|
344
340
|
.ea-desc {
|
|
345
341
|
font-size: 14px;
|
|
346
342
|
&__title {
|
|
@@ -385,6 +381,37 @@ td {
|
|
|
385
381
|
}
|
|
386
382
|
}
|
|
387
383
|
|
|
384
|
+
.ea-number .el-input__inner {
|
|
385
|
+
text-align: left;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
.file-upload-dialog {
|
|
389
|
+
// 拖拽区域铺满
|
|
390
|
+
.el-upload,
|
|
391
|
+
.el-upload .el-upload-dragger {
|
|
392
|
+
width: 100%;
|
|
393
|
+
}
|
|
394
|
+
// 文件列表项边框
|
|
395
|
+
.el-upload-list {
|
|
396
|
+
.el-upload-list__item {
|
|
397
|
+
border: 1px dashed #aaa;
|
|
398
|
+
.el-icon-close {
|
|
399
|
+
display: inline-block;
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
// 清除文件列表变动过渡动画
|
|
404
|
+
.el-list-enter,
|
|
405
|
+
.el-list-enter-active,
|
|
406
|
+
.el-list-enter-to,
|
|
407
|
+
.el-list-leave,
|
|
408
|
+
.el-list-leave-active,
|
|
409
|
+
.el-list-leave-to {
|
|
410
|
+
-webkit-transition: none !important;
|
|
411
|
+
transition: none !important;
|
|
412
|
+
}
|
|
413
|
+
}
|
|
414
|
+
|
|
388
415
|
.vjs-table {
|
|
389
416
|
position: relative;
|
|
390
417
|
overflow: hidden;
|
|
@@ -584,33 +611,6 @@ td {
|
|
|
584
611
|
.ea-icon-more:before { content: "\e60e" }
|
|
585
612
|
.eafont.ea-icon-conf.has { color: #000 }
|
|
586
613
|
|
|
587
|
-
.file-upload-dialog {
|
|
588
|
-
// 拖拽区域铺满
|
|
589
|
-
.el-upload,
|
|
590
|
-
.el-upload .el-upload-dragger {
|
|
591
|
-
width: 100%;
|
|
592
|
-
}
|
|
593
|
-
// 文件列表项边框
|
|
594
|
-
.el-upload-list {
|
|
595
|
-
.el-upload-list__item {
|
|
596
|
-
border: 1px dashed #aaa;
|
|
597
|
-
.el-icon-close {
|
|
598
|
-
display: inline-block;
|
|
599
|
-
}
|
|
600
|
-
}
|
|
601
|
-
}
|
|
602
|
-
// 清除文件列表变动过渡动画
|
|
603
|
-
.el-list-enter,
|
|
604
|
-
.el-list-enter-active,
|
|
605
|
-
.el-list-enter-to,
|
|
606
|
-
.el-list-leave,
|
|
607
|
-
.el-list-leave-active,
|
|
608
|
-
.el-list-leave-to {
|
|
609
|
-
-webkit-transition: none !important;
|
|
610
|
-
transition: none !important;
|
|
611
|
-
}
|
|
612
|
-
}
|
|
613
|
-
|
|
614
614
|
.ea-form .form-group-title {
|
|
615
615
|
position: relative;
|
|
616
616
|
height: 32px;
|
|
@@ -718,21 +718,6 @@ td {
|
|
|
718
718
|
}
|
|
719
719
|
}
|
|
720
720
|
|
|
721
|
-
.ea-switch-mini {
|
|
722
|
-
.el-switch__core {
|
|
723
|
-
width: 30px !important;
|
|
724
|
-
height: 16px;
|
|
725
|
-
&::after {
|
|
726
|
-
width: 12px;
|
|
727
|
-
height: 12px;
|
|
728
|
-
left: 2px;
|
|
729
|
-
}
|
|
730
|
-
}
|
|
731
|
-
&.is-checked .el-switch__core::after {
|
|
732
|
-
margin-left: -13px;
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
|
|
736
721
|
.ea-select-container {
|
|
737
722
|
display: flex;
|
|
738
723
|
justify-content: flex-start;
|
|
@@ -772,3 +757,18 @@ td {
|
|
|
772
757
|
}
|
|
773
758
|
}
|
|
774
759
|
}
|
|
760
|
+
|
|
761
|
+
.ea-switch-mini {
|
|
762
|
+
.el-switch__core {
|
|
763
|
+
width: 30px !important;
|
|
764
|
+
height: 16px;
|
|
765
|
+
&::after {
|
|
766
|
+
width: 12px;
|
|
767
|
+
height: 12px;
|
|
768
|
+
left: 2px;
|
|
769
|
+
}
|
|
770
|
+
}
|
|
771
|
+
&.is-checked .el-switch__core::after {
|
|
772
|
+
margin-left: -13px;
|
|
773
|
+
}
|
|
774
|
+
}
|