部门默认展开

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