ant-design-vue/components/radio/demo/radioButton-solid.md

33 lines
912 B
Markdown

<cn>
#### 填底的按钮样式
实色填底的单选按钮样式。
</cn>
<us>
#### Solid radio button
Solid radio button style.
</us>
```html
<template>
<div>
<div>
<a-radio-group defaultValue="a" buttonStyle="solid">
<a-radio-button value="a">Hangzhou</a-radio-button>
<a-radio-button value="b">Shanghai</a-radio-button>
<a-radio-button value="c">Beijing</a-radio-button>
<a-radio-button value="d">Chengdu</a-radio-button>
</a-radio-group>
</div>
<div :style="{ marginTop: '16px' }">
<a-radio-group defaultValue="c" buttonStyle="solid">
<a-radio-button value="a">Hangzhou</a-radio-button>
<a-radio-button value="b" disabled>Shanghai</a-radio-button>
<a-radio-button value="c">Beijing</a-radio-button>
<a-radio-button value="d">Chengdu</a-radio-button>
</a-radio-group>
</div>
</div>
</template>
```