Radio 单选框
对应别名:radio → aRadioGroup。
规则
基础示例
Props 配置示例
按钮样式
整组禁用
按钮样式 · 尺寸对比(小 / 中 / 大)
Events 事件示例
value:any(与选项 value 类型一致)
Props
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|---|---|---|---|---|
| block | RadioGroup 宽度撑满父级 | boolean | false | - |
| buttonStyle | RadioButton 风格 | outline | solid | outline | - |
| classes | 语义化 class | Record<SemanticDOM, string> | function | - | - |
| defaultValue | 默认选中 | any | - | - |
| disabled | 禁选全部 | boolean | false | - |
| name | RadioGroup name | string | - | - |
| options | 配置化选项 | string[] | number[] | CheckboxOptionType[] | - | - |
| optionType | options 类型 | default | button | default | - |
| orientation | 排列方向 | horizontal | vertical | horizontal | - |
| size | 尺寸(按钮样式) | large | middle | small | - | - |
| styles | 语义化 style | Record<SemanticDOM, CSSProperties> | function | - | - |
| value | 当前选中,支持 v-model:value | any | - | - |
| vertical | 垂直(orientation 优先) | boolean | false | - |
Events
| 事件 | 说明 | 类型 | 版本 |
|---|---|---|---|
| change | 选项变化 | (e: RadioChangeEvent) => void | - |


