Commit 4a70ed0f42b33b9361066606719d0b4f51e71f51
Committed by
GitHub
Merge pull request #758 from hezhiying/table-filter
filterRemote过滤时,单条过滤时应该返回true,而不应该返回空否则会报错
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/components/table/table.vue
... | ... | @@ -497,7 +497,7 @@ |
497 | 497 | filterData (data, column) { |
498 | 498 | return data.filter((row) => { |
499 | 499 | //如果定义了远程过滤方法则忽略此方法 |
500 | - if (typeof column.filterRemote === 'function') return; | |
500 | + if (typeof column.filterRemote === 'function') return true; | |
501 | 501 | |
502 | 502 | let status = !column._filterChecked.length; |
503 | 503 | for (let i = 0; i < column._filterChecked.length; i++) { | ... | ... |