1.0.8 • Published 7 years ago
radio-group-with-button v1.0.8
Radio Group组件
概述
RadioGroup控制多个radio的展示效果,支持水平模式、垂直模式。
API
| 参数 | 说明 | 类型 | 默认值 | 必须 |
|---|---|---|---|---|
| disabled | 禁用radio group,不可操作radio | boolean | 无 | No |
| value | 当前radio组的value | string、 number | 无 | No |
| defaultValue | 当前radio组的默认value | string、 number | 无 | No |
| onChange | Radio 发生状态变化后的回调 | (data: RadioData) => void | 无 | No |
| options | Radio 数据的collection | array | 无 | No |
| layout | group的布局方式 | 'vertical'、'horizontal' | 'horizontal' | No |
| minWidth | 每个单独Radio最小宽度 | string | 无 | No |
| maxWidth | 每个单独Radio最大宽度,超出文字打点 | string | 无 | No |
注意
若有设置最小宽度或者最大宽度,当radio label 字符长度超过限制后,文字会显示打点,鼠标hover打点会有tooltip效果
options 数组单个item的格式为
{
label: string | number | undefined;
value: number | string;
disabled?: boolean;
}开发人员
huhai@beisen.com