我想使用带有一组数值的筛选器来筛选表格,例如查找带有0或Null的帐户这对我没用
filters: [ { text: "zero", value: 0 }, { text: "null", value: "null" } ],
'
axr492tv1#
需要插入onFilter函数,示例:
const columns = [ { title: "Name", dataIndex: "name", key: "name" }, { title: "Age", dataIndex: "age", key: "age", onFilter: (value, record) => record.age === value, filters: [ { text: "null", value: null }, { text: "0", value: 0 } ], filterSearch: true, sortDirections: ["descend"] } ];
codsandboxexample
1条答案
按热度按时间axr492tv1#
需要插入onFilter函数,示例:
codsandboxexample