代码示例

最简单用法

默认选中

事件监听

export default {
  methods: {
    onChange (val) {
      alert(val)
    }
  }
}

props

参数 说明 类型 默认值
value 是否选中 Boolean False

events

参数 说明 类型 默认值
change switch开关回调事件 Function
Last Updated: 5/21/2019, 5:06:59 PM