From 6c634aa6319f6173ea7765be40840fefdf2676f0 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Mon, 23 Oct 2017 19:01:47 +0800 Subject: [PATCH] fixed #2078 --- examples/routers/table.vue | 603 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- src/components/table/table.vue | 2 ++ 2 files changed, 358 insertions(+), 247 deletions(-) diff --git a/examples/routers/table.vue b/examples/routers/table.vue index 42db973..e5cd87b 100644 --- a/examples/routers/table.vue +++ b/examples/routers/table.vue @@ -109,292 +109,401 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/src/components/table/table.vue b/src/components/table/table.vue index 0cc801e..6787078 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); -- libgit2 0.21.4