部门默认展开

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}
</div>
<Tree
selectedKeys={selectKey}
onSelect={onSelect}
onExpand={onExpand}
treeData={treeData}
switcherIcon={<i className="iconfont icon-icon-fold c-gray" />}
/>
{treeData.length > 0 && (
<Tree
selectedKeys={selectKey}
onSelect={onSelect}
onExpand={onExpand}
treeData={treeData}
defaultExpandAll={true}
switcherIcon={<i className="iconfont icon-icon-fold c-gray" />}
/>
)}
</div>
);
};