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.
- package/bundles/fantasy-ngzorro.umd.js +29 -1
- 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 +22 -2
- package/esm5/hd-filter/hd-filter.component.js +30 -2
- package/fantasy-ngzorro.metadata.json +1 -1
- package/fesm2015/fantasy-ngzorro.js +21 -1
- package/fesm2015/fantasy-ngzorro.js.map +1 -1
- package/fesm5/fantasy-ngzorro.js +29 -1
- package/fesm5/fantasy-ngzorro.js.map +1 -1
- package/hd-filter/hd-filter.component.d.ts +4 -0
- package/package.json +1 -1
|
@@ -1284,7 +1284,8 @@
|
|
|
1284
1284
|
* @return {?}
|
|
1285
1285
|
*/
|
|
1286
1286
|
function () {
|
|
1287
|
-
this.
|
|
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
|
*/
|