fantasy-ngzorro 1.3.27 → 1.3.28
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.
- package/bundles/fantasy-ngzorro.umd.js +4 -2
- package/bundles/fantasy-ngzorro.umd.js.map +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js +1 -1
- package/bundles/fantasy-ngzorro.umd.min.js.map +1 -1
- package/esm2015/hd-filter/hd-filter.component.js +5 -3
- package/esm5/hd-filter/hd-filter.component.js +5 -3
- package/fesm2015/fantasy-ngzorro.js +4 -2
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +4 -2
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-filter/hd-filter.component.d.ts +1 -1
- package/package.json +1 -1
|
@@ -1133,7 +1133,7 @@
|
|
|
1133
1133
|
function HdFilterComponent(fb) {
|
|
1134
1134
|
this.fb = fb;
|
|
1135
1135
|
this.searchEvent = new core.EventEmitter();
|
|
1136
|
-
this.resetEvent =
|
|
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
|
};
|