Skip to content

Checkbox 复选按钮

演示

通知方式最多选择两种
已选择 1/2

复选组

通过 VCheckboxGroup 管理选中值、最大选择数量和排列方向。

Props

Prop类型默认值描述
checkedbooleanundefined单个复选框选中态
valuestring | number | booleantrue复选框值
labelstringundefined文案
disabledbooleanfalse禁用

CheckboxGroup Props

Prop类型默认值描述
valueArray<string | number | boolean>[]当前选中值
maxnumberundefined最大选择数量
direction'horizontal' | 'vertical''vertical'排列方向
disabledbooleanfalse禁用整组

Events

EventPayload描述
update:checkedboolean单个复选框选中态变化
update:valueArray<string | number | boolean>复选组选中值变化
changeboolean | Array<string | number | boolean>值变化