display: ComponentName family: other
ComponentName
hello world
API
Props
名称 | 说明 | 类型 | 默认值 |
---|---|---|---|
data | 数据源 | `Array<{ label: string, value: string | number, disabled: boolean }`> |
value | 选择的值 | string, number, Array |
|
multiple | 是否多选 | boolean | false |
tickPosition | 选中√ 的位置 | 'left', 'right' | 'right' |
renderItem | 自定义渲染item | ({ label, value, disabled, checked, styles, onChange }) => void | |
onChange | 选择时回调函数 | (value, e?: Event) => void |
CSS API
名称 | 说明 |
---|---|
check-list | |
check-list__item | |
check-list__item__text | |
check-list__item__icon | |
check-list__item--checked | |
check-list__item--checked__icon | |
check-list__item--checked__text | |
check-list__item--disabled | |
check-list__item--disabled__icon | |
check-list__item--disabled__text |