2016-03-31 09:40:55 +08:00
|
|
|
---
|
|
|
|
order: 0
|
2016-04-20 16:28:07 +08:00
|
|
|
title:
|
|
|
|
zh-CN: 按钮类型
|
|
|
|
en-US: Type
|
2016-03-31 09:40:55 +08:00
|
|
|
---
|
2015-06-05 20:26:41 +08:00
|
|
|
|
2016-04-20 16:28:07 +08:00
|
|
|
## zh-CN
|
2015-06-05 20:26:41 +08:00
|
|
|
|
2020-01-06 10:38:51 +08:00
|
|
|
按钮有四种类型:主按钮、次按钮、虚线按钮和链接按钮。主按钮在同一个操作区域最多出现一次。
|
2015-05-15 16:00:08 +08:00
|
|
|
|
2016-04-20 16:28:07 +08:00
|
|
|
## en-US
|
|
|
|
|
2020-01-03 15:22:16 +08:00
|
|
|
There are `primary` button, `default` button, `dashed` button and `link` button in antd.
|
2016-04-20 16:28:07 +08:00
|
|
|
|
2019-05-07 14:57:32 +08:00
|
|
|
```jsx
|
2015-10-28 20:55:49 +08:00
|
|
|
import { Button } from 'antd';
|
2015-09-27 16:30:35 +08:00
|
|
|
|
2016-04-20 16:28:07 +08:00
|
|
|
ReactDOM.render(
|
|
|
|
<div>
|
|
|
|
<Button type="primary">Primary</Button>
|
|
|
|
<Button>Default</Button>
|
|
|
|
<Button type="dashed">Dashed</Button>
|
2019-05-06 12:04:39 +08:00
|
|
|
<Button type="link">Link</Button>
|
2018-06-27 15:55:04 +08:00
|
|
|
</div>,
|
2019-05-07 14:57:32 +08:00
|
|
|
mountNode,
|
2018-11-28 15:00:03 +08:00
|
|
|
);
|
2019-05-07 14:57:32 +08:00
|
|
|
```
|