Commit bdc80049181ba06ff634474337050bcd85cfbd92
1 parent
19183ec2
checkbox‘s status is also depends on filtered data
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/components/transfer/list.vue
| @@ -83,10 +83,10 @@ | @@ -83,10 +83,10 @@ | ||
| 83 | return (validKeysCount > 0 ? `${validKeysCount}/` : '') + `${this.data.length}`; | 83 | return (validKeysCount > 0 ? `${validKeysCount}/` : '') + `${this.data.length}`; |
| 84 | }, | 84 | }, |
| 85 | checkedAll () { | 85 | checkedAll () { |
| 86 | - return this.data.filter(data => !data.disabled).length === this.validKeysCount && this.validKeysCount !== 0; | 86 | + return this.filterData.filter(data => !data.disabled).length === this.validKeysCount && this.validKeysCount !== 0; |
| 87 | }, | 87 | }, |
| 88 | checkedAllDisabled () { | 88 | checkedAllDisabled () { |
| 89 | - return this.data.filter(data => !data.disabled).length <= 0; | 89 | + return this.filterData.filter(data => !data.disabled).length <= 0; |
| 90 | }, | 90 | }, |
| 91 | filterData () { | 91 | filterData () { |
| 92 | return this.showItems.filter(item => this.filterMethod(item, this.query)); | 92 | return this.showItems.filter(item => this.filterMethod(item, this.query)); |