Table: allow filterable without filter-method (#12045)

pull/12059/head
Jikkai Xiao 2018-07-18 19:28:44 +08:00 committed by hetech
parent b5063ceb2f
commit f23e45b404
1 changed files with 1 additions and 1 deletions

View File

@ -270,7 +270,7 @@ export default {
fixed: this.fixed === '' ? true : this.fixed, fixed: this.fixed === '' ? true : this.fixed,
filterMethod: this.filterMethod, filterMethod: this.filterMethod,
filters: this.filters, filters: this.filters,
filterable: this.filters && this.filters.length && this.filterMethod, filterable: (this.filters && this.filters.length) || this.filterMethod,
filterMultiple: this.filterMultiple, filterMultiple: this.filterMultiple,
filterOpened: false, filterOpened: false,
filteredValue: this.filteredValue || [], filteredValue: this.filteredValue || [],