mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-04 21:27:52 +08:00
Table: disable filter when filters is an empty array (#11864)
This commit is contained in:
parent
899d70da93
commit
b6eaaf6943
@ -270,7 +270,7 @@ export default {
|
||||
fixed: this.fixed === '' ? true : this.fixed,
|
||||
filterMethod: this.filterMethod,
|
||||
filters: this.filters,
|
||||
filterable: this.filters || this.filterMethod,
|
||||
filterable: this.filters && this.filters.length && this.filterMethod,
|
||||
filterMultiple: this.filterMultiple,
|
||||
filterOpened: false,
|
||||
filteredValue: this.filteredValue || [],
|
||||
|
@ -339,7 +339,7 @@ export default {
|
||||
handleHeaderClick(event, column) {
|
||||
if (!column.filters && column.sortable) {
|
||||
this.handleSortClick(event, column);
|
||||
} else if (column.filters && !column.sortable) {
|
||||
} else if (column.filterable && !column.sortable) {
|
||||
this.handleFilterClick(event, column);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user