Skip to content
On this page

单选组件

基础用法

尺寸大小

按钮样式

带有边框

插槽使用及自定义

可选项

2、配置参数(Attributes)继承 el-radio Attributes

参数说明类型默认值
model-value / v-model绑定值string / number / boolean
option单选数据源Array
size单选框的尺寸'large' / 'default' / 'small''default'
type按钮样式'radio' / 'button''radio'
props配置选项,具体看下表object-
border是否显示边框booleanfalse

2-1、option 配置参数(Attributes)继承 el-radioGroup Attributes

参数说明类型默认值
value绑定值string / number / boolean
label显示值string
disabled是否禁用Booleanfalse
slot插槽名称string

2-2、Props

参数说明类型默认值
value指定节点绑定值为节点对象的某个属性值string'label'
label指定节点显示值为节点对象的某个属性值string'label'
disabled指定节点是否禁用为节点对象的某个属性值string'disabled'

3、继承 el-radio&el-radioGroup events