@tripup-company/element-ui-extended 0.0.16 → 0.0.17

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.16",
3
+ "version": "0.0.17",
4
4
  "main": "./dist/element-ui-extended.umd.js",
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -230,8 +230,8 @@ export default {
230
230
  handleFilterChange() {
231
231
  this.handleCurrentChange(1);
232
232
  },
233
- handleApplyFilter() {
234
- this.listQueryService.updateListQuery({ search: this.search });
233
+ handleApplyFilter(val) {
234
+ this.listQueryService.updateListQuery({ search: val });
235
235
  this.handleFilterChange();
236
236
  },
237
237
  handleResetFilter() {
@@ -244,8 +244,8 @@ export default {
244
244
  this.listQueryService.updateListQuery({ search: {} });
245
245
  this.handleFilterChange({});
246
246
  },
247
- handleApplyTopFilter() {
248
- this.listQueryService.updateListQuery({ topSearch: this.topSearch });
247
+ handleApplyTopFilter(val) {
248
+ this.listQueryService.updateListQuery({ topSearch: val });
249
249
  this.handleFilterChange();
250
250
  },
251
251
  handleResetTopFilter() {
@@ -32,7 +32,7 @@ export default {
32
32
  },
33
33
  methods: {
34
34
  applyFilter() {
35
- this.$emit("apply:filter");
35
+ this.$emit("apply:filter", this.search);
36
36
  },
37
37
  resetFilter() {
38
38
  this.$emit("reset:filter");
@@ -35,11 +35,8 @@ name: "GenericFilter",
35
35
  };
36
36
  },
37
37
  methods: {
38
- getFilter() {
39
- return this.filterConvertor.applyFilter(this.search);
40
- },
41
38
  applyFilter() {
42
- this.$emit('apply:filter', this.filterConvertor.applyFilter(this.search) );
39
+ this.$emit('apply:filter', this.search);
43
40
  },
44
41
  resetFilter() {
45
42
  this.$emit('reset:filter', {});
@@ -25,7 +25,8 @@ export default class ListQueryService {
25
25
  meta: {
26
26
  page: 1,
27
27
  limit: 10,
28
- }
28
+ },
29
+ search: {},
29
30
  };
30
31
  listQuery = Object.assign(listQuery, this.storageService.get(this.key));
31
32
  return listQuery;