@tripup-company/element-ui-extended 0.0.99 → 0.0.100

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tripup-company/element-ui-extended",
3
- "version": "0.0.99",
3
+ "version": "0.0.100",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve && tsc --emitDeclarationOnly",
@@ -269,14 +269,18 @@ export default {
269
269
  this.listQueryService.updateListQuery({ search: this.search });
270
270
  this.handleFilterChange();
271
271
  },
272
- handleResetFilter() {
273
- for (const column in this.search) {
274
- this.search[column] = Object.assign(this.search[column], {
275
- operator: "",
276
- value: "",
277
- });
272
+ handleResetFilter(search) {
273
+ if (search && Object.keys(search).length) {
274
+ this.search = search;
275
+ } else {
276
+ for (const column in this.search) {
277
+ this.search[column] = Object.assign(this.search[column], {
278
+ operator: "",
279
+ value: "",
280
+ });
281
+ }
278
282
  }
279
- this.listQueryService.updateListQuery({ search: {} });
283
+ this.listQueryService.updateListQuery({ search: this.search });
280
284
  this.handleFilterChange({});
281
285
  },
282
286
  handleApplyTopFilter(topSearch) {