Skip to content

Radio 单选框

在一组备选项中进行单选

基础用法

禁用状态

disabled 属性可以用来控制单选框的禁用状态。

你只需要为单选框设置 disabled 属性就能控制其禁用状态。

按钮样式

只需要把 el-radio 元素换成 el-radio-button 元素即可

Radio API

Radio Attributes

属性名说明类型默认值
v-model选中项绑定值string / number / boolean--

Radio Events

事件名说明类型
change绑定值变化时触发的事件Function

RadioGroup API

RadioGroup Attributes

属性名说明类型默认值
value单选框的值string / number / boolean--
disabled是否禁用单选框booleanfalse
name原生 name 属性string--

RadioGroup Events

事件名说明类型
change绑定值变化时触发的事件Function

RadioButton API

RadioButton Attributes

属性名说明类型默认值
value单选框的值string / number / boolean--
disabled是否禁用单选框booleanfalse
name原生 name 属性string--

基于 MIT 许可发布