style: 优化代码生成预览样式

This commit is contained in:
2024-06-13 21:26:50 +08:00
parent b08b57fa08
commit 8bc3992214
2 changed files with 35 additions and 29 deletions

View File

@@ -91,11 +91,7 @@ const getTreeData = async (query: DeptQuery = { ...queryForm }) => {
popupVisible: false,
switcherIcon: (node: any) => {
if (!node.isLeaf) {
if (node.expanded) {
return <icon-down />
} else {
return <icon-down />
}
return <icon-caret-down />
}
return <icon-idcard />
}