<template>
  <div class="tagWrap">
    <el-tooltip
      v-for="(item,index) in value"
      :key="index"
      :content="item.name"
      placement="top">
      <el-tag
        size="mini"
        :color="scenicColor[item.id]"
      >
        {{ item.name[0] }}
      </el-tag>
    </el-tooltip>
  </div>
</template>

<script>
export default {
  computed: {
    scenicColor () {
      return this.$store.state.app.scenicColor
    }
  },
  props: {
    value: {
      type: Array,
      default: () => []
    }
  }
}
</script>

<style lang="scss" scoped>
.tagWrap{
    display: inline-block; font-size: 10px;
    ::v-deep .el-tag{
        color: #fff; border: 0; border-radius: 0; vertical-align: bottom; text-decoration: none !important;
    }
    ::v-deep .el-tag + .el-tag{
         margin-left: 1px;
    }
}
</style>
