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.
43 lines
1.1 KiB
43 lines
1.1 KiB
<docs>
|
|
---
|
|
order: 3
|
|
title:
|
|
zh-CN: 填底的按钮样式
|
|
en-US: Solid radio button
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
实色填底的单选按钮样式。
|
|
|
|
## en-US
|
|
|
|
Solid radio button style.
|
|
|
|
</docs>
|
|
<template>
|
|
<div>
|
|
<div>
|
|
<a-radio-group v-model:value="value1" button-style="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 v-model:value="value2" button-style="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>
|
|
<script lang="ts" setup>
|
|
import { ref } from 'vue';
|
|
const value1 = ref<string>('a');
|
|
const value2 = ref<string>('c');
|
|
</script>
|