fantasy-ngzorro 1.0.52 → 1.0.53
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/bundles/fantasy-ngzorro.umd.js +26 -0
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-form-lines/hd-form-lines.component.js +25 -2
- package/esm5/hd-form-lines/hd-form-lines.component.js +27 -1
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +24 -1
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +26 -0
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-form-lines/hd-form-lines.component.d.ts +2 -0
- package/package.json +1 -1
|
@@ -1758,6 +1758,8 @@
|
|
|
1758
1758
|
this.filterIndexStore = []; // 筛选出来的数据在原始列表中的下标
|
|
1759
1759
|
// 筛选出来的数据在原始列表中的下标
|
|
1760
1760
|
this.isFilterData = false; // 是否是已经筛选过的数据
|
|
1761
|
+
// 是否是已经筛选过的数据
|
|
1762
|
+
this.formValid = false; // 表单当前的状态
|
|
1761
1763
|
}
|
|
1762
1764
|
/**
|
|
1763
1765
|
* @return {?}
|
|
@@ -1800,6 +1802,15 @@
|
|
|
1800
1802
|
/**
|
|
1801
1803
|
* @return {?}
|
|
1802
1804
|
*/
|
|
1805
|
+
function () {
|
|
1806
|
+
return this.formValid;
|
|
1807
|
+
};
|
|
1808
|
+
/**
|
|
1809
|
+
* @return {?}
|
|
1810
|
+
*/
|
|
1811
|
+
HdFormLinesComponent.prototype.innerGetValid = /**
|
|
1812
|
+
* @return {?}
|
|
1813
|
+
*/
|
|
1803
1814
|
function () {
|
|
1804
1815
|
var _this = this;
|
|
1805
1816
|
/** @type {?} */
|
|
@@ -2352,6 +2363,19 @@
|
|
|
2352
2363
|
this.storeFormLinesData = data.lines;
|
|
2353
2364
|
}
|
|
2354
2365
|
}
|
|
2366
|
+
if (this.formValid) {
|
|
2367
|
+
// 如果整体表单是true,不管子表单是什么,都变成子表单的状态
|
|
2368
|
+
this.formValid = this.validateHdFormLines.valid;
|
|
2369
|
+
}
|
|
2370
|
+
else {
|
|
2371
|
+
// 如果整体表单是false:1、子表单为true,需要重算;2、子表单为false,用子表单状态
|
|
2372
|
+
if (this.validateHdFormLines.valid) {
|
|
2373
|
+
this.formValid = this.innerGetValid();
|
|
2374
|
+
}
|
|
2375
|
+
else {
|
|
2376
|
+
this.formValid = this.validateHdFormLines.valid;
|
|
2377
|
+
}
|
|
2378
|
+
}
|
|
2355
2379
|
// this.calculateLineNumber();
|
|
2356
2380
|
this.changeEvent.emit(this.validateHdFormLines);
|
|
2357
2381
|
};
|
|
@@ -2545,6 +2569,8 @@
|
|
|
2545
2569
|
HdFormLinesComponent.prototype.filterIndexStore;
|
|
2546
2570
|
/** @type {?} */
|
|
2547
2571
|
HdFormLinesComponent.prototype.isFilterData;
|
|
2572
|
+
/** @type {?} */
|
|
2573
|
+
HdFormLinesComponent.prototype.formValid;
|
|
2548
2574
|
/**
|
|
2549
2575
|
* @type {?}
|
|
2550
2576
|
* @private
|