tree分类、部门组件只显示一级

This commit is contained in:
unknown 2023-09-06 09:12:32 +08:00
parent fd4bc958cc
commit e5b3e2570a
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ export const TreeCategory = (props: PropInterface) => {
selectedKeys={selectKey} selectedKeys={selectKey}
onExpand={onExpand} onExpand={onExpand}
treeData={treeData} treeData={treeData}
defaultExpandAll={true} // defaultExpandAll={true}
switcherIcon={<i className="iconfont icon-icon-fold c-gray" />} switcherIcon={<i className="iconfont icon-icon-fold c-gray" />}
/> />
)} )}

View File

@ -165,7 +165,7 @@ export const TreeDepartment = (props: PropInterface) => {
onSelect={onSelect} onSelect={onSelect}
onExpand={onExpand} onExpand={onExpand}
treeData={treeData} treeData={treeData}
defaultExpandAll={true} // defaultExpandAll={true}
switcherIcon={<i className="iconfont icon-icon-fold c-gray" />} switcherIcon={<i className="iconfont icon-icon-fold c-gray" />}
/> />
)} )}