Commit 257bc4e6785cb715071c8c637c63dbfc1558caa9
1 parent
f4eea6cc
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,7 +497,7 @@ | ||
497 | filterData (data, column) { | 497 | filterData (data, column) { |
498 | return data.filter((row) => { | 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 | let status = !column._filterChecked.length; | 502 | let status = !column._filterChecked.length; |
503 | for (let i = 0; i < column._filterChecked.length; i++) { | 503 | for (let i = 0; i < column._filterChecked.length; i++) { |