mirror of
https://github.com/NetEase/tango.git
synced 2026-08-29 02:01:34 +08:00
fix: limit outline tree node icon
This commit is contained in:
@@ -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>
|
||||
);
|
||||
},
|
||||
);
|
||||
);
|
||||
Reference in New Issue
Block a user