diff --git a/examples/routers/table.vue b/examples/routers/table.vue index 42db9730..e5cd87be 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -109,124 +109,320 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 0cc801e7..67870784 100644 --- a/src/components/table/table.vue +++ b/src/components/table/table.vue @@ -574,6 +574,7 @@ this.cloneColumns[index]._isFiltered = true; this.cloneColumns[index]._filterVisible = false; + this.$emit('on-filter-change', column); }, handleFilterSelect (index, value) { this.cloneColumns[index]._filterChecked = [value]; @@ -587,6 +588,7 @@ let filterData = this.makeDataWithSort(); filterData = this.filterOtherData(filterData, index); this.rebuildData = filterData; + this.$emit('on-filter-change', this.cloneColumns[index]); }, makeData () { let data = deepCopy(this.data);