b-switch
开关选择器。
| 属性 | 类型 | 默认值 | 说明 | 版本 | 
|---|---|---|---|---|
| checked | boolean | false | 是否选中 | |
| type | string | switch | 样式,有效值:switch, checkbox | |
| color | string | #ff5687 | switch 的颜色,同 css 的 color | |
| change | eventhandle | checked 改变时触发 change 事件,event.detail = { value:checked } | 
示例代码
<template>
  <div>
    <p>默认样式</p>
    <div style="background: #ffffff; height: 60px; line-height: 60px;">
      <b-switch type="switch"></b-switch>
      <b-switch type="switch" :checked="true"></b-switch>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {}
  },
  methods: {}
}
</script>
<style lang="less"></style>