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.
39 lines
621 B
39 lines
621 B
<docs>
|
|
---
|
|
order: 7
|
|
title:
|
|
zh-CN: 单选组合
|
|
en-US: Radio Group
|
|
---
|
|
|
|
## zh-CN
|
|
|
|
一组互斥的 Radio 配合使用。
|
|
|
|
## en-US
|
|
|
|
A group of radio components.
|
|
|
|
</docs>
|
|
<template>
|
|
<div>
|
|
<a-radio-group v-model:value="value">
|
|
<a-radio :value="1">A</a-radio>
|
|
<a-radio :value="2">B</a-radio>
|
|
<a-radio :value="3">C</a-radio>
|
|
<a-radio :value="4">D</a-radio>
|
|
</a-radio-group>
|
|
</div>
|
|
</template>
|
|
<script lang="ts">
|
|
import { defineComponent, ref } from 'vue';
|
|
export default defineComponent({
|
|
setup() {
|
|
const value = ref<number>(1);
|
|
return {
|
|
value,
|
|
};
|
|
},
|
|
});
|
|
</script>
|