<template>
  <div>
    <el-radio class="radio" v-model="value" :label="item.key" :key="item.value" v-for="item in config.options" @input="inputHandler">{{item.value}}</el-radio>
  </div>
</template>

<script>
export default {
  methods: {
    inputHandler(val) {
      this.$emit('input', val)
    }
  },
  props: [
    'value',
    'config'
  ]
}
</script>

<style>

</style>
