element-assits 0.0.44 → 0.0.45

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
@@ -2225,6 +2225,11 @@ const Yx = {
2225
2225
  handler(r) {
2226
2226
  this.columnWatcher(r);
2227
2227
  }
2228
+ },
2229
+ data: {
2230
+ handler() {
2231
+ this.handleRefresh();
2232
+ }
2228
2233
  }
2229
2234
  },
2230
2235
  mounted() {
@@ -2675,7 +2680,9 @@ const g$ = {
2675
2680
  margin: { type: String, default: void 0 },
2676
2681
  bodyPadding: { type: String, default: void 0 },
2677
2682
  bodyMinHeight: { type: String, default: void 0 },
2678
- allowDrag: { type: Boolean, default: !0 }
2683
+ allowDrag: { type: Boolean, default: !0 },
2684
+ confirmText: { type: String, default: "\u786E\u5B9A" },
2685
+ cancelText: { type: String, default: "\u53D6\u6D88" }
2679
2686
  },
2680
2687
  data() {
2681
2688
  return {
@@ -2716,9 +2723,9 @@ var v$ = function() {
2716
2723
  return i("el-dialog", n._g(n._b({ attrs: { "custom-class": n._customClass }, on: { opened: n.handleOpened, closed: n.handleClosed }, scopedSlots: n._u([n.$listeners.confirm || n.$listeners.cancel ? { key: "footer", fn: function() {
2717
2724
  return [n.$listeners.confirm ? i("el-button", { class: n.$listeners.cancel ? "" : "single-btn", attrs: { type: "primary", icon: n.$listeners.cancel ? "el-icon-circle-check" : "", loading: n.confirmLoading }, on: { click: function(o) {
2718
2725
  return n.$emit("confirm");
2719
- } } }, [n._v("\u786E\u5B9A")]) : n._e(), n.$listeners.cancel ? i("el-button", { attrs: { type: "default", icon: "el-icon-circle-close" }, on: { click: function(o) {
2726
+ } } }, [n._v(n._s(n.confirmText))]) : n._e(), n.$listeners.cancel ? i("el-button", { attrs: { type: "default", icon: "el-icon-circle-close" }, on: { click: function(o) {
2720
2727
  return n.$emit("cancel");
2721
- } } }, [n._v("\u53D6\u6D88")]) : n._e()];
2728
+ } } }, [n._v(n._s(n.cancelText))]) : n._e()];
2722
2729
  }, proxy: !0 } : null, n._l(n.$slots, function(o, u) {
2723
2730
  return { key: u, fn: function() {
2724
2731
  return [n._t(u)];
package/lib/style.scss CHANGED
@@ -158,6 +158,24 @@ $--color-border-extralight: #F2F6FC !default;
158
158
  }
159
159
  }
160
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
+
161
179
  .ea-data-table {
162
180
  .edt-row {
163
181
  display: flex;
@@ -197,24 +215,6 @@ $--color-border-extralight: #F2F6FC !default;
197
215
  }
198
216
  }
199
217
 
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
218
  .ea-button-tooltip + .ea-button-tooltip {
219
219
  margin-left: 10px;
220
220
  }
@@ -343,6 +343,10 @@ td {
343
343
  }
344
344
  }
345
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,31 @@ td {
395
399
  }
396
400
  }
397
401
 
398
- .ea-number .el-input__inner {
399
- text-align: left;
402
+ .file-upload-dialog {
403
+ // 拖拽区域铺满
404
+ .el-upload,
405
+ .el-upload .el-upload-dragger {
406
+ width: 100%;
407
+ }
408
+ // 文件列表项边框
409
+ .el-upload-list {
410
+ .el-upload-list__item {
411
+ border: 1px dashed #aaa;
412
+ .el-icon-close {
413
+ display: inline-block;
414
+ }
415
+ }
416
+ }
417
+ // 清除文件列表变动过渡动画
418
+ .el-list-enter,
419
+ .el-list-enter-active,
420
+ .el-list-enter-to,
421
+ .el-list-leave,
422
+ .el-list-leave-active,
423
+ .el-list-leave-to {
424
+ -webkit-transition: none !important;
425
+ transition: none !important;
426
+ }
400
427
  }
401
428
 
402
429
  .ea-data-tree-body {
@@ -655,30 +682,27 @@ td {
655
682
  .ea-icon-more:before { content: "\e60e" }
656
683
  .eafont.ea-icon-conf.has { color: #000 }
657
684
 
658
- .file-upload-dialog {
659
- // 拖拽区域铺满
660
- .el-upload,
661
- .el-upload .el-upload-dragger {
662
- width: 100%;
663
- }
664
- // 文件列表项边框
665
- .el-upload-list {
666
- .el-upload-list__item {
667
- border: 1px dashed #aaa;
668
- .el-icon-close {
669
- display: inline-block;
670
- }
671
- }
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;
672
697
  }
673
- // 清除文件列表变动过渡动画
674
- .el-list-enter,
675
- .el-list-enter-active,
676
- .el-list-enter-to,
677
- .el-list-leave,
678
- .el-list-leave-active,
679
- .el-list-leave-to {
680
- -webkit-transition: none !important;
681
- transition: none !important;
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;
682
706
  }
683
707
  }
684
708
 
@@ -736,30 +760,6 @@ td {
736
760
  }
737
761
  }
738
762
 
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;
@@ -812,6 +812,21 @@ td {
812
812
  }
813
813
  }
814
814
 
815
+ .ea-switch-mini {
816
+ .el-switch__core {
817
+ width: 30px !important;
818
+ height: 16px;
819
+ &::after {
820
+ width: 12px;
821
+ height: 12px;
822
+ left: 2px;
823
+ }
824
+ }
825
+ &.is-checked .el-switch__core::after {
826
+ margin-left: -13px;
827
+ }
828
+ }
829
+
815
830
  .ea-form .el-form-item__content {
816
831
  & > .el-input-number,
817
832
  & > .el-input,
@@ -828,18 +843,3 @@ td {
828
843
  width: 100%;
829
844
  }
830
845
  }
831
-
832
- .ea-switch-mini {
833
- .el-switch__core {
834
- width: 30px !important;
835
- height: 16px;
836
- &::after {
837
- width: 12px;
838
- height: 12px;
839
- left: 2px;
840
- }
841
- }
842
- &.is-checked .el-switch__core::after {
843
- margin-left: -13px;
844
- }
845
- }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.44",
3
+ "version": "0.0.45",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",