fantasy-ngzorro 1.1.32 → 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,6 +452,34 @@
452
452
  * @return {?}
453
453
  */
454
454
  function () {
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
+ }
455
483
  };
456
484
  HdDetailFormComponent.decorators = [
457
485
  { type: core.Component, args: [{
@@ -542,6 +570,8 @@
542
570
  HdOption.prototype.value;
543
571
  /** @type {?} */
544
572
  HdOption.prototype.color;
573
+ /** @type {?} */
574
+ HdOption.prototype.hide;
545
575
  }
546
576
  var SelectOption = /** @class */ (function () {
547
577
  function SelectOption() {