Checkbox (复选框)

布尔复选框(v-model),可带标签。

基础用法

Basic.vue

颜色

Colors.vue

尺寸

Sizes.vue

三态 / 不确定

Indeterminate.vue

单选外观

Single.vue

禁用

Disabled.vue

描述与错误

我们会在有新内容时通知你

必须同意条款才能继续

Description.vue

属性

属性类型默认值说明
classNamestring""
colorKunUIColor"default"
descriptionstring""Helper text below the control (hidden when `error` is set).
disabledbooleanfalse
errorstring""Error message (red text below + danger box). Takes precedence over description.
idstring
indeterminatebooleanfalseTri-state "some but not all" (e.g. a select-all parent). Visual dash that overrides the check; the underlying input stays unchecked until toggled.
labelstring
modelValuebooleanfalse
namestring
sizeKunUISize"md"
type"multiple" | "single""multiple"
valuestring | number | boolean

事件

事件回调参数说明
changevalue: booleanThe new checked state, from a user toggle.
update:modelValuevalue: boolean

插槽

插槽作用域
#default