Skip to content

Radio 单选框

规则

js
{
    type:"radio",
    title:"是否包邮",
    field:"is_postage",
    value:"0",
    options:[
        {value:"0",label:"不包邮",disabled:false},
        {value:"1",label:"包邮",disabled:true},
    ],
}
{
    type:"radio",
    title:"是否包邮",
    field:"is_postage",
    value:"0",
    options:[
        {value:"0",label:"不包邮",disabled:false},
        {value:"1",label:"包邮",disabled:true},
    ],
}

参考:arco-design_Radio

value :String | Number

Options

字段名说明字段类型是否必填默认值
value参数值String,Numbertrue-
label字段别名Stringtrue-
disabled设置为禁用状态Booleanfalsefalse

Props

参数名描述类型默认值
type单选框组的类型'radio' | 'button''radio'
size单选框组的尺寸'mini' | 'small' | 'medium' | 'large'-
direction单选框组的方向'horizontal' | 'vertical''horizontal'
disabled是否禁用booleanfalse

Events

事件名描述参数
change值改变时触发value: `(string

Released under the MIT License.