品类新增是可搜索上级
This commit is contained in:
@ -194,6 +194,10 @@ const CategoryList: React.FC = () => {
|
||||
showSearch
|
||||
treeDefaultExpandAll
|
||||
style={{ width: '100%' }}
|
||||
// 新增filterTreeNode属性,实现搜索过滤逻辑
|
||||
filterTreeNode={(inputValue, treeNode) =>
|
||||
treeNode.title.toLowerCase().includes(inputValue.toLowerCase())
|
||||
}
|
||||
/>
|
||||
</Form.Item>
|
||||
)}
|
||||
|
Reference in New Issue
Block a user