Skip to content

AtCheckboxButton

张健华
最后更新于 2025-11-18 14:57:11

复选框按钮,相比于Checkbox只是外观上改为按钮,使用上无区别

代码演示

基础用法

选项组

API

TIP

AtCheckboxButtonProps 继承自 NaiveUI Checkbox Props

AtCheckboxButton Props

名称类型默认值说明版本
checked booleanfalse受控状态下是否选中
labelstring | Componentundefined自定义渲染标签
colorstringvar(--button-color-2)未选中按钮颜色
text-colorstringvar(--text-color-1)未选中按钮文字颜色
check-colorstring主色与白色按 0.9 比例混合选中按钮颜色
check-text-colorstringvar(--primary-color)选中按钮文字颜色
button-propsButtonPropsundefinedNaiveUI Button Props
show-check-iconbooleantrue是否显示选中图标

changelog

b0993 - fix(AtCheckboxButton): replace checkIcon with showCheckIcon on 2024/12/4
533ea - feat(AtCheckboxButton): support checkIcon props on 2024/12/4

贡献者

Last updated: