element-ui-root 2.6.9 → 2.7.1
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/dist/index.common.js +133 -49
- package/dist/index.umd.js +133 -49
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.umd.js
CHANGED
|
@@ -13549,6 +13549,16 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13549
13549
|
|
|
13550
13550
|
mounted() {},
|
|
13551
13551
|
|
|
13552
|
+
destroyed() {
|
|
13553
|
+
this.create = null;
|
|
13554
|
+
this.submit = null;
|
|
13555
|
+
this.cancel = null;
|
|
13556
|
+
this.filter = null;
|
|
13557
|
+
this.result = null;
|
|
13558
|
+
this.prompt = null;
|
|
13559
|
+
this.format = null;
|
|
13560
|
+
},
|
|
13561
|
+
|
|
13552
13562
|
watch: {
|
|
13553
13563
|
values() {
|
|
13554
13564
|
this.create();
|
|
@@ -13635,12 +13645,14 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13635
13645
|
}
|
|
13636
13646
|
},
|
|
13637
13647
|
|
|
13638
|
-
filter(form) {
|
|
13648
|
+
filter(form = {}) {
|
|
13639
13649
|
// 过滤空值属性
|
|
13640
13650
|
const data = {};
|
|
13641
13651
|
|
|
13642
13652
|
for (let a in form) {
|
|
13643
|
-
if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != '
|
|
13653
|
+
if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
|
|
13654
|
+
data[a] = form[a];
|
|
13655
|
+
}
|
|
13644
13656
|
}
|
|
13645
13657
|
|
|
13646
13658
|
return data;
|
|
@@ -13687,8 +13699,8 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
13687
13699
|
render() {
|
|
13688
13700
|
const h = arguments[0];
|
|
13689
13701
|
const {
|
|
13690
|
-
submit,
|
|
13691
|
-
cancel
|
|
13702
|
+
submit = null,
|
|
13703
|
+
cancel = null
|
|
13692
13704
|
} = this.$listeners;
|
|
13693
13705
|
let style = this.cols != '' ? {
|
|
13694
13706
|
width: `${100 / this.cols}%`
|
|
@@ -18704,6 +18716,15 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18704
18716
|
this.$nextTick(() => this.search());
|
|
18705
18717
|
},
|
|
18706
18718
|
|
|
18719
|
+
destroyed() {
|
|
18720
|
+
this.create = null;
|
|
18721
|
+
this.search = null;
|
|
18722
|
+
this.switch = null;
|
|
18723
|
+
this.filter = null;
|
|
18724
|
+
this.relate = null;
|
|
18725
|
+
this.format = null;
|
|
18726
|
+
},
|
|
18727
|
+
|
|
18707
18728
|
methods: {
|
|
18708
18729
|
create() {
|
|
18709
18730
|
this.rand = Math.random();
|
|
@@ -18746,15 +18767,17 @@ const Aupload = a => Promise.resolve(/* AMD require */).then(function() { var __
|
|
|
18746
18767
|
const data = {};
|
|
18747
18768
|
|
|
18748
18769
|
for (let a in form) {
|
|
18749
|
-
if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != '
|
|
18770
|
+
if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
|
|
18771
|
+
data[a] = form[a];
|
|
18772
|
+
}
|
|
18750
18773
|
}
|
|
18751
18774
|
|
|
18752
18775
|
return data;
|
|
18753
18776
|
},
|
|
18754
18777
|
|
|
18755
|
-
relate(value, array = []) {
|
|
18778
|
+
relate(value = '', array = []) {
|
|
18756
18779
|
let object = {};
|
|
18757
|
-
array.length > 0 && array.forEach(a => {
|
|
18780
|
+
if (value != '') array.length > 0 && array.forEach(a => {
|
|
18758
18781
|
if ((a.value || a.code || a.id) && (a.value == value || a.code == value || a.id == value)) object = a;
|
|
18759
18782
|
});
|
|
18760
18783
|
return object;
|
|
@@ -130053,6 +130076,13 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
130053
130076
|
|
|
130054
130077
|
destroyed() {
|
|
130055
130078
|
this.cancel();
|
|
130079
|
+
this.create = null;
|
|
130080
|
+
this.verify = null;
|
|
130081
|
+
this.finish = null;
|
|
130082
|
+
this.submit = null;
|
|
130083
|
+
this.cancel = null;
|
|
130084
|
+
this.filter = null;
|
|
130085
|
+
this.result = null;
|
|
130056
130086
|
},
|
|
130057
130087
|
|
|
130058
130088
|
watch: {
|
|
@@ -130188,7 +130218,9 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
130188
130218
|
const data = {};
|
|
130189
130219
|
|
|
130190
130220
|
for (let a in form) {
|
|
130191
|
-
if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '
|
|
130221
|
+
if (a != undefined && a != 'undefined' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
|
|
130222
|
+
data[a] = form[a];
|
|
130223
|
+
}
|
|
130192
130224
|
}
|
|
130193
130225
|
|
|
130194
130226
|
return data;
|
|
@@ -130203,9 +130235,9 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
130203
130235
|
render() {
|
|
130204
130236
|
const h = arguments[0];
|
|
130205
130237
|
const {
|
|
130206
|
-
finish,
|
|
130207
|
-
submit,
|
|
130208
|
-
cancel
|
|
130238
|
+
finish = null,
|
|
130239
|
+
submit = null,
|
|
130240
|
+
cancel = null
|
|
130209
130241
|
} = this.$listeners;
|
|
130210
130242
|
return h("keep-alive", [h("div", {
|
|
130211
130243
|
"class": !this.inline ? this.search ? 'a-form' : 'a-from vertical' : 'a-form',
|
|
@@ -132150,6 +132182,15 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
132150
132182
|
|
|
132151
132183
|
destroyed() {
|
|
132152
132184
|
this.cancel();
|
|
132185
|
+
this.create = null;
|
|
132186
|
+
this.verify = null;
|
|
132187
|
+
this.finish = null;
|
|
132188
|
+
this.submit = null;
|
|
132189
|
+
this.reject = null;
|
|
132190
|
+
this.cancel = null;
|
|
132191
|
+
this.filter = null;
|
|
132192
|
+
this.result = null;
|
|
132193
|
+
this.format = null;
|
|
132153
132194
|
},
|
|
132154
132195
|
|
|
132155
132196
|
watch: {
|
|
@@ -132254,12 +132295,14 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
132254
132295
|
this.$emit('cancel', this.form);
|
|
132255
132296
|
},
|
|
132256
132297
|
|
|
132257
|
-
filter(form) {
|
|
132298
|
+
filter(form = {}) {
|
|
132258
132299
|
// 过滤空值属性
|
|
132259
132300
|
const data = {};
|
|
132260
132301
|
|
|
132261
132302
|
for (let a in form) {
|
|
132262
|
-
if (a != undefined && a != 'undefined' && form[a] != '' && form[a] != '
|
|
132303
|
+
if (a != undefined && a != 'undefined' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) {
|
|
132304
|
+
data[a] = form[a];
|
|
132305
|
+
}
|
|
132263
132306
|
}
|
|
132264
132307
|
|
|
132265
132308
|
return data;
|
|
@@ -134587,6 +134630,20 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134587
134630
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
134588
134631
|
},
|
|
134589
134632
|
|
|
134633
|
+
beforeDestroy() {
|
|
134634
|
+
this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
|
|
134635
|
+
},
|
|
134636
|
+
|
|
134637
|
+
destroyed() {
|
|
134638
|
+
this.create = null;
|
|
134639
|
+
this.search = null;
|
|
134640
|
+
this.select = null;
|
|
134641
|
+
this.choose = null;
|
|
134642
|
+
this.change = null;
|
|
134643
|
+
this.format = null;
|
|
134644
|
+
this.scroll = null;
|
|
134645
|
+
},
|
|
134646
|
+
|
|
134590
134647
|
methods: {
|
|
134591
134648
|
create(column = []) {
|
|
134592
134649
|
const h = this.$createElement;
|
|
@@ -134594,11 +134651,11 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134594
134651
|
const actionColumn = () => {
|
|
134595
134652
|
let data = [];
|
|
134596
134653
|
const {
|
|
134597
|
-
review,
|
|
134598
|
-
modify,
|
|
134599
|
-
update,
|
|
134600
|
-
handle,
|
|
134601
|
-
remove
|
|
134654
|
+
review = null,
|
|
134655
|
+
modify = null,
|
|
134656
|
+
update = null,
|
|
134657
|
+
handle = null,
|
|
134658
|
+
remove = null
|
|
134602
134659
|
} = this.$listeners;
|
|
134603
134660
|
|
|
134604
134661
|
if (review || modify || update || handle || remove || this.$listeners.delete || this.$listeners.export) {
|
|
@@ -134653,7 +134710,7 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134653
134710
|
return columnConfig.map((a, b) => {
|
|
134654
134711
|
if (a && Object.keys(a).length > 0) {
|
|
134655
134712
|
let {
|
|
134656
|
-
header,
|
|
134713
|
+
header = null,
|
|
134657
134714
|
...item
|
|
134658
134715
|
} = a;
|
|
134659
134716
|
let label = a.text || a.label || a.title;
|
|
@@ -134690,14 +134747,14 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134690
134747
|
|
|
134691
134748
|
search(params = {}) {
|
|
134692
134749
|
const {
|
|
134693
|
-
pageParams,
|
|
134694
|
-
formParams
|
|
134750
|
+
pageParams = {},
|
|
134751
|
+
formParams = {}
|
|
134695
134752
|
} = this.$store.state;
|
|
134696
134753
|
const formatParams = Object.assign({}, pageParams, formParams, params);
|
|
134697
134754
|
this.$emit('search', formatParams);
|
|
134698
134755
|
},
|
|
134699
134756
|
|
|
134700
|
-
select(items) {
|
|
134757
|
+
select(items = []) {
|
|
134701
134758
|
this.$store.commit('changeSelectedRows', items);
|
|
134702
134759
|
this.$store.commit('changeSelectedKeys', items.map(a => a[this.rowKey]));
|
|
134703
134760
|
this.$emit('select', {
|
|
@@ -134714,7 +134771,10 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134714
134771
|
});
|
|
134715
134772
|
},
|
|
134716
134773
|
|
|
134717
|
-
change(pages
|
|
134774
|
+
change(pages = {
|
|
134775
|
+
page: 1,
|
|
134776
|
+
size: 10
|
|
134777
|
+
}) {
|
|
134718
134778
|
this.$store.commit('changePageParams', pages);
|
|
134719
134779
|
this.$emit('change', pages);
|
|
134720
134780
|
this.search(pages);
|
|
@@ -134812,11 +134872,11 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134812
134872
|
const data = r.data ? r.data : r.list ? r.list : r.rows ? r.rows : r.record ? r.record : r.records ? r.records : [];
|
|
134813
134873
|
const size = r.size ? r.size : r.total ? r.total : r.count ? r.count : 0;
|
|
134814
134874
|
const {
|
|
134815
|
-
pageParams
|
|
134875
|
+
pageParams = {}
|
|
134816
134876
|
} = this.$store.state;
|
|
134817
134877
|
const {
|
|
134818
134878
|
loading = false,
|
|
134819
|
-
search
|
|
134879
|
+
search = null
|
|
134820
134880
|
} = this;
|
|
134821
134881
|
const condition = data.length > 0;
|
|
134822
134882
|
return h("keep-alive", [h("div", {
|
|
@@ -152307,7 +152367,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
152307
152367
|
},
|
|
152308
152368
|
width: {
|
|
152309
152369
|
type: String,
|
|
152310
|
-
default: () => '
|
|
152370
|
+
default: () => '480'
|
|
152311
152371
|
},
|
|
152312
152372
|
trigger: {
|
|
152313
152373
|
type: String,
|
|
@@ -152343,6 +152403,12 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
152343
152403
|
this.create();
|
|
152344
152404
|
},
|
|
152345
152405
|
|
|
152406
|
+
destroyed() {
|
|
152407
|
+
this.create = null;
|
|
152408
|
+
this.select = null;
|
|
152409
|
+
this.change = null;
|
|
152410
|
+
},
|
|
152411
|
+
|
|
152346
152412
|
methods: {
|
|
152347
152413
|
create() {
|
|
152348
152414
|
this.$nextTick(() => {
|
|
@@ -152364,7 +152430,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
152364
152430
|
},
|
|
152365
152431
|
|
|
152366
152432
|
change(content) {
|
|
152367
|
-
this
|
|
152433
|
+
this.content = content;
|
|
152434
|
+
console.log(this.content);
|
|
152435
|
+
this.$nextTick(() => this.$emit('input', this.content));
|
|
152368
152436
|
}
|
|
152369
152437
|
|
|
152370
152438
|
},
|
|
@@ -152374,9 +152442,9 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
152374
152442
|
return h("el-popover", {
|
|
152375
152443
|
"class": "a-icon-select",
|
|
152376
152444
|
"attrs": {
|
|
152377
|
-
"placement":
|
|
152445
|
+
"placement": this.placement,
|
|
152378
152446
|
"width": "480",
|
|
152379
|
-
"trigger":
|
|
152447
|
+
"trigger": this.trigger
|
|
152380
152448
|
},
|
|
152381
152449
|
"model": {
|
|
152382
152450
|
value: this.visible,
|
|
@@ -156375,6 +156443,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156375
156443
|
default: () => '取消'
|
|
156376
156444
|
}
|
|
156377
156445
|
},
|
|
156446
|
+
|
|
156447
|
+
destroyed() {
|
|
156448
|
+
this.format = null;
|
|
156449
|
+
},
|
|
156450
|
+
|
|
156378
156451
|
methods: {
|
|
156379
156452
|
format() {
|
|
156380
156453
|
let data = [];
|
|
@@ -156382,34 +156455,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156382
156455
|
let elements = this.$slots.default;
|
|
156383
156456
|
|
|
156384
156457
|
(function recursion(node = []) {
|
|
156385
|
-
if (node.length > 0) {
|
|
156386
|
-
|
|
156387
|
-
|
|
156388
|
-
|
|
156389
|
-
|
|
156390
|
-
|
|
156391
|
-
|
|
156392
|
-
|
|
156393
|
-
|
|
156394
|
-
|
|
156395
|
-
|
|
156396
|
-
});
|
|
156397
|
-
}
|
|
156458
|
+
if (node.length > 0) node.forEach(a => {
|
|
156459
|
+
if (a && a.componentInstance) {
|
|
156460
|
+
let item = a.componentInstance;
|
|
156461
|
+
if (item.$children && item.$children.length && item.$children.length > 0) recursion(item.$children);
|
|
156462
|
+
if (item.result && item.result()) data.push(item.result());
|
|
156463
|
+
if (item.verify && !item.verify()) pass = false;
|
|
156464
|
+
} else {
|
|
156465
|
+
if (a.result && a.result()) data.push(a.result());
|
|
156466
|
+
if (a.verify && !a.verify()) pass = false;
|
|
156467
|
+
}
|
|
156468
|
+
});
|
|
156398
156469
|
})(elements);
|
|
156399
156470
|
|
|
156400
156471
|
if (this.verify && pass == false) return false;
|
|
156401
|
-
let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] :
|
|
156472
|
+
let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
|
|
156402
156473
|
return params;
|
|
156403
156474
|
},
|
|
156404
156475
|
|
|
156405
156476
|
finish(e) {
|
|
156406
156477
|
e.preventDefault();
|
|
156407
|
-
this.$emit('finish', this.format());
|
|
156478
|
+
if (this.format()) this.$emit('finish', this.format());
|
|
156408
156479
|
},
|
|
156409
156480
|
|
|
156410
156481
|
submit(e) {
|
|
156411
156482
|
e.preventDefault();
|
|
156412
|
-
this.$emit('submit', this.format());
|
|
156483
|
+
if (this.format()) this.$emit('submit', this.format());
|
|
156413
156484
|
},
|
|
156414
156485
|
|
|
156415
156486
|
reject(e) {
|
|
@@ -164980,6 +165051,19 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
164980
165051
|
this.update();
|
|
164981
165052
|
},
|
|
164982
165053
|
|
|
165054
|
+
destroyed() {
|
|
165055
|
+
this.create = null;
|
|
165056
|
+
this.update = null;
|
|
165057
|
+
this.submit = null;
|
|
165058
|
+
this.cancel = null;
|
|
165059
|
+
this.filter = null;
|
|
165060
|
+
this.result = null;
|
|
165061
|
+
this.switch = null;
|
|
165062
|
+
this.prompt = null;
|
|
165063
|
+
this.format = null;
|
|
165064
|
+
this.output = null;
|
|
165065
|
+
},
|
|
165066
|
+
|
|
164983
165067
|
watch: {
|
|
164984
165068
|
values() {
|
|
164985
165069
|
this.create();
|
|
@@ -165071,11 +165155,11 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
165071
165155
|
}
|
|
165072
165156
|
},
|
|
165073
165157
|
|
|
165074
|
-
filter(form) {
|
|
165158
|
+
filter(form = {}) {
|
|
165075
165159
|
const data = {};
|
|
165076
165160
|
|
|
165077
165161
|
for (let a in form) {
|
|
165078
|
-
if (form[a] != '' && form[a] != '%%' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
|
|
165162
|
+
if (form[a] != '' && form[a] != '%%' && form[a] != 'null' && form[a] != 'undefined' && form[a] != null && form[a] != undefined) data[a] = form[a];
|
|
165079
165163
|
}
|
|
165080
165164
|
|
|
165081
165165
|
return data;
|
|
@@ -165151,8 +165235,8 @@ const AformItem = a => Promise.resolve(/* AMD require */).then(function() { var
|
|
|
165151
165235
|
render() {
|
|
165152
165236
|
const h = arguments[0];
|
|
165153
165237
|
const {
|
|
165154
|
-
submit,
|
|
165155
|
-
cancel
|
|
165238
|
+
submit = null,
|
|
165239
|
+
cancel = null
|
|
165156
165240
|
} = this.$listeners;
|
|
165157
165241
|
return h("keep-alive", [h("div", {
|
|
165158
165242
|
"class": "b-f-search",
|