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