demo地址 https://codepen.io/Mathround/pen/ROggyK?editors=0010
链接描述
如果在Name里面加上onFilter属性筛选,发现dataSource里面一些数据如果有children的话,筛选是起不到作用的,比如下图用Joe作为筛选,结果如下,请问遇到这种情况该怎么解决呢
const { Table } = antd;
const columns = [{
title: 'Name',
dataIndex: 'name',
filters: [{
text: 'Joe',
value: 'Joe',
}, {
text: 'Jim',
value: 'Jim',
}],
onFilter: (value, record) => {
console.log(value,'==