Skip to content

Radio 单选框

在一组备选项中进行单选。

基础用法

SXO Framework Switcher
🚧
This example is not yet available for .

尺寸与颜色

支持 sm, md, lg 尺寸,以及 primary, success 颜色。

SXO Framework Switcher
🚧
This example is not yet available for .

API

RadioGroup Props

参数说明类型默认值
modelValue / value绑定值string''
name原生 name 属性string自动生成
size统一设置尺寸'sm' | 'md' | 'lg''md'
color统一设置颜色'primary' | 'success''primary'

Radio Props

参数说明类型默认值
value单选框的值string-
size尺寸 (覆盖 Group 设置)'sm' | 'md' | 'lg'-
color颜色 (覆盖 Group 设置)'primary' | 'success'-
disabled是否禁用booleanfalse
label文本标签 (Vue2)string-