element-assits 0.0.65 → 0.0.66

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
@@ -1487,8 +1487,10 @@ var xx = function() {
1487
1487
  var t = this, i = t._self._c;
1488
1488
  return i("el-form-item", { ref: "ElFormItem", class: { "hidden-label": t.top.labelWidth === "0" }, style: t.column.style, attrs: { label: t.column.__label, prop: t.column.prop, rules: t.column.__rules }, scopedSlots: t._u([{ key: "label", fn: function() {
1489
1489
  return [t._v(t._s(t.column.__label) + " "), t.column.__labelTooltip ? i("el-tooltip", t._b({}, "el-tooltip", t.tooltip(t.column.__labelTooltip), !1), [i("i", { staticClass: "el-icon-warning-outline" })]) : t._e()];
1490
- }, proxy: !0 }]) }, [i(t.column.__component, t._g(t._b({ tag: "component", on: { change: function(l) {
1491
- t.top.$emit("change", t.top.model), t.$refs.ElFormItem.$emit("el.form.change");
1490
+ }, proxy: !0 }]) }, [i(t.column.__component, t._g(t._b({ tag: "component", on: { input: function(l) {
1491
+ return t.top.$emit("change", t.top.model);
1492
+ }, change: function(l) {
1493
+ return t.$refs.ElFormItem.$emit("el.form.change");
1492
1494
  } }, nativeOn: { keyup: function(l) {
1493
1495
  return !l.type.indexOf("key") && t._k(l.keyCode, "enter", 13, l.key, "Enter") ? null : t.top.$emit("enter");
1494
1496
  } }, model: { value: t.top.model[t.column.prop], callback: function(l) {
package/lib/style.scss CHANGED
@@ -50,45 +50,6 @@ $--background-color-base: #F5F7FA !default;
50
50
  }
51
51
  }
52
52
 
53
- .ea-data-table {
54
- .edt-row {
55
- display: flex;
56
- .edt-cell {
57
- padding: 0 8px;
58
- flex: 0 0 auto;
59
- box-sizing: border-box;
60
- overflow: hidden;
61
- text-overflow: ellipsis;
62
- white-space: nowrap;
63
- word-break: break-all;
64
- }
65
- &.edt-header {
66
- background-color: $--color-border-extralight;
67
- color: $--color-primary-text;
68
- }
69
- }
70
- &--border {
71
- border: 1px solid $--color-border-light;
72
- .edt-row {
73
- .edt-cell {
74
- border-bottom: 1px solid $--color-border-light;
75
- border-left: 1px solid $--color-border-light;
76
- &:first-child {
77
- border-left: 0;
78
- }
79
- }
80
- &:last-child .edt-cell{
81
- border-bottom: 0;
82
- }
83
- }
84
- }
85
- .loading-text {
86
- color: $--color-secondary-text;
87
- text-align: center;
88
- font-size: inherit;
89
- }
90
- }
91
-
92
53
  // table
93
54
  .ea-table {
94
55
  // 表格头部样式美化
@@ -224,10 +185,6 @@ $--background-color-base: #F5F7FA !default;
224
185
  }
225
186
  }
226
187
 
227
- .ea-number .el-input__inner {
228
- text-align: left;
229
- }
230
-
231
188
  .ea-button-tooltip + .ea-button-tooltip {
232
189
  margin-left: 10px;
233
190
  }
@@ -344,6 +301,18 @@ td {
344
301
  }
345
302
  }
346
303
 
304
+ .ea-tree {
305
+ .ea-tree-real {
306
+ .el-tree-node > .el-tree-node__content{
307
+ border-radius: 4px;
308
+ }
309
+ .el-tree-node.is-current > .el-tree-node__content {
310
+ color: $--color-primary;
311
+ background-color: rgba($--color-primary, 0.1);
312
+ }
313
+ }
314
+ }
315
+
347
316
  .ea-list {
348
317
  .loading-text {
349
318
  color: $--color-secondary-text;
@@ -352,6 +321,49 @@ td {
352
321
  }
353
322
  }
354
323
 
324
+ .ea-number .el-input__inner {
325
+ text-align: left;
326
+ }
327
+
328
+ .ea-data-table {
329
+ .edt-row {
330
+ display: flex;
331
+ .edt-cell {
332
+ padding: 0 8px;
333
+ flex: 0 0 auto;
334
+ box-sizing: border-box;
335
+ overflow: hidden;
336
+ text-overflow: ellipsis;
337
+ white-space: nowrap;
338
+ word-break: break-all;
339
+ }
340
+ &.edt-header {
341
+ background-color: $--color-border-extralight;
342
+ color: $--color-primary-text;
343
+ }
344
+ }
345
+ &--border {
346
+ border: 1px solid $--color-border-light;
347
+ .edt-row {
348
+ .edt-cell {
349
+ border-bottom: 1px solid $--color-border-light;
350
+ border-left: 1px solid $--color-border-light;
351
+ &:first-child {
352
+ border-left: 0;
353
+ }
354
+ }
355
+ &:last-child .edt-cell{
356
+ border-bottom: 0;
357
+ }
358
+ }
359
+ }
360
+ .loading-text {
361
+ color: $--color-secondary-text;
362
+ text-align: center;
363
+ font-size: inherit;
364
+ }
365
+ }
366
+
355
367
  .file-upload-dialog {
356
368
  // 拖拽区域铺满
357
369
  .el-upload,
@@ -379,18 +391,6 @@ td {
379
391
  }
380
392
  }
381
393
 
382
- .ea-tree {
383
- .ea-tree-real {
384
- .el-tree-node > .el-tree-node__content{
385
- border-radius: 4px;
386
- }
387
- .el-tree-node.is-current > .el-tree-node__content {
388
- color: $--color-primary;
389
- background-color: rgba($--color-primary, 0.1);
390
- }
391
- }
392
- }
393
-
394
394
  .ea-data-tree-body {
395
395
  &.ea-data-tree-body__border {
396
396
  border: 1px solid $--color-border-light;
@@ -690,30 +690,6 @@ td {
690
690
  }
691
691
  }
692
692
 
693
- .ea-form .form-group-title {
694
- position: relative;
695
- height: 32px;
696
- margin-bottom: 22px;
697
- > span {
698
- position: absolute;
699
- top: 0;
700
- left: 20%;
701
- padding: 5px 25px;
702
- background-color: #fff;
703
- z-index: 1;
704
- color: $--color-secondary-text;
705
- }
706
- &::after {
707
- content: '';
708
- position: absolute;
709
- top: 50%;
710
- left: 0;
711
- width: 100%;
712
- height: 0;
713
- border-bottom: 1px dashed $--color-border-base;
714
- }
715
- }
716
-
717
693
  .ea-table-modal {
718
694
  overflow: visible;
719
695
  right: unset;
@@ -768,6 +744,30 @@ td {
768
744
  }
769
745
  }
770
746
 
747
+ .ea-form .form-group-title {
748
+ position: relative;
749
+ height: 32px;
750
+ margin-bottom: 22px;
751
+ > span {
752
+ position: absolute;
753
+ top: 0;
754
+ left: 20%;
755
+ padding: 5px 25px;
756
+ background-color: #fff;
757
+ z-index: 1;
758
+ color: $--color-secondary-text;
759
+ }
760
+ &::after {
761
+ content: '';
762
+ position: absolute;
763
+ top: 50%;
764
+ left: 0;
765
+ width: 100%;
766
+ height: 0;
767
+ border-bottom: 1px dashed $--color-border-base;
768
+ }
769
+ }
770
+
771
771
  .conf-header {
772
772
  border-bottom: 1px solid #DDD;
773
773
  padding-bottom: 10px;
@@ -780,23 +780,6 @@ td {
780
780
  margin-bottom: 8px !important;
781
781
  }
782
782
 
783
- .ea-form .el-form-item__content {
784
- & > .el-input-number,
785
- & > .el-input,
786
- & > .ea-select,
787
- & > .el-select {
788
- width: 100%;
789
- }
790
- }
791
- .ea-form .el-form-item.hidden-label {
792
- > .el-form-item__label {
793
- display: none;
794
- }
795
- > .el-form-item__content {
796
- width: 100%;
797
- }
798
- }
799
-
800
783
  .ea-select-container {
801
784
  display: flex;
802
785
  justify-content: flex-start;
@@ -837,6 +820,23 @@ td {
837
820
  }
838
821
  }
839
822
 
823
+ .ea-form .el-form-item__content {
824
+ & > .el-input-number,
825
+ & > .el-input,
826
+ & > .ea-select,
827
+ & > .el-select {
828
+ width: 100%;
829
+ }
830
+ }
831
+ .ea-form .el-form-item.hidden-label {
832
+ > .el-form-item__label {
833
+ display: none;
834
+ }
835
+ > .el-form-item__content {
836
+ width: 100%;
837
+ }
838
+ }
839
+
840
840
  .ea-switch-mini {
841
841
  .el-switch__core {
842
842
  width: 30px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",