部门默认展开

This commit is contained in:
禺狨 2023-04-11 16:14:28 +08:00
parent f728ded148
commit e2a0aaf695

View File

@ -90,13 +90,16 @@ export const TreeDepartment = (props: PropInterface) => {
> >
{props.text} {props.text}
</div> </div>
{treeData.length > 0 && (
<Tree <Tree
selectedKeys={selectKey} selectedKeys={selectKey}
onSelect={onSelect} onSelect={onSelect}
onExpand={onExpand} onExpand={onExpand}
treeData={treeData} treeData={treeData}
defaultExpandAll={true}
switcherIcon={<i className="iconfont icon-icon-fold c-gray" />} switcherIcon={<i className="iconfont icon-icon-fold c-gray" />}
/> />
)}
</div> </div>
); );
}; };