fantasy-ngzorro 1.3.46 → 1.3.47

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.
@@ -1079,7 +1079,8 @@ var HdFilterComponent = /** @class */ (function () {
1079
1079
  * @return {?}
1080
1080
  */
1081
1081
  function () {
1082
- this.validateFilterForm.reset();
1082
+ this.resetFilterFormWithValue();
1083
+ // this.validateFilterForm.reset();
1083
1084
  if (this.resetEvent.observers.length > 0) {
1084
1085
  // 如果有父组件绑定了 resetEvent 的处理器
1085
1086
  this.resetEvent.emit(this.validateFilterForm.getRawValue());
@@ -1089,6 +1090,33 @@ var HdFilterComponent = /** @class */ (function () {
1089
1090
  this.searchEvent.emit(this.validateFilterForm.getRawValue());
1090
1091
  }
1091
1092
  };
1093
+ /**
1094
+ * 带初始值重置表单
1095
+ */
1096
+ /**
1097
+ * 带初始值重置表单
1098
+ * @return {?}
1099
+ */
1100
+ HdFilterComponent.prototype.resetFilterFormWithValue = /**
1101
+ * 带初始值重置表单
1102
+ * @return {?}
1103
+ */
1104
+ function () {
1105
+ var _this = this;
1106
+ /** @type {?} */
1107
+ var formGroupList = {};
1108
+ this.filterList.forEach((/**
1109
+ * @param {?} item
1110
+ * @param {?} index
1111
+ * @return {?}
1112
+ */
1113
+ function (item, index) {
1114
+ formGroupList[item.name] = _this.fb.control(item.value, []);
1115
+ // 初始化控件显影
1116
+ item.show = index < 7;
1117
+ }));
1118
+ this.validateFilterForm = this.fb.group(formGroupList);
1119
+ };
1092
1120
  /**
1093
1121
  * @return {?}
1094
1122
  */