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.
@@ -1284,7 +1284,8 @@
1284
1284
  * @return {?}
1285
1285
  */
1286
1286
  function () {
1287
- this.validateFilterForm.reset();
1287
+ this.resetFilterFormWithValue();
1288
+ // this.validateFilterForm.reset();
1288
1289
  if (this.resetEvent.observers.length > 0) {
1289
1290
  // 如果有父组件绑定了 resetEvent 的处理器
1290
1291
  this.resetEvent.emit(this.validateFilterForm.getRawValue());
@@ -1294,6 +1295,33 @@
1294
1295
  this.searchEvent.emit(this.validateFilterForm.getRawValue());
1295
1296
  }
1296
1297
  };
1298
+ /**
1299
+ * 带初始值重置表单
1300
+ */
1301
+ /**
1302
+ * 带初始值重置表单
1303
+ * @return {?}
1304
+ */
1305
+ HdFilterComponent.prototype.resetFilterFormWithValue = /**
1306
+ * 带初始值重置表单
1307
+ * @return {?}
1308
+ */
1309
+ function () {
1310
+ var _this = this;
1311
+ /** @type {?} */
1312
+ var formGroupList = {};
1313
+ this.filterList.forEach((/**
1314
+ * @param {?} item
1315
+ * @param {?} index
1316
+ * @return {?}
1317
+ */
1318
+ function (item, index) {
1319
+ formGroupList[item.name] = _this.fb.control(item.value, []);
1320
+ // 初始化控件显影
1321
+ item.show = index < 7;
1322
+ }));
1323
+ this.validateFilterForm = this.fb.group(formGroupList);
1324
+ };
1297
1325
  /**
1298
1326
  * @return {?}
1299
1327
  */