You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
1.2 KiB
41 lines
1.2 KiB
7 years ago
|
<cn>
|
||
|
#### 单选组合
|
||
|
一组互斥的 Radio 配合使用。
|
||
|
</cn>
|
||
|
|
||
|
<us>
|
||
|
#### Radio Group
|
||
|
A group of radio components.
|
||
|
</us>
|
||
|
|
||
|
```html
|
||
|
<template>
|
||
|
<div>
|
||
|
<div>
|
||
|
<a-radio-group defaultValue="a" size="large">
|
||
|
<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="a">
|
||
|
<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="a" size="small">
|
||
|
<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>
|
||
|
</template>
|
||
|
```
|