<template>
  <div class="select1">
    <p>{{title}}</p>
    <el-select v-model="result" clearable placeholder="请选择" size="small" @change="change" width="100px">
      <el-option
        v-for="item in list"
        :key="item.value"
        :label="item.label"
        :value="item.value">
      </el-option>
    </el-select>
  </div>
</template>

<script>
export default {
  name: '',
  data() {
    return {
      result:''
    };
  },
  props:['title','list'],
  computed:{
  },
  watch:{
  },
  methods: {
    change() {
      this.$emit('selectChange',this.result)
    }
  },
};
</script>

<style scoped>
  .select1 {
    display: flex;
    align-items: center;
  }
  p {
    margin-right: 8px;
    font-size: 14px;
    color: #666666;
  }
  /deep/.el-select {
    width: 150px !important;
  }
</style>
