element-ui-root 2.6.9 → 2.7.0
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 +28 -16
- package/dist/index.umd.js +28 -16
- package/dist/index.umd.min.js +1 -1
- package/package.json +1 -1
package/dist/index.common.js
CHANGED
|
@@ -134578,6 +134578,15 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134578
134578
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
134579
134579
|
},
|
|
134580
134580
|
|
|
134581
|
+
beforeDestroy() {
|
|
134582
|
+
this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
|
|
134583
|
+
},
|
|
134584
|
+
|
|
134585
|
+
destroyed() {
|
|
134586
|
+
this.create = null;
|
|
134587
|
+
this.format = null;
|
|
134588
|
+
},
|
|
134589
|
+
|
|
134581
134590
|
methods: {
|
|
134582
134591
|
create(column = []) {
|
|
134583
134592
|
const h = this.$createElement;
|
|
@@ -156366,6 +156375,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156366
156375
|
default: () => '取消'
|
|
156367
156376
|
}
|
|
156368
156377
|
},
|
|
156378
|
+
|
|
156379
|
+
destroyed() {
|
|
156380
|
+
this.format = null;
|
|
156381
|
+
},
|
|
156382
|
+
|
|
156369
156383
|
methods: {
|
|
156370
156384
|
format() {
|
|
156371
156385
|
let data = [];
|
|
@@ -156373,34 +156387,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156373
156387
|
let elements = this.$slots.default;
|
|
156374
156388
|
|
|
156375
156389
|
(function recursion(node = []) {
|
|
156376
|
-
if (node.length > 0) {
|
|
156377
|
-
|
|
156378
|
-
|
|
156379
|
-
|
|
156380
|
-
|
|
156381
|
-
|
|
156382
|
-
|
|
156383
|
-
|
|
156384
|
-
|
|
156385
|
-
|
|
156386
|
-
|
|
156387
|
-
});
|
|
156388
|
-
}
|
|
156390
|
+
if (node.length > 0) node.forEach(a => {
|
|
156391
|
+
if (a && a.componentInstance) {
|
|
156392
|
+
let item = a.componentInstance;
|
|
156393
|
+
if (item.$children && item.$children.length && item.$children.length > 0) recursion(item.$children);
|
|
156394
|
+
if (item.result && item.result()) data.push(item.result());
|
|
156395
|
+
if (item.verify && !item.verify()) pass = false;
|
|
156396
|
+
} else {
|
|
156397
|
+
if (a.result && a.result()) data.push(a.result());
|
|
156398
|
+
if (a.verify && !a.verify()) pass = false;
|
|
156399
|
+
}
|
|
156400
|
+
});
|
|
156389
156401
|
})(elements);
|
|
156390
156402
|
|
|
156391
156403
|
if (this.verify && pass == false) return false;
|
|
156392
|
-
let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] :
|
|
156404
|
+
let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
|
|
156393
156405
|
return params;
|
|
156394
156406
|
},
|
|
156395
156407
|
|
|
156396
156408
|
finish(e) {
|
|
156397
156409
|
e.preventDefault();
|
|
156398
|
-
this.$emit('finish', this.format());
|
|
156410
|
+
if (this.format()) this.$emit('finish', this.format());
|
|
156399
156411
|
},
|
|
156400
156412
|
|
|
156401
156413
|
submit(e) {
|
|
156402
156414
|
e.preventDefault();
|
|
156403
|
-
this.$emit('submit', this.format());
|
|
156415
|
+
if (this.format()) this.$emit('submit', this.format());
|
|
156404
156416
|
},
|
|
156405
156417
|
|
|
156406
156418
|
reject(e) {
|
package/dist/index.umd.js
CHANGED
|
@@ -134587,6 +134587,15 @@ const Aempty = a => Promise.resolve(/* AMD require */).then(function() { var __W
|
|
|
134587
134587
|
this.$refs['a-table'].bodyWrapper.addEventListener('wheel', this.scroll);
|
|
134588
134588
|
},
|
|
134589
134589
|
|
|
134590
|
+
beforeDestroy() {
|
|
134591
|
+
this.$refs['a-table'].bodyWrapper.removeEventListener('wheel', this.scroll);
|
|
134592
|
+
},
|
|
134593
|
+
|
|
134594
|
+
destroyed() {
|
|
134595
|
+
this.create = null;
|
|
134596
|
+
this.format = null;
|
|
134597
|
+
},
|
|
134598
|
+
|
|
134590
134599
|
methods: {
|
|
134591
134600
|
create(column = []) {
|
|
134592
134601
|
const h = this.$createElement;
|
|
@@ -156375,6 +156384,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156375
156384
|
default: () => '取消'
|
|
156376
156385
|
}
|
|
156377
156386
|
},
|
|
156387
|
+
|
|
156388
|
+
destroyed() {
|
|
156389
|
+
this.format = null;
|
|
156390
|
+
},
|
|
156391
|
+
|
|
156378
156392
|
methods: {
|
|
156379
156393
|
format() {
|
|
156380
156394
|
let data = [];
|
|
@@ -156382,34 +156396,32 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
156382
156396
|
let elements = this.$slots.default;
|
|
156383
156397
|
|
|
156384
156398
|
(function recursion(node = []) {
|
|
156385
|
-
if (node.length > 0) {
|
|
156386
|
-
|
|
156387
|
-
|
|
156388
|
-
|
|
156389
|
-
|
|
156390
|
-
|
|
156391
|
-
|
|
156392
|
-
|
|
156393
|
-
|
|
156394
|
-
|
|
156395
|
-
|
|
156396
|
-
});
|
|
156397
|
-
}
|
|
156399
|
+
if (node.length > 0) node.forEach(a => {
|
|
156400
|
+
if (a && a.componentInstance) {
|
|
156401
|
+
let item = a.componentInstance;
|
|
156402
|
+
if (item.$children && item.$children.length && item.$children.length > 0) recursion(item.$children);
|
|
156403
|
+
if (item.result && item.result()) data.push(item.result());
|
|
156404
|
+
if (item.verify && !item.verify()) pass = false;
|
|
156405
|
+
} else {
|
|
156406
|
+
if (a.result && a.result()) data.push(a.result());
|
|
156407
|
+
if (a.verify && !a.verify()) pass = false;
|
|
156408
|
+
}
|
|
156409
|
+
});
|
|
156398
156410
|
})(elements);
|
|
156399
156411
|
|
|
156400
156412
|
if (this.verify && pass == false) return false;
|
|
156401
|
-
let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] :
|
|
156413
|
+
let params = data.length && data.length > 0 ? data.length && data.length > 1 ? data : data[0] : null;
|
|
156402
156414
|
return params;
|
|
156403
156415
|
},
|
|
156404
156416
|
|
|
156405
156417
|
finish(e) {
|
|
156406
156418
|
e.preventDefault();
|
|
156407
|
-
this.$emit('finish', this.format());
|
|
156419
|
+
if (this.format()) this.$emit('finish', this.format());
|
|
156408
156420
|
},
|
|
156409
156421
|
|
|
156410
156422
|
submit(e) {
|
|
156411
156423
|
e.preventDefault();
|
|
156412
|
-
this.$emit('submit', this.format());
|
|
156424
|
+
if (this.format()) this.$emit('submit', this.format());
|
|
156413
156425
|
},
|
|
156414
156426
|
|
|
156415
156427
|
reject(e) {
|