Skip to content

TCheckbox 多选框组 ​

基础用法 ​

尺寸大小 ​

按钮样式 ​

带有边框 ​

插槽使用及自定义 ​

可选项 ​

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

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

2-1、option 配置参数(Attributes)继承 el-checkboxGroup 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-checkbox&el-checkboxGroup events ​