mirror of
https://gitee.com/ant-design-vue/ant-design-vue.git
synced 2024-12-16 01:41:15 +08:00
20 lines
576 B
Markdown
20 lines
576 B
Markdown
<cn>
|
|
#### 幽灵按钮
|
|
幽灵按钮将其他按钮的内容反色,背景变为透明,常用在有色背景上。
|
|
</cn>
|
|
|
|
<us>
|
|
#### Ghost Button
|
|
`ghost` property will make button's background transparent, it is common used in colored background.
|
|
</us>
|
|
```html
|
|
<template>
|
|
<div :style="{ background: 'rgb(190, 200, 200)', padding: '26px 16px 16px' }">
|
|
<a-button type="primary" ghost>Primary</a-button>
|
|
<a-button ghost>Default</a-button>
|
|
<a-button type="dashed" ghost>Dashed</a-button>
|
|
<a-button type="danger" ghost>danger</a-button>
|
|
</div>
|
|
</template>
|
|
```
|