cefc-ui-checkbox

0.0.3 • Public • Published

CheckBox

多选框

属性 说明 类型 默认值
prefixCls 样式前缀,如:cefc-checkbox,可用于自定义样式 String cefc-checkbox
value 值,如果结合 ChecboxGroup 使用,与其选中的值相对应 string/number
checked 是否选中 bool
defaultChecked 初始是否选中 bool
onChange 切换选中后的回调,参数为 event 对象 func
indeterminate 是否半选中状态 bool
disabled 是否禁用 bool
block 是否块级布局 bool

CheckboxGroup

多选框组

属性 说明 类型 默认值
prefixCls 样式前缀,如:cefc-checkbox-group,可用于自定义样式 String cefc-checkbox-group
selects 选中的值 array
defaultSelects 初始选中的值 array
onChange 更改选择后的回调,参数为选中的值 func
values 针对 value 和 label 相同时快速创建复选框组,无需再调用 Checkbox array
block 是否垂直排列 bool
toggleable 是否开启全选功能 bool
toggleAllContent 全选切换复选框显示的文字 string

Readme

Keywords

none

Package Sidebar

Install

npm i cefc-ui-checkbox

Weekly Downloads

3

Version

0.0.3

License

ISC

Last publish

Collaborators

  • chenghuijun