<template>
  <div>
    <div class="bx-list">
      <div class="bx-list-item">
        <div class="bx-list-item-title">
          开启状态
        </div>
        <div class="bx-list-item-extra">
          <bxs-switch
            v-model="checked1"
            @change="changed"
            />
        </div>
      </div>
      <div class="bx-list-item">
        <div class="bx-list-item-title">
          关闭状态
        </div>
        <div class="bx-list-item-extra">
          <bxs-switch
            v-model="checked2"
            @change="changed"
            />
        </div>
      </div>
      <div class="bx-list-item">
        <div class="bx-list-item-title">
          设置开启背景色
        </div>
        <div class="bx-list-item-extra">
          <bxs-switch
            v-model="checked3"
            active-color="#93E200"
            @change="changed"
            />
        </div>
      </div>
    </div>
  </div>
</template>
<script>
export default {
  data() {
    return {
      checked1: true,
      checked2: false,
      checked3: true,
    }
  },
  methods: {
    changed(val) {
      console.log(val)
    },
  },
}
</script>
<style>
</style>
