<template>
  <el-select v-model="value" placeholder="请选择" @change="changeHandler">
    <el-option
      v-for="item in config.options"
      :key="item.key"
      :label="item.value"
      :value="item.key">
    </el-option>
  </el-select>
</template>

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

<style>

</style>
