Table: init filters.

pull/4039/merge
Liril 2017-04-05 18:45:10 +08:00 committed by 杨奕
parent 6287da4ac3
commit d652e73f74
1 changed files with 10 additions and 0 deletions

View File

@ -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;
}, },