mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-29 05:29:37 +08:00
style: format dropdown-button.md
This commit is contained in:
parent
99b5ebd81e
commit
82a34d5938
@ -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>
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user