element-assits 0.0.57 → 0.0.58
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/README.md +1 -0
- package/lib/index.js +12 -4
- package/lib/style.scss +118 -118
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -54,6 +54,7 @@ Vue 原型上挂载了 `$asyncLoad` 方法(与asyncLoad相同)
|
|
|
54
54
|
| .referenceItemWidth|单项参考宽度|Number|180|
|
|
55
55
|
| .maxItemWidth|单项最大宽度|Number|240|
|
|
56
56
|
| .loading|控制更多按钮加载状态|Boolean|false|
|
|
57
|
+
| .defaultShowAll|搜索条件是否默认展开|Boolean|false|
|
|
57
58
|
| .column[].exclusiveDoubleCells|允许某一项独占两格|Boolean|false|
|
|
58
59
|
| innerSelection | 内部 - 选中列 | Boolean \| Object | undefined|
|
|
59
60
|
| .data | 选中的行 | Array | undefined |
|
package/lib/index.js
CHANGED
|
@@ -1837,15 +1837,19 @@ const da = Dx.exports, Bx = {
|
|
|
1837
1837
|
maxItemWidth: {
|
|
1838
1838
|
type: Number,
|
|
1839
1839
|
default: 240
|
|
1840
|
+
},
|
|
1841
|
+
defaultShowAll: {
|
|
1842
|
+
type: Boolean,
|
|
1843
|
+
default: !1
|
|
1840
1844
|
}
|
|
1841
1845
|
},
|
|
1842
1846
|
data() {
|
|
1843
|
-
const r = typeof this.limit == "number" ? this.limit : 2;
|
|
1847
|
+
const r = typeof this.limit == "number" ? this.limit : 2, t = this.defaultShowAll;
|
|
1844
1848
|
return {
|
|
1845
1849
|
allColumn: [],
|
|
1846
1850
|
rawColumn: [],
|
|
1847
1851
|
defaultCount: r,
|
|
1848
|
-
showAll:
|
|
1852
|
+
showAll: t
|
|
1849
1853
|
};
|
|
1850
1854
|
},
|
|
1851
1855
|
computed: {
|
|
@@ -1853,7 +1857,7 @@ const da = Dx.exports, Bx = {
|
|
|
1853
1857
|
return this.allColumn.reduce((r, t) => r += t.exclusiveDoubleCells ? 2 : 1, 0);
|
|
1854
1858
|
},
|
|
1855
1859
|
moreIcon() {
|
|
1856
|
-
return this.loading ? "el-icon-loading" : this.showAll ? "el-icon-arrow-up" : "el-icon-more";
|
|
1860
|
+
return this.loading ? "el-icon-loading" : this.showAll && this.allLength > this.defaultCount ? "el-icon-arrow-up" : "el-icon-more";
|
|
1857
1861
|
},
|
|
1858
1862
|
moreTooltip() {
|
|
1859
1863
|
return this.limit !== "all" && this.allLength > this.defaultCount ? this.showAll ? "\u6536\u8D77\u641C\u7D22\u6761\u4EF6" : "\u5C55\u5F00\u66F4\u591A\u641C\u7D22\u6761\u4EF6" : "\u6CA1\u6709\u66F4\u591A\u641C\u7D22\u6761\u4EF6\u4E86";
|
|
@@ -1935,7 +1939,11 @@ const da = Dx.exports, Bx = {
|
|
|
1935
1939
|
});
|
|
1936
1940
|
},
|
|
1937
1941
|
handleMore() {
|
|
1938
|
-
this.limit
|
|
1942
|
+
if (this.limit === "all" || this.allLength <= this.defaultCount) {
|
|
1943
|
+
this.showAll = !1;
|
|
1944
|
+
return;
|
|
1945
|
+
}
|
|
1946
|
+
this.showAll = !this.showAll, this.init();
|
|
1939
1947
|
},
|
|
1940
1948
|
handleRefresh() {
|
|
1941
1949
|
this.$emit("refresh");
|
package/lib/style.scss
CHANGED
|
@@ -129,6 +129,54 @@ $--background-color-base: #F5F7FA !default;
|
|
|
129
129
|
transform: scaleY(0);
|
|
130
130
|
}
|
|
131
131
|
|
|
132
|
+
.ea-select {
|
|
133
|
+
display: inline-block;
|
|
134
|
+
position: relative;
|
|
135
|
+
.el-select {
|
|
136
|
+
width: 100%;
|
|
137
|
+
}
|
|
138
|
+
.async-loading.el-icon-loading {
|
|
139
|
+
position: absolute;
|
|
140
|
+
top: 10px;
|
|
141
|
+
right: 28px;
|
|
142
|
+
color: #999;
|
|
143
|
+
}
|
|
144
|
+
}
|
|
145
|
+
.ea-select-popover {
|
|
146
|
+
.el-select-dropdown__item {
|
|
147
|
+
display: flex;
|
|
148
|
+
justify-content: space-between;
|
|
149
|
+
.select-item-value {
|
|
150
|
+
overflow: hidden;
|
|
151
|
+
text-overflow: ellipsis;
|
|
152
|
+
}
|
|
153
|
+
.select-item-desc {
|
|
154
|
+
overflow: hidden;
|
|
155
|
+
text-overflow: ellipsis;
|
|
156
|
+
color: #8492a6;
|
|
157
|
+
margin-left: 8px;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
.el-dialog.ea-modal {
|
|
163
|
+
&.is-closing {
|
|
164
|
+
margin: 0 0 50px !important;
|
|
165
|
+
}
|
|
166
|
+
&.is-fullscreen {
|
|
167
|
+
border-radius: 0;
|
|
168
|
+
margin: 0;
|
|
169
|
+
}
|
|
170
|
+
.el-dialog__header {
|
|
171
|
+
color: #555;
|
|
172
|
+
font-size: 18px;
|
|
173
|
+
.el-dialog__title {
|
|
174
|
+
color: inherit;
|
|
175
|
+
font-size: inherit;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
132
180
|
.ea-data-table {
|
|
133
181
|
.edt-row {
|
|
134
182
|
display: flex;
|
|
@@ -168,32 +216,14 @@ $--background-color-base: #F5F7FA !default;
|
|
|
168
216
|
}
|
|
169
217
|
}
|
|
170
218
|
|
|
171
|
-
.ea-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
width: 100%;
|
|
176
|
-
}
|
|
177
|
-
.async-loading.el-icon-loading {
|
|
178
|
-
position: absolute;
|
|
179
|
-
top: 10px;
|
|
180
|
-
right: 28px;
|
|
181
|
-
color: #999;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
.ea-select-popover {
|
|
185
|
-
.el-select-dropdown__item {
|
|
186
|
-
display: flex;
|
|
187
|
-
justify-content: space-between;
|
|
188
|
-
.select-item-value {
|
|
189
|
-
overflow: hidden;
|
|
190
|
-
text-overflow: ellipsis;
|
|
219
|
+
.ea-tree {
|
|
220
|
+
.ea-tree-real {
|
|
221
|
+
.el-tree-node > .el-tree-node__content{
|
|
222
|
+
border-radius: 4px;
|
|
191
223
|
}
|
|
192
|
-
.
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
color: #8492a6;
|
|
196
|
-
margin-left: 8px;
|
|
224
|
+
.el-tree-node.is-current > .el-tree-node__content {
|
|
225
|
+
color: $--color-primary;
|
|
226
|
+
background-color: rgba($--color-primary, 0.1);
|
|
197
227
|
}
|
|
198
228
|
}
|
|
199
229
|
}
|
|
@@ -263,21 +293,11 @@ td {
|
|
|
263
293
|
}
|
|
264
294
|
}
|
|
265
295
|
|
|
266
|
-
.
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
border-radius: 0;
|
|
272
|
-
margin: 0;
|
|
273
|
-
}
|
|
274
|
-
.el-dialog__header {
|
|
275
|
-
color: #555;
|
|
276
|
-
font-size: 18px;
|
|
277
|
-
.el-dialog__title {
|
|
278
|
-
color: inherit;
|
|
279
|
-
font-size: inherit;
|
|
280
|
-
}
|
|
296
|
+
.ea-list {
|
|
297
|
+
.loading-text {
|
|
298
|
+
color: $--color-secondary-text;
|
|
299
|
+
text-align: center;
|
|
300
|
+
font-size: inherit;
|
|
281
301
|
}
|
|
282
302
|
}
|
|
283
303
|
|
|
@@ -332,16 +352,8 @@ td {
|
|
|
332
352
|
}
|
|
333
353
|
}
|
|
334
354
|
|
|
335
|
-
.ea-
|
|
336
|
-
|
|
337
|
-
.el-tree-node > .el-tree-node__content{
|
|
338
|
-
border-radius: 4px;
|
|
339
|
-
}
|
|
340
|
-
.el-tree-node.is-current > .el-tree-node__content {
|
|
341
|
-
color: $--color-primary;
|
|
342
|
-
background-color: rgba($--color-primary, 0.1);
|
|
343
|
-
}
|
|
344
|
-
}
|
|
355
|
+
.ea-number .el-input__inner {
|
|
356
|
+
text-align: left;
|
|
345
357
|
}
|
|
346
358
|
|
|
347
359
|
.ea-desc {
|
|
@@ -388,16 +400,31 @@ td {
|
|
|
388
400
|
}
|
|
389
401
|
}
|
|
390
402
|
|
|
391
|
-
.
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
403
|
+
.file-upload-dialog {
|
|
404
|
+
// 拖拽区域铺满
|
|
405
|
+
.el-upload,
|
|
406
|
+
.el-upload .el-upload-dragger {
|
|
407
|
+
width: 100%;
|
|
408
|
+
}
|
|
409
|
+
// 文件列表项边框
|
|
410
|
+
.el-upload-list {
|
|
411
|
+
.el-upload-list__item {
|
|
412
|
+
border: 1px dashed #aaa;
|
|
413
|
+
.el-icon-close {
|
|
414
|
+
display: inline-block;
|
|
415
|
+
}
|
|
416
|
+
}
|
|
417
|
+
}
|
|
418
|
+
// 清除文件列表变动过渡动画
|
|
419
|
+
.el-list-enter,
|
|
420
|
+
.el-list-enter-active,
|
|
421
|
+
.el-list-enter-to,
|
|
422
|
+
.el-list-leave,
|
|
423
|
+
.el-list-leave-active,
|
|
424
|
+
.el-list-leave-to {
|
|
425
|
+
-webkit-transition: none !important;
|
|
426
|
+
transition: none !important;
|
|
396
427
|
}
|
|
397
|
-
}
|
|
398
|
-
|
|
399
|
-
.ea-number .el-input__inner {
|
|
400
|
-
text-align: left;
|
|
401
428
|
}
|
|
402
429
|
|
|
403
430
|
.ea-data-tree-body {
|
|
@@ -456,33 +483,6 @@ td {
|
|
|
456
483
|
color: $--color-secondary-text;
|
|
457
484
|
}
|
|
458
485
|
|
|
459
|
-
.file-upload-dialog {
|
|
460
|
-
// 拖拽区域铺满
|
|
461
|
-
.el-upload,
|
|
462
|
-
.el-upload .el-upload-dragger {
|
|
463
|
-
width: 100%;
|
|
464
|
-
}
|
|
465
|
-
// 文件列表项边框
|
|
466
|
-
.el-upload-list {
|
|
467
|
-
.el-upload-list__item {
|
|
468
|
-
border: 1px dashed #aaa;
|
|
469
|
-
.el-icon-close {
|
|
470
|
-
display: inline-block;
|
|
471
|
-
}
|
|
472
|
-
}
|
|
473
|
-
}
|
|
474
|
-
// 清除文件列表变动过渡动画
|
|
475
|
-
.el-list-enter,
|
|
476
|
-
.el-list-enter-active,
|
|
477
|
-
.el-list-enter-to,
|
|
478
|
-
.el-list-leave,
|
|
479
|
-
.el-list-leave-active,
|
|
480
|
-
.el-list-leave-to {
|
|
481
|
-
-webkit-transition: none !important;
|
|
482
|
-
transition: none !important;
|
|
483
|
-
}
|
|
484
|
-
}
|
|
485
|
-
|
|
486
486
|
.vjs-table {
|
|
487
487
|
position: relative;
|
|
488
488
|
overflow: hidden;
|
|
@@ -772,6 +772,38 @@ td {
|
|
|
772
772
|
margin-bottom: 8px !important;
|
|
773
773
|
}
|
|
774
774
|
|
|
775
|
+
.ea-switch-mini {
|
|
776
|
+
.el-switch__core {
|
|
777
|
+
width: 30px !important;
|
|
778
|
+
height: 16px;
|
|
779
|
+
&::after {
|
|
780
|
+
width: 12px;
|
|
781
|
+
height: 12px;
|
|
782
|
+
left: 2px;
|
|
783
|
+
}
|
|
784
|
+
}
|
|
785
|
+
&.is-checked .el-switch__core::after {
|
|
786
|
+
margin-left: -13px;
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
.ea-form .el-form-item__content {
|
|
791
|
+
& > .el-input-number,
|
|
792
|
+
& > .el-input,
|
|
793
|
+
& > .ea-select,
|
|
794
|
+
& > .el-select {
|
|
795
|
+
width: 100%;
|
|
796
|
+
}
|
|
797
|
+
}
|
|
798
|
+
.ea-form .el-form-item.hidden-label {
|
|
799
|
+
> .el-form-item__label {
|
|
800
|
+
display: none;
|
|
801
|
+
}
|
|
802
|
+
> .el-form-item__content {
|
|
803
|
+
width: 100%;
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
|
|
775
807
|
.ea-select-container {
|
|
776
808
|
display: flex;
|
|
777
809
|
justify-content: flex-start;
|
|
@@ -811,35 +843,3 @@ td {
|
|
|
811
843
|
}
|
|
812
844
|
}
|
|
813
845
|
}
|
|
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
|
-
.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
|
-
}
|