--- order: 1 title: 内嵌菜单 --- 垂直菜单,子菜单内嵌在菜单区域。 ````jsx 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(