--- order: 8 title: zh-CN: 自定义展开/折叠图标 en-US: Customize collapse/expand icon --- ## zh-CN 自定义展开/折叠图标。 ## en-US customize collapse/expand icon of tree node ```jsx import { Tree, Icon } from 'antd'; const { TreeNode } = Tree; class Demo extends React.Component { onSelect = (selectedKeys, info) => { console.log('selected', selectedKeys, info); }; render() { return ( } defaultExpandedKeys={['0-0-0']} onSelect={this.onSelect} > ); } } ReactDOM.render(, mountNode); ```