fantasy-ngzorro 1.3.27 → 1.3.29

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.
@@ -1133,7 +1133,7 @@
1133
1133
  function HdFilterComponent(fb) {
1134
1134
  this.fb = fb;
1135
1135
  this.searchEvent = new core.EventEmitter();
1136
- this.resetEvent = null;
1136
+ this.resetEvent = new core.EventEmitter();
1137
1137
  this.isShowMore = true;
1138
1138
  // 对filterList取模运算
1139
1139
  this.filterListModular = 0;
@@ -1274,10 +1274,12 @@
1274
1274
  */
1275
1275
  function () {
1276
1276
  this.validateFilterForm.reset();
1277
- if (this.resetEvent) {
1277
+ if (this.resetEvent.observers.length > 0) {
1278
+ // 如果有父组件绑定了 resetEvent 的处理器
1278
1279
  this.resetEvent.emit(this.validateFilterForm.getRawValue());
1279
1280
  }
1280
1281
  else {
1282
+ // 如果没有绑定处理器,则触发 searchEvent
1281
1283
  this.searchEvent.emit(this.validateFilterForm.getRawValue());
1282
1284
  }
1283
1285
  };
@@ -4557,7 +4559,7 @@
4557
4559
  // 操作列宽度
4558
4560
  numberColWidth: 100,
4559
4561
  // 数字列
4560
- remarkColwidth: 250,
4562
+ remarkColWidth: 250,
4561
4563
  // 备注列
4562
4564
  fixColWidth: 150,
4563
4565
  // 不属于以上内容的列统一使用该宽度,增加超长省略