element-assits 0.0.45 → 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/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,54 +158,6 @@ $--color-border-extralight: #F2F6FC !default;
128
158
  transform: scaleY(0);
129
159
  }
130
160
 
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
-
179
161
  .ea-data-table {
180
162
  .edt-row {
181
163
  display: flex;
@@ -215,6 +197,75 @@ $--color-border-extralight: #F2F6FC !default;
215
197
  }
216
198
  }
217
199
 
200
+ .el-dialog.ea-modal {
201
+ &.is-closing {
202
+ margin: 0 0 50px !important;
203
+ }
204
+ &.is-fullscreen {
205
+ border-radius: 0;
206
+ margin: 0;
207
+ }
208
+ .el-dialog__header {
209
+ color: #555;
210
+ font-size: 18px;
211
+ .el-dialog__title {
212
+ color: inherit;
213
+ font-size: inherit;
214
+ }
215
+ }
216
+ }
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,57 +331,6 @@ td {
280
331
  }
281
332
  }
282
333
 
283
- .ea-split-container {
284
- display: flex;
285
- &.is-down {
286
- user-select: none;
287
- }
288
- .sc-left {
289
- flex-grow: 1;
290
- flex-shrink: 1;
291
- }
292
- .sc-right {
293
- flex-grow: 1;
294
- flex-shrink: 1;
295
- }
296
- .sc-center {
297
- flex-grow: 0;
298
- flex-shrink: 0;
299
- position: relative;
300
- }
301
- .sc-bamboo {
302
- width: 8px;
303
- height: 100%;
304
- border: 1px solid #DCDEE2;
305
- border-top: none;
306
- border-bottom: none;
307
- background-color: #F8F8F9;
308
- cursor: col-resize;
309
- user-select: none;
310
- display: flex;
311
- flex-direction: column;
312
- justify-content: center;
313
- align-items: center;
314
- margin: 0 16px;
315
- .sc-texture {
316
- width: 4px;
317
- height: 1px;
318
- background: rgba(23, 35, 61, .25);
319
- margin-top: 3px;
320
- }
321
- }
322
- .sc-on-bamboo {
323
- position: absolute;
324
- top: 50%;
325
- left: 50%;
326
- transform: translate(-50%, -50%);
327
- background-color: #FFF;
328
- display: flex;
329
- justify-content: center;
330
- align-items: center;
331
- }
332
- }
333
-
334
334
  .ea-tree {
335
335
  .ea-tree-real {
336
336
  .el-tree-node > .el-tree-node__content{
@@ -343,10 +343,6 @@ td {
343
343
  }
344
344
  }
345
345
 
346
- .ea-number .el-input__inner {
347
- text-align: left;
348
- }
349
-
350
346
  .ea-list {
351
347
  .loading-text {
352
348
  color: $--color-secondary-text;
@@ -399,6 +395,10 @@ td {
399
395
  }
400
396
  }
401
397
 
398
+ .ea-number .el-input__inner {
399
+ text-align: left;
400
+ }
401
+
402
402
  .file-upload-dialog {
403
403
  // 拖拽区域铺满
404
404
  .el-upload,
@@ -426,63 +426,6 @@ td {
426
426
  }
427
427
  }
428
428
 
429
- .ea-data-tree-body {
430
- &.ea-data-tree-body__border {
431
- border: 1px solid $--color-border-light;
432
- }
433
- }
434
-
435
- .ea-data-tree-row {
436
- height: 32px;
437
- line-height: 32px;
438
- display: flex;
439
- justify-content: flex-start;
440
- position: relative;
441
- padding-left: 20px;
442
- &.odd { background-color: #F8F8F8; }
443
- &:hover { background-color: #EBEEF5; }
444
- .ea-data-tree-cell {
445
- flex: 0 0 auto;
446
- height: 100%;
447
- font-size: 14px;
448
- box-sizing: border-box;
449
- padding: 0 8px;
450
- position: relative;
451
- overflow: hidden;
452
- text-overflow: ellipsis;
453
- white-space: nowrap;
454
- word-break: break-all;
455
- & > .ea-data-tree-checkbox {
456
- position: absolute;
457
- top: 0;
458
- }
459
- }
460
- .ea-data-tree-icon {
461
- cursor: pointer;
462
- position: absolute;
463
- height: 100%;
464
- color: #CCC;
465
- display: flex;
466
- align-items: center;
467
- z-index: 1;
468
- &:hover {
469
- color: #333;
470
- }
471
- }
472
- }
473
-
474
- .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
475
- background-color: $--color-secondary-text;
476
- border-color: $--color-secondary-text;
477
- }
478
-
479
- .ea-data-tree-empty {
480
- display: flex;
481
- justify-content: center;
482
- align-items: center;
483
- color: $--color-secondary-text;
484
- }
485
-
486
429
  .vjs-table {
487
430
  position: relative;
488
431
  overflow: hidden;
@@ -682,6 +625,63 @@ td {
682
625
  .ea-icon-more:before { content: "\e60e" }
683
626
  .eafont.ea-icon-conf.has { color: #000 }
684
627
 
628
+ .ea-data-tree-body {
629
+ &.ea-data-tree-body__border {
630
+ border: 1px solid $--color-border-light;
631
+ }
632
+ }
633
+
634
+ .ea-data-tree-row {
635
+ height: 32px;
636
+ line-height: 32px;
637
+ display: flex;
638
+ justify-content: flex-start;
639
+ position: relative;
640
+ padding-left: 20px;
641
+ &.odd { background-color: #F8F8F8; }
642
+ &:hover { background-color: #EBEEF5; }
643
+ .ea-data-tree-cell {
644
+ flex: 0 0 auto;
645
+ height: 100%;
646
+ font-size: 14px;
647
+ box-sizing: border-box;
648
+ padding: 0 8px;
649
+ position: relative;
650
+ overflow: hidden;
651
+ text-overflow: ellipsis;
652
+ white-space: nowrap;
653
+ word-break: break-all;
654
+ & > .ea-data-tree-checkbox {
655
+ position: absolute;
656
+ top: 0;
657
+ }
658
+ }
659
+ .ea-data-tree-icon {
660
+ cursor: pointer;
661
+ position: absolute;
662
+ height: 100%;
663
+ color: #CCC;
664
+ display: flex;
665
+ align-items: center;
666
+ z-index: 1;
667
+ &:hover {
668
+ color: #333;
669
+ }
670
+ }
671
+ }
672
+
673
+ .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
674
+ background-color: $--color-secondary-text;
675
+ border-color: $--color-secondary-text;
676
+ }
677
+
678
+ .ea-data-tree-empty {
679
+ display: flex;
680
+ justify-content: center;
681
+ align-items: center;
682
+ color: $--color-secondary-text;
683
+ }
684
+
685
685
  .ea-form .form-group-title {
686
686
  position: relative;
687
687
  height: 32px;
@@ -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;
@@ -826,20 +843,3 @@ td {
826
843
  margin-left: -13px;
827
844
  }
828
845
  }
829
-
830
- .ea-form .el-form-item__content {
831
- & > .el-input-number,
832
- & > .el-input,
833
- & > .ea-select,
834
- & > .el-select {
835
- width: 100%;
836
- }
837
- }
838
- .ea-form .el-form-item.hidden-label {
839
- > .el-form-item__label {
840
- display: none;
841
- }
842
- > .el-form-item__content {
843
- width: 100%;
844
- }
845
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.45",
3
+ "version": "0.0.47",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",