fantasy-ngzorro 1.1.33 → 1.1.34

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.
@@ -452,12 +452,34 @@
452
452
  * @return {?}
453
453
  */
454
454
  function () {
455
- // 剔除掉formCols里面不需要显示的内容
456
- this.formCols = this.formCols.filter((/**
457
- * @param {?} item
458
- * @return {?}
459
- */
460
- function (item) { return !item.hide; }));
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: [{