Skip to content
On this page

checkbox多选框组件

https://element-plus.org/zh-CN/component/checkbox.html

基础用法

通常用法

多属性用法

slot的用法

属性

属性名说明类型默认值
typeoptions参数的类型, 可以设置为simplestring-
optionscheckbox的选项object{}
showType显示的样式stringcheck
label显示的文本对应的字段stringlabel
value后台的值需要的字段stringvalue
showAll是否显示全选booleantrue
attrs控制el-checkbox组件的参数object{}
customDisabled自定义的disabledfunction()=>{}
customLabel自定义显示的labelfunction/string''

方法

属性名说明类型
change值的改变可以通过change事件监听Function

Slots

插槽名说明
default默认可以使用插槽