fix: docs Menu api

This commit is contained in:
ycjcl868 2019-12-26 15:10:15 +08:00
parent a8579affd1
commit 3a527c63fe
2 changed files with 4 additions and 4 deletions

View File

@ -16,12 +16,12 @@ More layouts with navigation: [Layout](/components/layout).
## API ## API
```jsx ```jsx
<menu> <Menu>
<Menu.Item>Menu</Menu.Item> <Menu.Item>Menu</Menu.Item>
<SubMenu title="SubMenu"> <SubMenu title="SubMenu">
<Menu.Item>SubMenuItem</Menu.Item> <Menu.Item>SubMenuItem</Menu.Item>
</SubMenu> </SubMenu>
</menu> </Menu>
``` ```
### Menu ### Menu

View File

@ -17,12 +17,12 @@ subtitle: 导航菜单
## API ## API
```jsx ```jsx
<menu> <Menu>
<Menu.Item>菜单项</Menu.Item> <Menu.Item>菜单项</Menu.Item>
<SubMenu title="子菜单"> <SubMenu title="子菜单">
<Menu.Item>子菜单项</Menu.Item> <Menu.Item>子菜单项</Menu.Item>
</SubMenu> </SubMenu>
</menu> </Menu>
``` ```
### Menu ### Menu