品类新增是可搜索上级

This commit is contained in:
sunyu
2025-07-31 11:16:40 +08:00
parent 75fe1d4914
commit ccdf0ddf00

View File

@ -194,6 +194,10 @@ const CategoryList: React.FC = () => {
showSearch showSearch
treeDefaultExpandAll treeDefaultExpandAll
style={{ width: '100%' }} style={{ width: '100%' }}
// 新增filterTreeNode属性实现搜索过滤逻辑
filterTreeNode={(inputValue, treeNode) =>
treeNode.title.toLowerCase().includes(inputValue.toLowerCase())
}
/> />
</Form.Item> </Form.Item>
)} )}