fix: limit outline tree node icon

This commit is contained in:
wwsun
2023-11-02 11:11:30 +08:00
parent 963bfe1ab8
commit c5840f29b7
@@ -53,7 +53,8 @@ const outlineStyle = css`
display: none;
}
.material-icon {
width: 14px;
width: 1em;
height: 1em;
}
`;
@@ -164,7 +165,7 @@ export const ComponentsTree: React.FC<ComponentsTreeProps> = observer(
return (
<Box css={outlineStyle}>
<Tree
selectedKeys={selectedKeys}
selectedKeys={selectedKeys as string[]}
fieldNames={filedNames}
treeData={nodesTree as any[]}
onSelect={(keys) => {
@@ -229,4 +230,4 @@ export const ComponentsTree: React.FC<ComponentsTreeProps> = observer(
</Box>
);
},
);
);