style: format dropdown-button.md

This commit is contained in:
DiamondYuan 2019-04-11 18:26:12 +08:00
parent 99b5ebd81e
commit 82a34d5938
2 changed files with 5 additions and 5 deletions

View File

@ -40,26 +40,26 @@ const menu = (
ReactDOM.render(
<div>
<Dropdown.Button onClick={handleButtonClick} overlay={menu}>
<Dropdown.Button onClick={handleButtonClick} overlay={menu} style={{ marginRight: 8, marginBottom: 9 }}>
Dropdown
</Dropdown.Button>
<Dropdown.Button
overlay={menu}
icon={<Icon type="user" />}
style={{ marginLeft: 8 }}
>
Dropdown
</Dropdown.Button>
<br />
<Dropdown.Button
onClick={handleButtonClick}
overlay={menu}
disabled
style={{ marginLeft: 8 }}
style={{ marginRight: 8 }}
>
Dropdown
</Dropdown.Button>
<Dropdown overlay={menu}>
<Button style={{ marginLeft: 8 }}>
<Button>
Button <Icon type="down" />
</Button>
</Dropdown>

View File

@ -16,7 +16,7 @@ The menu has multiple levels.
````jsx
import { Menu, Dropdown, Icon } from 'antd';
const {SubMenu} = Menu;
const { SubMenu } = Menu;
const menu = (
<Menu>