打印/下载
使用

Switch 开关

import wmSwitch from '@/components/switch'
<wm-switch :value="val.state" @update:value="setState($event)"></wm-switch>
  • value: (Boolean) //值: false
  • activeColor: (String) //打开时的背景色: '#6FB737'
  • inactiveColor: (String) //打开时的背景色: '#DCDFE6'
{{copy}}