element-assits 0.0.47 → 0.0.49

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 (3) hide show
  1. package/lib/index.js +9 -10
  2. package/lib/style.scss +122 -122
  3. package/package.json +1 -1
package/lib/index.js CHANGED
@@ -1771,17 +1771,15 @@ const Px = {
1771
1771
  ue(r.rules) && d.push(...r.rules);
1772
1772
  const v = {};
1773
1773
  be(r.on) ? Object.assign(v, r.on(...i)) : It(r.on) && Object.assign(v, r.on);
1774
- const m = { clearable: !0, placeholder: r.label };
1775
- Object.assign(m, be(r.bind) ? r.bind(...i) : r.bind);
1776
- const b = be(r.label) ? r.label(...i) : r.label, S = be(r.labelTooltip) ? r.labelTooltip(...i) : r.labelTooltip;
1777
- return Object.assign({}, r, o, {
1774
+ const m = be(r.label) ? r.label(...i) : r.label, b = be(r.labelTooltip) ? r.labelTooltip(...i) : r.labelTooltip, S = { clearable: !0, placeholder: m };
1775
+ return Object.assign(S, be(r.bind) ? r.bind(...i) : r.bind), Object.assign({}, r, o, {
1778
1776
  __key: n,
1779
- __label: b,
1780
- __labelTooltip: S,
1777
+ __label: m,
1778
+ __labelTooltip: b,
1781
1779
  __component: u,
1782
1780
  __rules: d,
1783
1781
  __on: v,
1784
- __bind: m
1782
+ __bind: S
1785
1783
  });
1786
1784
  },
1787
1785
  deleteLostProp(r, n) {
@@ -2130,8 +2128,9 @@ function $u(r = 3) {
2130
2128
  };
2131
2129
  }
2132
2130
  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];
2131
+ const i = (this.$root.constructor.version.match(/\.(\d+)\./) || [])[1];
2132
+ let o = this.$slots["row-menu"], u = this.$scopedSlots["row-menu"];
2133
+ return o = Array.isArray(o) ? o : o && o() || [], u = Array.isArray(u) ? u : u && u(r) || [], i >= 6 ? u : [...o, ...u];
2135
2134
  }
2136
2135
  let Gs, rf = null, Su = null;
2137
2136
  function sf() {
@@ -2681,7 +2680,7 @@ function _$(r) {
2681
2680
  }
2682
2681
  function Lt(r, n) {
2683
2682
  const i = document.createElement("div");
2684
- i.style.position = "absolute", g$(i, n), r.style.userSelect = "none", r.appendChild(i);
2683
+ i.style.position = "absolute", g$(i, n), r.appendChild(i);
2685
2684
  let o = r.offsetLeft, u = r.offsetTop, d = r.offsetWidth, v = r.offsetHeight, m = !1, b, S;
2686
2685
  const T = () => {
2687
2686
  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
  // 表格头部样式美化
@@ -158,6 +128,36 @@ $--color-border-extralight: #F2F6FC !default;
158
128
  transform: scaleY(0);
159
129
  }
160
130
 
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
161
  .ea-data-table {
162
162
  .edt-row {
163
163
  display: flex;
@@ -215,57 +215,6 @@ $--color-border-extralight: #F2F6FC !default;
215
215
  }
216
216
  }
217
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
-
269
218
  .ea-button-tooltip + .ea-button-tooltip {
270
219
  margin-left: 10px;
271
220
  }
@@ -331,6 +280,57 @@ td {
331
280
  }
332
281
  }
333
282
 
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{
@@ -682,30 +682,6 @@ td {
682
682
  color: $--color-secondary-text;
683
683
  }
684
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;
@@ -772,23 +772,6 @@ 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
-
792
775
  .ea-select-container {
793
776
  display: flex;
794
777
  justify-content: flex-start;
@@ -829,6 +812,23 @@ td {
829
812
  }
830
813
  }
831
814
 
815
+ .ea-form .el-form-item__content {
816
+ & > .el-input-number,
817
+ & > .el-input,
818
+ & > .ea-select,
819
+ & > .el-select {
820
+ width: 100%;
821
+ }
822
+ }
823
+ .ea-form .el-form-item.hidden-label {
824
+ > .el-form-item__label {
825
+ display: none;
826
+ }
827
+ > .el-form-item__content {
828
+ width: 100%;
829
+ }
830
+ }
831
+
832
832
  .ea-switch-mini {
833
833
  .el-switch__core {
834
834
  width: 30px !important;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "element-assits",
3
- "version": "0.0.47",
3
+ "version": "0.0.49",
4
4
  "description": "element-ui 的扩展组件库",
5
5
  "main": "lib/index.js",
6
6
  "type": "module",