mirror of https://github.com/ElemeFE/element
Table: init filters.
parent
6287da4ac3
commit
d652e73f74
|
@ -369,6 +369,16 @@
|
||||||
this.bindEvents();
|
this.bindEvents();
|
||||||
this.doLayout();
|
this.doLayout();
|
||||||
|
|
||||||
|
// init filters
|
||||||
|
this.store.states.columns.forEach(column => {
|
||||||
|
if (column.filteredValue && column.filteredValue.length) {
|
||||||
|
this.store.commit('filterChange', {
|
||||||
|
column,
|
||||||
|
values: column.filteredValue
|
||||||
|
});
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
this.$ready = true;
|
this.$ready = true;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue