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

This commit is contained in:
Jikkai Xiao 2018-07-18 19:28:44 +08:00 committed by hetech
parent b5063ceb2f
commit f23e45b404

View File

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