switch 开关
作为行内表单组件,
Switch
必须和Group
一起使用。
Props
名字
类型
默认
描述
value
Boolean
false
表单值,双向绑定
title
String
无
cell标题
disabled
Boolean
false
是否禁止操作
inline-desc
String
无
副标题
Events
名字
参数
描述
on-change
(value)
值变化时触发
直接值
``` vux height=160 components=Switch,Group
``` ## 双向绑定 ``` vux height=140 components=Switch,Group
export default { data: { value1: true } }
title支持html
``` vux height=80 components=Switch,Group
</template>
Last updated