fix select first element on table filter bug

pull/2408/head
吴亮 2017-01-12 10:20:49 +08:00 committed by 杨奕
parent 5eefd27af5
commit 6362cbce30
1 changed files with 2 additions and 2 deletions

View File

@ -93,7 +93,7 @@
handleSelect(filterValue) { handleSelect(filterValue) {
this.filterValue = filterValue; this.filterValue = filterValue;
if (filterValue) { if (filterValue || filterValue === 0) {
this.confirmFilter(this.filteredValue); this.confirmFilter(this.filteredValue);
} else { } else {
this.confirmFilter([]); this.confirmFilter([]);
@ -129,7 +129,7 @@
}, },
set(value) { set(value) {
if (this.filteredValue) { if (this.filteredValue) {
if (value) { if (value || value === 0) {
this.filteredValue.splice(0, 1, value); this.filteredValue.splice(0, 1, value);
} else { } else {
this.filteredValue.splice(0, 1); this.filteredValue.splice(0, 1);