element-assits 0.0.85 → 0.0.86

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.
Files changed (4) hide show
  1. package/README.md +6 -1
  2. package/lib/index.js +1464 -1438
  3. package/lib/style.scss +349 -349
  4. package/package.json +1 -1
package/lib/style.scss CHANGED
@@ -12,140 +12,44 @@ $--color-border-light: #E4E7ED !default;
12
12
  $--color-border-lighter: #EBEEF5 !default;
13
13
  $--color-border-extralight: #F2F6FC !default;
14
14
  $--background-color-base: #F5F7FA !default;
15
- // table
16
- .ea-table {
17
- // 表格头部样式美化
18
- .el-table {
19
- transition: opacity 0.28s;
20
- th {
21
- background-color: $--background-color-base;
22
- color: $--color-primary-text;
23
- .cell {
24
- min-height: 30px;
25
- display: flex;
26
- justify-content: flex-start;
27
- align-items: center;
28
- }
29
- &.is-center .cell { justify-content: center }
30
- &.is-right .cell { justify-content: flex-end }
31
- }
32
- td, th {
33
- .cell {
34
- line-height: 1.2;
35
- }
36
- }
37
- &.el-table--small {
38
- td, th {
39
- height: 50px;
40
- }
41
- }
42
- &.is-dense {
43
- td, th {
44
- height: 32px;
45
- padding: 2px 0;
46
- .el-button {
47
- padding-top: 0;
48
- padding-bottom: 0;
49
- }
50
- }
51
- }
52
- &.is-unready {
53
- opacity: 0;
54
- .operation-column > div {
55
- height: 32px;
56
- overflow: hidden;
57
- }
58
- &.is-dense {
59
- .operation-column > div {
60
- height: 24px;
61
- }
62
- }
63
- }
15
+ .ea-select {
16
+ display: inline-block;
17
+ position: relative;
18
+ .el-select {
19
+ width: 100%;
64
20
  }
65
- // 列的更多菜单项
66
- .theader-th-cell {
67
- .cell-icon-menu {
68
- position: absolute;
69
- top: 50%;
70
- right: 4px;
71
- transform: rotate(90deg) translateX(-50%);
72
- color: $--color-placeholder-text;
73
- cursor: pointer;
74
- padding: 4px;
75
- border-radius: 2px;
76
- &:hover {
77
- color: $--color-primary-text;
78
- background-color: $--color-border-light;
79
- }
80
- }
21
+ .async-loading.el-icon-loading {
22
+ position: absolute;
23
+ top: 10px;
24
+ right: 28px;
25
+ color: #999;
81
26
  }
82
- // 表格底部
83
- .ea-table__footer {
27
+ .is-collapse-tags .el-select__tags > span > .el-tag:first-child {
28
+ min-width: 36px;
29
+ max-width: calc(100% - 80px);
30
+ }
31
+ }
32
+ .ea-select-popover {
33
+ .el-select-dropdown__item {
84
34
  display: flex;
85
35
  justify-content: space-between;
86
- transition: opacity 0.28s;
87
- .ea-table__footer-right {
88
- margin-left: auto;
89
- padding-right: 0;
90
- }
91
- > * {
92
- margin-top: 12px;
36
+ .select-item-value {
37
+ overflow: hidden;
38
+ text-overflow: ellipsis;
93
39
  }
94
- &.is-unready {
95
- opacity: 0;
40
+ .select-item-desc {
41
+ overflow: hidden;
42
+ text-overflow: ellipsis;
43
+ color: #8492a6;
44
+ margin-left: 8px;
96
45
  }
97
46
  }
98
-
99
- .column-transition-active {
100
- opacity: 0.33;
101
- }
102
-
103
- .el-button > i {
104
- min-width: 12px;
105
- }
106
-
107
- .more-btn > i{
108
- transform: rotate(-90deg);
109
- }
110
- }
111
-
112
- // table - popover
113
- .el-popover.ea-popover-no-padding {
114
- padding: 8px 0;
115
- min-width: 100px;
116
- &.dense {
117
- margin-top: 0px;
118
- margin-bottom: 0px;
119
- min-width: 70px;
120
- }
121
- }
122
-
123
- .more-btn-panel {
124
- &__item {
125
- &:hover {
126
- background-color: $--color-border-lighter;
127
- }
128
- .el-button {
129
- padding: 8px 12px;
130
- width: 100%;
131
- text-align: left;
132
- }
47
+ .tools {
48
+ padding: 0 20px;
49
+ margin-bottom: -5px;
133
50
  }
134
51
  }
135
52
 
136
- .ea-zoom-in-top-enter-active,
137
- .ea-zoom-in-top-leave-active {
138
- opacity: 1;
139
- transform: scaleY(1);
140
- transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
141
- transform-origin: center top;
142
- }
143
- .ea-zoom-in-top-enter,
144
- .ea-zoom-in-top-leave-active {
145
- opacity: 0;
146
- transform: scaleY(0);
147
- }
148
-
149
53
  .ea-data-table {
150
54
  .edt-row {
151
55
  display: flex;
@@ -185,44 +89,6 @@ $--background-color-base: #F5F7FA !default;
185
89
  }
186
90
  }
187
91
 
188
- .ea-select {
189
- display: inline-block;
190
- position: relative;
191
- .el-select {
192
- width: 100%;
193
- }
194
- .async-loading.el-icon-loading {
195
- position: absolute;
196
- top: 10px;
197
- right: 28px;
198
- color: #999;
199
- }
200
- .is-collapse-tags .el-select__tags > span > .el-tag:first-child {
201
- min-width: 36px;
202
- max-width: calc(100% - 80px);
203
- }
204
- }
205
- .ea-select-popover {
206
- .el-select-dropdown__item {
207
- display: flex;
208
- justify-content: space-between;
209
- .select-item-value {
210
- overflow: hidden;
211
- text-overflow: ellipsis;
212
- }
213
- .select-item-desc {
214
- overflow: hidden;
215
- text-overflow: ellipsis;
216
- color: #8492a6;
217
- margin-left: 8px;
218
- }
219
- }
220
- .tools {
221
- padding: 0 20px;
222
- margin-bottom: -5px;
223
- }
224
- }
225
-
226
92
  .ea-button-tooltip + .ea-button-tooltip {
227
93
  margin-left: 10px;
228
94
  }
@@ -306,18 +172,6 @@ td {
306
172
  }
307
173
  }
308
174
 
309
- .ea-number .el-input__inner {
310
- text-align: left;
311
- }
312
-
313
- .ea-list {
314
- .loading-text {
315
- color: $--color-secondary-text;
316
- text-align: center;
317
- font-size: inherit;
318
- }
319
- }
320
-
321
175
  .ea-split-container {
322
176
  display: flex;
323
177
  &.is-down {
@@ -369,41 +223,6 @@ td {
369
223
  }
370
224
  }
371
225
 
372
- .ea-tree {
373
- .ea-tree__main {
374
- margin-top: 18px;
375
- .ea-tree__header {
376
- height: 50px;
377
- padding-left: 24px;
378
- padding-right: 14px;
379
- font-size: 12px;
380
- display: flex;
381
- align-items: center;
382
- justify-content: space-between;
383
- background-color: $--background-color-base;
384
- .ea-tree__header__text {
385
- font-weight: bold;
386
- }
387
- }
388
- }
389
- .ea-tree-real {
390
- .el-tree-node.is-current > .el-tree-node__content {
391
- color: $--color-primary;
392
- }
393
- }
394
- &.ea-tree--border {
395
- .ea-tree__main {
396
- border: 1px solid $--color-border-lighter;
397
- }
398
- .ea-tree__header {
399
- border-bottom: 1px solid $--color-border-lighter;
400
- }
401
- .ea-tree-real {
402
- margin: 10px 0;
403
- }
404
- }
405
- }
406
-
407
226
  .ea-desc {
408
227
  font-size: 14px;
409
228
  &__title {
@@ -448,21 +267,151 @@ td {
448
267
  }
449
268
  }
450
269
 
451
- .vjs-table {
452
- position: relative;
453
- overflow: hidden;
454
- }
455
- .vjs-header {
456
- position: absolute;
457
- top: 0;
458
- border: 1px solid $--color-border-light;
459
- border-bottom: 0;
460
- }
461
- .vjs-body {
462
- border: 1px solid $--color-border-light;
270
+ .ea-list {
271
+ .loading-text {
272
+ color: $--color-secondary-text;
273
+ text-align: center;
274
+ font-size: inherit;
275
+ }
463
276
  }
464
277
 
465
- .vjs-row {
278
+ .ea-tree {
279
+ .ea-tree__main {
280
+ margin-top: 18px;
281
+ .ea-tree__header {
282
+ height: 50px;
283
+ padding-left: 24px;
284
+ padding-right: 14px;
285
+ font-size: 12px;
286
+ display: flex;
287
+ align-items: center;
288
+ justify-content: space-between;
289
+ background-color: $--background-color-base;
290
+ .ea-tree__header__text {
291
+ font-weight: bold;
292
+ }
293
+ }
294
+ }
295
+ .ea-tree-real {
296
+ .el-tree-node.is-current > .el-tree-node__content {
297
+ color: $--color-primary;
298
+ }
299
+ }
300
+ &.ea-tree--border {
301
+ .ea-tree__main {
302
+ border: 1px solid $--color-border-lighter;
303
+ }
304
+ .ea-tree__header {
305
+ border-bottom: 1px solid $--color-border-lighter;
306
+ }
307
+ .ea-tree-real {
308
+ margin: 10px 0;
309
+ }
310
+ }
311
+ }
312
+
313
+ .ea-number .el-input__inner {
314
+ text-align: left;
315
+ }
316
+
317
+ .file-upload-dialog {
318
+ // 拖拽区域铺满
319
+ .el-upload,
320
+ .el-upload .el-upload-dragger {
321
+ width: 100%;
322
+ }
323
+ // 文件列表项边框
324
+ .el-upload-list {
325
+ .el-upload-list__item {
326
+ border: 1px dashed #aaa;
327
+ .el-icon-close {
328
+ display: inline-block;
329
+ }
330
+ }
331
+ }
332
+ // 清除文件列表变动过渡动画
333
+ .el-list-enter,
334
+ .el-list-enter-active,
335
+ .el-list-enter-to,
336
+ .el-list-leave,
337
+ .el-list-leave-active,
338
+ .el-list-leave-to {
339
+ -webkit-transition: none !important;
340
+ transition: none !important;
341
+ }
342
+ }
343
+
344
+ .ea-data-tree-body {
345
+ &.ea-data-tree-body__border {
346
+ border: 1px solid $--color-border-light;
347
+ }
348
+ }
349
+
350
+ .ea-data-tree-row {
351
+ display: flex;
352
+ justify-content: flex-start;
353
+ position: relative;
354
+ padding-left: 20px;
355
+ box-sizing: border-box;
356
+ &.odd { background-color: #F8F8F8; }
357
+ &:hover { background-color: #EBEEF5; }
358
+ .ea-data-tree-cell {
359
+ flex: 0 0 auto;
360
+ height: 100%;
361
+ font-size: 14px;
362
+ box-sizing: border-box;
363
+ padding: 0 8px;
364
+ position: relative;
365
+ overflow: hidden;
366
+ text-overflow: ellipsis;
367
+ white-space: nowrap;
368
+ word-break: break-all;
369
+ & > .ea-data-tree-checkbox {
370
+ position: absolute;
371
+ top: 0;
372
+ }
373
+ }
374
+ .ea-data-tree-icon {
375
+ cursor: pointer;
376
+ position: absolute;
377
+ height: 100%;
378
+ color: #CCC;
379
+ display: flex;
380
+ align-items: center;
381
+ z-index: 1;
382
+ &:hover {
383
+ color: #333;
384
+ }
385
+ }
386
+ }
387
+
388
+ .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
389
+ background-color: $--color-secondary-text;
390
+ border-color: $--color-secondary-text;
391
+ }
392
+
393
+ .ea-data-tree-empty {
394
+ display: flex;
395
+ justify-content: center;
396
+ align-items: center;
397
+ color: $--color-secondary-text;
398
+ }
399
+
400
+ .vjs-table {
401
+ position: relative;
402
+ overflow: hidden;
403
+ }
404
+ .vjs-header {
405
+ position: absolute;
406
+ top: 0;
407
+ border: 1px solid $--color-border-light;
408
+ border-bottom: 0;
409
+ }
410
+ .vjs-body {
411
+ border: 1px solid $--color-border-light;
412
+ }
413
+
414
+ .vjs-row {
466
415
  height: 32px;
467
416
  line-height: 32px;
468
417
  display: flex;
@@ -647,87 +596,192 @@ td {
647
596
  .ea-icon-more:before { content: "\e60e" }
648
597
  .eafont.ea-icon-conf.has { color: #000 }
649
598
 
650
- .file-upload-dialog {
651
- // 拖拽区域铺满
652
- .el-upload,
653
- .el-upload .el-upload-dragger {
654
- width: 100%;
599
+ // table
600
+ .ea-table {
601
+ // 表格头部样式美化
602
+ .el-table {
603
+ transition: opacity 0.28s;
604
+ th {
605
+ background-color: $--background-color-base;
606
+ color: $--color-primary-text;
607
+ .cell {
608
+ min-height: 30px;
609
+ display: flex;
610
+ justify-content: flex-start;
611
+ align-items: center;
612
+ }
613
+ &.is-center .cell { justify-content: center }
614
+ &.is-right .cell { justify-content: flex-end }
615
+ }
616
+ td, th {
617
+ .cell {
618
+ line-height: 1.2;
619
+ }
620
+ }
621
+ &.el-table--small {
622
+ td, th {
623
+ height: 50px;
624
+ }
625
+ }
626
+ &.is-dense {
627
+ td, th {
628
+ height: 32px;
629
+ padding: 2px 0;
630
+ .el-button {
631
+ padding-top: 0;
632
+ padding-bottom: 0;
633
+ }
634
+ }
635
+ }
636
+ &.is-unready {
637
+ opacity: 0;
638
+ .operation-column > div {
639
+ height: 32px;
640
+ overflow: hidden;
641
+ }
642
+ &.is-dense {
643
+ .operation-column > div {
644
+ height: 24px;
645
+ }
646
+ }
647
+ }
655
648
  }
656
- // 文件列表项边框
657
- .el-upload-list {
658
- .el-upload-list__item {
659
- border: 1px dashed #aaa;
660
- .el-icon-close {
661
- display: inline-block;
649
+ // 列的更多菜单项
650
+ .theader-th-cell {
651
+ .cell-icon-menu {
652
+ position: absolute;
653
+ top: 50%;
654
+ right: 4px;
655
+ transform: rotate(90deg) translateX(-50%);
656
+ color: $--color-placeholder-text;
657
+ cursor: pointer;
658
+ padding: 4px;
659
+ border-radius: 2px;
660
+ &:hover {
661
+ color: $--color-primary-text;
662
+ background-color: $--color-border-light;
662
663
  }
663
664
  }
664
665
  }
665
- // 清除文件列表变动过渡动画
666
- .el-list-enter,
667
- .el-list-enter-active,
668
- .el-list-enter-to,
669
- .el-list-leave,
670
- .el-list-leave-active,
671
- .el-list-leave-to {
672
- -webkit-transition: none !important;
673
- transition: none !important;
666
+ // 表格底部
667
+ .ea-table__footer {
668
+ display: flex;
669
+ justify-content: space-between;
670
+ transition: opacity 0.28s;
671
+ .ea-table__footer-right {
672
+ margin-left: auto;
673
+ padding-right: 0;
674
+ }
675
+ > * {
676
+ margin-top: 12px;
677
+ }
678
+ &.is-unready {
679
+ opacity: 0;
680
+ }
681
+ }
682
+
683
+ .column-transition-active {
684
+ opacity: 0.33;
685
+ }
686
+
687
+ .el-button > i {
688
+ min-width: 12px;
689
+ }
690
+
691
+ .more-btn > i{
692
+ transform: rotate(-90deg);
674
693
  }
675
694
  }
676
695
 
677
- .ea-data-tree-body {
678
- &.ea-data-tree-body__border {
679
- border: 1px solid $--color-border-light;
696
+ // table - popover
697
+ .el-popover.ea-popover-no-padding {
698
+ padding: 8px 0;
699
+ min-width: 100px;
700
+ &.dense {
701
+ margin-top: 0px;
702
+ margin-bottom: 0px;
703
+ min-width: 70px;
680
704
  }
681
705
  }
682
706
 
683
- .ea-data-tree-row {
684
- display: flex;
685
- justify-content: flex-start;
686
- position: relative;
687
- padding-left: 20px;
688
- box-sizing: border-box;
689
- &.odd { background-color: #F8F8F8; }
690
- &:hover { background-color: #EBEEF5; }
691
- .ea-data-tree-cell {
692
- flex: 0 0 auto;
693
- height: 100%;
694
- font-size: 14px;
695
- box-sizing: border-box;
696
- padding: 0 8px;
697
- position: relative;
698
- overflow: hidden;
699
- text-overflow: ellipsis;
700
- white-space: nowrap;
701
- word-break: break-all;
702
- & > .ea-data-tree-checkbox {
703
- position: absolute;
704
- top: 0;
707
+ .more-btn-panel {
708
+ &__item {
709
+ &:hover {
710
+ background-color: $--color-border-lighter;
711
+ }
712
+ .el-button {
713
+ padding: 8px 12px;
714
+ width: 100%;
715
+ text-align: left;
705
716
  }
706
717
  }
707
- .ea-data-tree-icon {
708
- cursor: pointer;
718
+ }
719
+
720
+ .ea-zoom-in-top-enter-active,
721
+ .ea-zoom-in-top-leave-active {
722
+ opacity: 1;
723
+ transform: scaleY(1);
724
+ transition: transform 300ms cubic-bezier(0.23, 1, 0.32, 1), opacity 300ms cubic-bezier(0.23, 1, 0.32, 1);
725
+ transform-origin: center top;
726
+ }
727
+ .ea-zoom-in-top-enter,
728
+ .ea-zoom-in-top-leave-active {
729
+ opacity: 0;
730
+ transform: scaleY(0);
731
+ }
732
+
733
+ .ea-form .form-group-title {
734
+ position: relative;
735
+ height: 32px;
736
+ margin-bottom: 22px;
737
+ > span {
709
738
  position: absolute;
710
- height: 100%;
711
- color: #CCC;
712
- display: flex;
713
- align-items: center;
739
+ top: 0;
740
+ left: 20%;
741
+ padding: 5px 25px;
742
+ background-color: #fff;
714
743
  z-index: 1;
715
- &:hover {
716
- color: #333;
717
- }
744
+ color: $--color-secondary-text;
745
+ }
746
+ &::after {
747
+ content: '';
748
+ position: absolute;
749
+ top: 50%;
750
+ left: 0;
751
+ width: 100%;
752
+ height: 0;
753
+ border-bottom: 1px dashed $--color-border-base;
718
754
  }
719
755
  }
720
756
 
721
- .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
722
- background-color: $--color-secondary-text;
723
- border-color: $--color-secondary-text;
757
+ .conf-header {
758
+ border-bottom: 1px solid #DDD;
759
+ padding-bottom: 10px;
760
+ margin-bottom: 10px;
761
+ }
762
+ .conf-body {
763
+ width: 300px;
764
+ }
765
+ .dense-much .el-form-item {
766
+ margin-bottom: 8px !important;
724
767
  }
725
768
 
726
- .ea-data-tree-empty {
727
- display: flex;
728
- justify-content: center;
729
- align-items: center;
730
- color: $--color-secondary-text;
769
+ .ea-form .el-form-item__content {
770
+ & > .el-input-number,
771
+ & > .el-input,
772
+ & > .ea-select,
773
+ & > .el-date-editor,
774
+ & > .el-select {
775
+ width: 100%;
776
+ }
777
+ }
778
+ .ea-form .el-form-item.hidden-label {
779
+ > .el-form-item__label {
780
+ display: none;
781
+ }
782
+ > .el-form-item__content {
783
+ width: 100%;
784
+ }
731
785
  }
732
786
 
733
787
  .ea-table-modal {
@@ -777,42 +831,21 @@ td {
777
831
  }
778
832
  }
779
833
 
780
- .ea-form .form-group-title {
781
- position: relative;
782
- height: 32px;
783
- margin-bottom: 22px;
784
- > span {
785
- position: absolute;
786
- top: 0;
787
- left: 20%;
788
- padding: 5px 25px;
789
- background-color: #fff;
790
- z-index: 1;
791
- color: $--color-secondary-text;
834
+ .ea-switch-mini {
835
+ .el-switch__core {
836
+ width: 30px !important;
837
+ height: 16px;
838
+ &::after {
839
+ width: 12px;
840
+ height: 12px;
841
+ left: 2px;
842
+ }
792
843
  }
793
- &::after {
794
- content: '';
795
- position: absolute;
796
- top: 50%;
797
- left: 0;
798
- width: 100%;
799
- height: 0;
800
- border-bottom: 1px dashed $--color-border-base;
844
+ &.is-checked .el-switch__core::after {
845
+ margin-left: -13px;
801
846
  }
802
847
  }
803
848
 
804
- .conf-header {
805
- border-bottom: 1px solid #DDD;
806
- padding-bottom: 10px;
807
- margin-bottom: 10px;
808
- }
809
- .conf-body {
810
- width: 300px;
811
- }
812
- .dense-much .el-form-item {
813
- margin-bottom: 8px !important;
814
- }
815
-
816
849
  .ea-select-container {
817
850
  display: flex;
818
851
  justify-content: flex-start;
@@ -852,36 +885,3 @@ td {
852
885
  }
853
886
  }
854
887
  }
855
-
856
- .ea-switch-mini {
857
- .el-switch__core {
858
- width: 30px !important;
859
- height: 16px;
860
- &::after {
861
- width: 12px;
862
- height: 12px;
863
- left: 2px;
864
- }
865
- }
866
- &.is-checked .el-switch__core::after {
867
- margin-left: -13px;
868
- }
869
- }
870
-
871
- .ea-form .el-form-item__content {
872
- & > .el-input-number,
873
- & > .el-input,
874
- & > .ea-select,
875
- & > .el-date-editor,
876
- & > .el-select {
877
- width: 100%;
878
- }
879
- }
880
- .ea-form .el-form-item.hidden-label {
881
- > .el-form-item__label {
882
- display: none;
883
- }
884
- > .el-form-item__content {
885
- width: 100%;
886
- }
887
- }