# 多选框 y-checkbox
一组备选项中进行多选
# 组件名称
- y-checkbox
- y-checkbox-group
# 基础用法
# 按钮类型
# 单选框组
# checkbox属性
/**
* 多选框类型
*/
export enum YCheckboxType{
checkbox="checkbox",
button = "button"
}
export type IModelType = boolean | string | number
/**
* 属性
*/
export interface Props {
/**
* 类型:checkbox/button, 默认checkbox
*/
type?: YCheckboxType
/**
* 选中值
*/
modelValue?: IModelType[]
/**
* 值
*/
value: IModelType
/**
* 是否不可选,默认false
*/
disabled?: boolean
}
# checkbox-group属性
export type IModelType = boolean | string | number
/**
* 属性
*/
export interface Props {
/**
* 选中值
*/
modelValue: IModelType[]
/**
* 值
*/
value: IModelType
}
# checkbox事件
/**
* 事件
*/
export interface Events {
/**
* 绑定值变化时触发,选中的radio value值
*/
change: IModelType[]
}
# checkbox-group事件
/**
* 事件
*/
export interface Events {
/**
* 绑定值变化时触发,选中的radio value值
*/
change: IModelType[]
}