<template>
  <div>
    <slot />
  </div>
</template>
<script>
import { create } from '../utils'
import Emitter from '../mixins/emitter'

export default create({
  name: 'radio-group',
  mixins: [Emitter],
  props: {
    value: null,
    disabled: {
      type: Boolean,
      default: false,
    },
    labelDisable: {
      type: Boolean,
      default: false,
    },
    selectColor: {
      type: String,
      default: 'primary',
    },
  },

  watch: {
    value(value) {
      this.$emit('change', value)
      this.dispatch('bxs-form-item', 'form.item.reset')
    },
  },
})
</script>
<style>
@import './index.css';
</style>
