zhuoyuan.wang
2024-06-19 15ebe96f28cadec6a726c5324593a40bbf56205f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<template>
  <el-tag :type="typeEnum[value]" v-if="props.value">{{ valueEnum ? valueEnum[value] : value }}</el-tag>
</template>
 
<script setup>
const props = defineProps({
  value: {
    type: String,
    default: ''
  },
  valueEnum: {
    type: Object,
    default: {}
  },
  typeEnum: {
    type: Object,
    default: {}
  },
});
 
</script>