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.
- package/bundles/fantasy-ngzorro.umd.js +5 -3
- 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/esm2015/model/colWidth.js +2 -2
- package/esm5/hd-filter/hd-filter.component.js +5 -3
- package/esm5/model/colWidth.js +2 -2
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +5 -3
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +5 -3
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-filter/hd-filter.component.d.ts +1 -1
- package/model/colWidth.d.ts +1 -1
- package/package.json +1 -1
|
@@ -812,7 +812,7 @@ class HdFilterComponent {
|
|
|
812
812
|
constructor(fb) {
|
|
813
813
|
this.fb = fb;
|
|
814
814
|
this.searchEvent = new EventEmitter();
|
|
815
|
-
this.resetEvent =
|
|
815
|
+
this.resetEvent = new EventEmitter();
|
|
816
816
|
this.isShowMore = true;
|
|
817
817
|
// 对filterList取模运算
|
|
818
818
|
this.filterListModular = 0;
|
|
@@ -922,10 +922,12 @@ class HdFilterComponent {
|
|
|
922
922
|
*/
|
|
923
923
|
resetForm() {
|
|
924
924
|
this.validateFilterForm.reset();
|
|
925
|
-
if (this.resetEvent) {
|
|
925
|
+
if (this.resetEvent.observers.length > 0) {
|
|
926
|
+
// 如果有父组件绑定了 resetEvent 的处理器
|
|
926
927
|
this.resetEvent.emit(this.validateFilterForm.getRawValue());
|
|
927
928
|
}
|
|
928
929
|
else {
|
|
930
|
+
// 如果没有绑定处理器,则触发 searchEvent
|
|
929
931
|
this.searchEvent.emit(this.validateFilterForm.getRawValue());
|
|
930
932
|
}
|
|
931
933
|
}
|
|
@@ -3713,7 +3715,7 @@ const ColWidth = {
|
|
|
3713
3715
|
// 操作列宽度
|
|
3714
3716
|
numberColWidth: 100,
|
|
3715
3717
|
// 数字列
|
|
3716
|
-
|
|
3718
|
+
remarkColWidth: 250,
|
|
3717
3719
|
// 备注列
|
|
3718
3720
|
fixColWidth: 150,
|
|
3719
3721
|
// 不属于以上内容的列统一使用该宽度,增加超长省略
|