提交 988bdf09 编写于 作者: A afc163

空的筛选项应该返回全量数据

上级 a0d416d4
......@@ -408,6 +408,9 @@ export default React.createClass({
Object.keys(state.filters).forEach((columnKey) => {
let col = this.findColumn(columnKey);
let values = state.filters[columnKey] || [];
if (values.length === 0) {
return;
}
data = data.filter((record) => {
return values.some((v)=> {
return col.onFilter(v, record);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册