Radio 单选
概述
基本组件-单选框。主要用于一组可选项单项选择,或者单独用于切换到选中状态。
使用指南
在.vue中引入组件
在main.js中引入样式文件
示例
API
RadioGroup properties
属性 | 说明 | 类型 | 默认值 |
i-class | 自定义 class 类名 | String | - |
current | 指定当前选中的项目 value | String | - |
groups | 项目组内item | Array | [] |
position | item位置,可选值为 left 或 right | String | left |
color | 主题色 | String | #2d8cf0 |
RadioItem properties
属性 | 说明 | 类型 | 默认值 |
i-item-class | radio自定义 class 类名 | String | - |
value | 当前项的 value | String | - |
disabled | 是否禁用当前项 | Boolean | false |
Last updated