1.0.0 • Published 6 years ago
ux-checkbox-linkaitong v1.0.0
Checkbox 组件文档
API
属性
Checkbox
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 复选框类型 | 'normal'/'select' | 'normal' |
| checked | 指定当前是否选中 | boolean | false |
| value | 规定 <input> 元素的值 | string | '' |
| label | 显示的文字 | string | '' |
| disabled | 禁用 | boolean | false |
| onChange | 点击后调用的函数 | MouseEvent<HTMLDivElement> | ()=>{} |
CheckboxGroup
| 参数 | 说明 | 类型 | 默认值 |
|---|---|---|---|
| type | 复选框组类型 | 'horizontal'/'vertical' | 'horizontal' |
| showSelectAll | 是否显示全选框 | boolean | false |
| options | 指定可选项 | string[]/object[] | [] |
| defaultValue | 默认选中的选项 | string[] | [] |
1.0.0
6 years ago