--- order: 1 title: zh-CN: 内嵌菜单 en-US: Vertical menu with inline children --- ## zh-CN 垂直菜单,子菜单内嵌在菜单区域。 ## en-US Vertical menu with inline submenus. ````__react import { Menu, Icon } from 'antd'; const SubMenu = Menu.SubMenu; const MenuItemGroup = Menu.ItemGroup; const Sider = React.createClass({ getInitialState() { return { current: '1', }; }, handleClick(e) { console.log('click ', e); this.setState({ current: e.key, }); }, render() { return (
); }, }); ReactDOM.render(