fantasy-ngzorro 1.1.33 → 1.1.35
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 +37 -6
- 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-detail-form/hd-detail-form.component.js +25 -7
- package/esm2015/hd-form/hd-form.component.js +10 -1
- package/esm5/hd-detail-form/hd-detail-form.component.js +29 -7
- package/esm5/hd-form/hd-form.component.js +10 -1
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +33 -6
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +37 -6
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-detail-form/hd-detail-form.component.d.ts +2 -1
- package/package.json +1 -1
|
@@ -452,12 +452,34 @@
|
|
|
452
452
|
* @return {?}
|
|
453
453
|
*/
|
|
454
454
|
function () {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
455
|
+
if (this.formCols && this.formCols.length > 0) {
|
|
456
|
+
// 剔除掉formCols里面不需要显示的内容
|
|
457
|
+
this.formCols = this.formCols.filter((/**
|
|
458
|
+
* @param {?} item
|
|
459
|
+
* @return {?}
|
|
460
|
+
*/
|
|
461
|
+
function (item) { return !item.hide; }));
|
|
462
|
+
}
|
|
463
|
+
};
|
|
464
|
+
/**
|
|
465
|
+
* @param {?} changes
|
|
466
|
+
* @return {?}
|
|
467
|
+
*/
|
|
468
|
+
HdDetailFormComponent.prototype.ngOnChanges = /**
|
|
469
|
+
* @param {?} changes
|
|
470
|
+
* @return {?}
|
|
471
|
+
*/
|
|
472
|
+
function (changes) {
|
|
473
|
+
if (changes['formCols'] && JSON.stringify(changes['formCols'].currentValue) !== JSON.stringify(changes['formCols'].previousValue)) {
|
|
474
|
+
if (this.formCols && this.formCols.length > 0) {
|
|
475
|
+
// 剔除掉formCols里面不需要显示的内容
|
|
476
|
+
this.formCols = this.formCols.filter((/**
|
|
477
|
+
* @param {?} item
|
|
478
|
+
* @return {?}
|
|
479
|
+
*/
|
|
480
|
+
function (item) { return !item.hide; }));
|
|
481
|
+
}
|
|
482
|
+
}
|
|
461
483
|
};
|
|
462
484
|
HdDetailFormComponent.decorators = [
|
|
463
485
|
{ type: core.Component, args: [{
|
|
@@ -2335,6 +2357,9 @@
|
|
|
2335
2357
|
* @return {?}
|
|
2336
2358
|
*/
|
|
2337
2359
|
function () {
|
|
2360
|
+
if (!this.formList || this.formList.length === 0) {
|
|
2361
|
+
return;
|
|
2362
|
+
}
|
|
2338
2363
|
this.init();
|
|
2339
2364
|
};
|
|
2340
2365
|
/**
|
|
@@ -2346,6 +2371,12 @@
|
|
|
2346
2371
|
* @return {?}
|
|
2347
2372
|
*/
|
|
2348
2373
|
function (changes) {
|
|
2374
|
+
if (changes['formList'] && JSON.stringify(changes['formList'].currentValue) !== JSON.stringify(changes['formList'].previousValue)) {
|
|
2375
|
+
if (!this.formList || this.formList.length === 0) {
|
|
2376
|
+
return;
|
|
2377
|
+
}
|
|
2378
|
+
this.init();
|
|
2379
|
+
}
|
|
2349
2380
|
this.dealRow();
|
|
2350
2381
|
};
|
|
2351
2382
|
/**
|