<template>
  <el-select v-model="localClassAge" placeholder="请选择五育" clearable @change="$emit('change')">
    <el-option
      v-for="item in dict.type[DictType.platform_five_birth]"
      :key="item.value"
      :label="item.label"
      :value="item.value"
    />
  </el-select>
</template>

<script>
import DictType from '@/utils/dict/DictType'
export default {
  name: 'SelectFiveEducations',
  dicts: [DictType.platform_five_birth],
  model: {
    prop: 'value',
    event: 'update:value'
  },
  props: {
    value: {
      type: [String, Number],
      default: null
    }
  },
  data() {
    return {
      DictType
    }
  },
  computed: {
    localClassAge: {
      get() {
        return this.value
      },
      set(val) {
        this.$emit('update:value', val)
      }
    }
  }
}
</script>

<style scoped>

</style>
