fantasy-ngzorro 1.3.44 → 1.3.45
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 +18 -2
- 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 +15 -3
- package/esm5/hd-form-lines/hd-form-lines.component.js +19 -3
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +14 -2
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +18 -2
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-form-lines/hd-form-lines.component.d.ts +1 -0
- package/package.json +1 -1
|
@@ -2467,7 +2467,7 @@
|
|
|
2467
2467
|
function (item) {
|
|
2468
2468
|
// 新增行 初始数据都为null
|
|
2469
2469
|
formGroupObj[item.name] = _this.fb.control({
|
|
2470
|
-
value: formLinesDataItem[item.name]
|
|
2470
|
+
value: _this.judgeValueIsNotEmpty(formLinesDataItem[item.name]) ? formLinesDataItem[item.name] : (item.value || null),
|
|
2471
2471
|
disabled: item.disabled
|
|
2472
2472
|
}, item.require ? [forms.Validators.required] : []);
|
|
2473
2473
|
if (item.selectOption && item.selectOption.label) {
|
|
@@ -2871,7 +2871,7 @@
|
|
|
2871
2871
|
function (item) {
|
|
2872
2872
|
// 新增行 初始数据都为null
|
|
2873
2873
|
formGroupObj[item.name] = _this.fb.control({
|
|
2874
|
-
value: formLinesDataItem[item.name]
|
|
2874
|
+
value: _this.judgeValueIsNotEmpty(formLinesDataItem[item.name]) ? formLinesDataItem[item.name] : (item.value || null),
|
|
2875
2875
|
disabled: item.disabled
|
|
2876
2876
|
}, item.require ? [forms.Validators.required] : []);
|
|
2877
2877
|
if (item.selectOption && item.selectOption.label) {
|
|
@@ -3306,6 +3306,22 @@
|
|
|
3306
3306
|
return '<空>';
|
|
3307
3307
|
}
|
|
3308
3308
|
};
|
|
3309
|
+
/**
|
|
3310
|
+
* @param {?} str
|
|
3311
|
+
* @return {?}
|
|
3312
|
+
*/
|
|
3313
|
+
HdFormLinesComponent.prototype.judgeValueIsNotEmpty = /**
|
|
3314
|
+
* @param {?} str
|
|
3315
|
+
* @return {?}
|
|
3316
|
+
*/
|
|
3317
|
+
function (str) {
|
|
3318
|
+
if (str === null && str === undefined) {
|
|
3319
|
+
return false;
|
|
3320
|
+
}
|
|
3321
|
+
else {
|
|
3322
|
+
return true;
|
|
3323
|
+
}
|
|
3324
|
+
};
|
|
3309
3325
|
HdFormLinesComponent.decorators = [
|
|
3310
3326
|
{ type: core.Component, args: [{
|
|
3311
3327
|
selector: 'hd-form-lines',
|