# 开关

#

参数说明

参数 说明 类型 可选值 默认值
v-model 双向绑定值 —— —— ——
custom-value 开关状态对应的value object —— { on: true, off: false }
on-color 开启状态的背景色 string css颜色格式即可 #3eaf7c
off-color 关闭状态的背景色 string css颜色格式即可 #dcdfe6
flag-color 开关按钮的颜色 string css颜色格式即可 white
disabled 是否禁用开关 boolean false
switch-width 开关的宽度 string 50px

#

事件说明

参数 说明 返回值
change 开关绑定值改变触发 对应的状态值
Last Updated: 2020-05-18 23:05:25