<script setup>
const props = defineProps({
  // 数据
  options: {
    type: Array,
    required: true
  },
  // 当前的值
  value: {
    type: [Number, String, Boolean],
    required: true
  }
})
</script>

<template>
  <template v-for="item in props.options">
    <el-tag :type="item.type" v-if="props.value===item.value">{{ item.label }}</el-tag>
  </template>
</template>

<style scoped lang="scss">

</style>
