---
order: 6
title:
zh-CN: 自定义图标
en-US: Customize Icon
---
## zh-CN
可以针对不同的节点定制图标。
## en-US
You can customize icons for different nodes.
````jsx
import { Tree, Icon } from 'antd';
const TreeNode = Tree.TreeNode;
class Demo extends React.Component {
render() {
return (
} title="parent 1" key="0-0">
} title="leaf" key="0-0-0" />
(
)}
title="leaf"
key="0-0-1"
/>
);
}
}
ReactDOM.render(, mountNode);
````