element-assits 0.0.47 → 0.0.48

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 CHANGED
@@ -2130,8 +2130,9 @@ function $u(r = 3) {
2130
2130
  };
2131
2131
  }
2132
2132
  function Cu(r) {
2133
- let n = this.$slots["row-menu"], i = this.$scopedSlots["row-menu"];
2134
- return n = Array.isArray(n) ? n : n && n() || [], i = Array.isArray(i) ? i : i && i(r) || [], [...n, ...i];
2133
+ const i = (this.$root.constructor.version.match(/\.(\d+)\./) || [])[1];
2134
+ let o = this.$slots["row-menu"], u = this.$scopedSlots["row-menu"];
2135
+ return o = Array.isArray(o) ? o : o && o() || [], u = Array.isArray(u) ? u : u && u(r) || [], i >= 6 ? u : [...o, ...u];
2135
2136
  }
2136
2137
  let Gs, rf = null, Su = null;
2137
2138
  function sf() {
@@ -2681,7 +2682,7 @@ function _$(r) {
2681
2682
  }
2682
2683
  function Lt(r, n) {
2683
2684
  const i = document.createElement("div");
2684
- i.style.position = "absolute", g$(i, n), r.style.userSelect = "none", r.appendChild(i);
2685
+ i.style.position = "absolute", g$(i, n), r.appendChild(i);
2685
2686
  let o = r.offsetLeft, u = r.offsetTop, d = r.offsetWidth, v = r.offsetHeight, m = !1, b, S;
2686
2687
  const T = () => {
2687
2688
  m = !1, b = void 0, S = void 0, o = r.offsetLeft, u = r.offsetTop, d = r.offsetWidth, v = r.offsetHeight;
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
  // 表格头部样式美化
@@ -215,57 +185,6 @@ $--color-border-extralight: #F2F6FC !default;
215
185
  }
216
186
  }
217
187
 
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
-
269
188
  .ea-button-tooltip + .ea-button-tooltip {
270
189
  margin-left: 10px;
271
190
  }
@@ -331,6 +250,36 @@ td {
331
250
  }
332
251
  }
333
252
 
253
+ .ea-select {
254
+ display: inline-block;
255
+ position: relative;
256
+ .el-select {
257
+ width: 100%;
258
+ }
259
+ .async-loading.el-icon-loading {
260
+ position: absolute;
261
+ top: 10px;
262
+ right: 28px;
263
+ color: #999;
264
+ }
265
+ }
266
+ .ea-select-popover {
267
+ .el-select-dropdown__item {
268
+ display: flex;
269
+ justify-content: space-between;
270
+ .select-item-value {
271
+ overflow: hidden;
272
+ text-overflow: ellipsis;
273
+ }
274
+ .select-item-desc {
275
+ overflow: hidden;
276
+ text-overflow: ellipsis;
277
+ color: #8492a6;
278
+ margin-left: 8px;
279
+ }
280
+ }
281
+ }
282
+
334
283
  .ea-tree {
335
284
  .ea-tree-real {
336
285
  .el-tree-node > .el-tree-node__content{
@@ -343,6 +292,61 @@ td {
343
292
  }
344
293
  }
345
294
 
295
+ .ea-split-container {
296
+ display: flex;
297
+ &.is-down {
298
+ user-select: none;
299
+ }
300
+ .sc-left {
301
+ flex-grow: 1;
302
+ flex-shrink: 1;
303
+ }
304
+ .sc-right {
305
+ flex-grow: 1;
306
+ flex-shrink: 1;
307
+ }
308
+ .sc-center {
309
+ flex-grow: 0;
310
+ flex-shrink: 0;
311
+ position: relative;
312
+ }
313
+ .sc-bamboo {
314
+ width: 8px;
315
+ height: 100%;
316
+ border: 1px solid #DCDEE2;
317
+ border-top: none;
318
+ border-bottom: none;
319
+ background-color: #F8F8F9;
320
+ cursor: col-resize;
321
+ user-select: none;
322
+ display: flex;
323
+ flex-direction: column;
324
+ justify-content: center;
325
+ align-items: center;
326
+ margin: 0 16px;
327
+ .sc-texture {
328
+ width: 4px;
329
+ height: 1px;
330
+ background: rgba(23, 35, 61, .25);
331
+ margin-top: 3px;
332
+ }
333
+ }
334
+ .sc-on-bamboo {
335
+ position: absolute;
336
+ top: 50%;
337
+ left: 50%;
338
+ transform: translate(-50%, -50%);
339
+ background-color: #FFF;
340
+ display: flex;
341
+ justify-content: center;
342
+ align-items: center;
343
+ }
344
+ }
345
+
346
+ .ea-number .el-input__inner {
347
+ text-align: left;
348
+ }
349
+
346
350
  .ea-list {
347
351
  .loading-text {
348
352
  color: $--color-secondary-text;
@@ -395,8 +399,61 @@ td {
395
399
  }
396
400
  }
397
401
 
398
- .ea-number .el-input__inner {
399
- text-align: left;
402
+ .ea-data-tree-body {
403
+ &.ea-data-tree-body__border {
404
+ border: 1px solid $--color-border-light;
405
+ }
406
+ }
407
+
408
+ .ea-data-tree-row {
409
+ height: 32px;
410
+ line-height: 32px;
411
+ display: flex;
412
+ justify-content: flex-start;
413
+ position: relative;
414
+ padding-left: 20px;
415
+ &.odd { background-color: #F8F8F8; }
416
+ &:hover { background-color: #EBEEF5; }
417
+ .ea-data-tree-cell {
418
+ flex: 0 0 auto;
419
+ height: 100%;
420
+ font-size: 14px;
421
+ box-sizing: border-box;
422
+ padding: 0 8px;
423
+ position: relative;
424
+ overflow: hidden;
425
+ text-overflow: ellipsis;
426
+ white-space: nowrap;
427
+ word-break: break-all;
428
+ & > .ea-data-tree-checkbox {
429
+ position: absolute;
430
+ top: 0;
431
+ }
432
+ }
433
+ .ea-data-tree-icon {
434
+ cursor: pointer;
435
+ position: absolute;
436
+ height: 100%;
437
+ color: #CCC;
438
+ display: flex;
439
+ align-items: center;
440
+ z-index: 1;
441
+ &:hover {
442
+ color: #333;
443
+ }
444
+ }
445
+ }
446
+
447
+ .ea-data-tree-checkbox .el-checkbox__input.is-indeterminate .el-checkbox__inner {
448
+ background-color: $--color-secondary-text;
449
+ border-color: $--color-secondary-text;
450
+ }
451
+
452
+ .ea-data-tree-empty {
453
+ display: flex;
454
+ justify-content: center;
455
+ align-items: center;
456
+ color: $--color-secondary-text;
400
457
  }
401
458
 
402
459
  .file-upload-dialog {
@@ -625,87 +682,6 @@ td {
625
682
  .ea-icon-more:before { content: "\e60e" }
626
683
  .eafont.ea-icon-conf.has { color: #000 }
627
684
 
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
- .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
-
709
685
  .ea-table-modal {
710
686
  overflow: visible;
711
687
  right: unset;
@@ -760,6 +736,30 @@ td {
760
736
  }
761
737
  }
762
738
 
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;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.47",
3
+ "version": "0.0.48",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",