mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
23 lines
516 B
Markdown
23 lines
516 B
Markdown
|
|
<cn>
|
|
#### 按钮类型
|
|
按钮有四种类型:主按钮、次按钮、虚线按钮、危险按钮。主按钮在同一个操作区域最多出现一次。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Type
|
|
There are `primary` button, `default` button, `dashed` button and `danger` button in antd.
|
|
</us>
|
|
|
|
```html
|
|
<template>
|
|
<div class='test'>
|
|
<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>
|
|
</div>
|
|
</template>
|
|
```
|
|
|