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.
@@ -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: [{
@@ -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
  /**