ant-design-vue/components/button/demo/basic.md

26 lines
751 B
Markdown
Raw Normal View History

2018-01-24 07:39:21 +00:00
<cn>
#### 按钮类型
按钮有五种类型:主按钮、次按钮、虚线按钮、危险按钮和链接按钮。主按钮在同一个操作区域最多出现一次。
2018-01-24 07:39:21 +00:00
</cn>
<us>
#### Type
There are `primary` button, `default` button, `dashed` button , `danger` button and `link` button in antd.
2018-01-24 07:39:21 +00:00
</us>
2018-01-23 10:55:39 +00:00
2019-10-09 10:32:23 +00:00
```tpl
2018-01-23 10:55:39 +00:00
<template>
2018-03-02 08:54:22 +00:00
<div>
2018-01-23 10:55:39 +00:00
<a-button type="primary">Primary</a-button>
<a-button>Default</a-button>
<a-button type="dashed">Dashed</a-button>
<a-button type="danger">Danger</a-button>
2019-03-13 01:38:54 +00:00
<a-config-provider :autoInsertSpaceInButton="false">
<a-button type="primary">按钮</a-button>
</a-config-provider>
<a-button type="primary">按钮</a-button>
<a-button type="link">Link</a-button>
2018-01-23 10:55:39 +00:00
</div>
</template>
```