--- order: 2 title: zh-CN: 缩起内嵌菜单 en-US: Collapsed inline menu --- ## zh-CN 内嵌菜单可以被缩起/展开。 ## en-US Inline menu could be collapsed. ````jsx import { Menu, Icon, Button } from 'antd'; const SubMenu = Menu.SubMenu; class App extends React.Component { state = { collapsed: false, } toggleCollapsed = () => { this.setState({ collapsed: !this.state.collapsed, }); } render() { return (