React Antd 表:FilteredValue

问题描述 投票:0回答:1

我尝试在 Antd 表上创建一个搜索栏和一个过滤器类型,但这两个过滤器不想一起工作。

这是我的沙箱

我的问题是当我取消注释filteredValue时,我的setFilteredType(value)不再起作用

提前致谢

reactjs react-hooks antd
1个回答
0
投票

这是一个codesandbox, 但我认为搜索操作可以从数据源过滤数据,不需要按列的 onFilterChange 操作进行过滤。

© www.soinside.com 2019 - 2024. All rights reserved.