开关 SwitchButton

1.状态属性

属性名称 数据类型 是否必填 默认值 回传参数 说明
name string null 表单字段名称
label string null 表单字段描述
width number null 宽度
height number null 高度
value number,string "" 默认值
text number,string "" 默认文本值
placeholder string null 文本框内部预留文字
readonly bool false 是否只读
required bool false 是否必填
onlyline bool false 是否只占一行
hide bool false 是否隐藏
style Object null 自定义style
className string null 自定义class
regexp bool null 自定义正则表达式
invalidTip bool null 自定义的错误提示信息
size enum default 组件大小,default(只占一列),large(两列),onlyline(一行)
position enum default 组件位置,default(默认),left(靠左),right(靠右),方便错误提示信息的位置
onSelect string null value,value,name,null 值改变事件
showChildren bool false 是否显示开关 文本值
checkedChildren string 开关开的时候显示的文本值
unCheckedChildren string 开关为关的时候显示的文本值

results matching ""

    No results matching ""