Commit 19183ec23cb2e7ec5df72c98de1b17b5f63bb499
1 parent
d9cbf61e
toggleSelectAll method should only operate on filtered data
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/transfer/list.vue
@@ -118,8 +118,8 @@ | @@ -118,8 +118,8 @@ | ||
118 | }, | 118 | }, |
119 | toggleSelectAll (status) { | 119 | toggleSelectAll (status) { |
120 | const keys = status ? | 120 | const keys = status ? |
121 | - this.data.filter(data => !data.disabled || this.checkedKeys.indexOf(data.key) > -1).map(data => data.key) : | ||
122 | - this.data.filter(data => data.disabled && this.checkedKeys.indexOf(data.key) > -1).map(data => data.key); | 121 | + this.filterData.filter(data => !data.disabled || this.checkedKeys.indexOf(data.key) > -1).map(data => data.key) : |
122 | + this.filterData.filter(data => data.disabled && this.checkedKeys.indexOf(data.key) > -1).map(data => data.key); | ||
123 | this.$emit('on-checked-keys-change', keys); | 123 | this.$emit('on-checked-keys-change', keys); |
124 | }, | 124 | }, |
125 | handleQueryClear () { | 125 | handleQueryClear () { |