<!-- webview only -->
<template>
  <div>
    <slot></slot>
  </div>
</template>

<script>

export default {
  name: 'BCheckBoxGroup',
  provide() {
    return {
      checkbox: this
    };
  },
  data() {
    return {
      selected: []
    };
  },
  watch: {
    selected() {
      const result = [];
      this.selected.forEach((item) => {
        result.push(item.value);
      });
      this.$emit('change', {
        detail: result
      });
    }
  },
};
</script>

<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>

</style>
