You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

607 B

order title
5 多级菜单

传入的菜单里有多个层级。

import { Menu, Dropdown, Icon } from 'antd';
const SubMenu = Menu.SubMenu;

const menu = (
  <Menu>
    <Menu.Item>第一个菜单项</Menu.Item>
    <Menu.Item>第二个菜单项</Menu.Item>
    <SubMenu title="子菜单">
      <Menu.Item>第三个菜单项</Menu.Item>
      <Menu.Item>第四个菜单项</Menu.Item>
    </SubMenu>
  </Menu>
);

ReactDOM.render(
  <Dropdown overlay={menu}>
    <a className="ant-dropdown-link" href="#">
      多级菜单 <Icon type="down" />
    </a>
  </Dropdown>
, mountNode);