1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
| <template>
| <template v-if="$property[propertyKey]">
| <el-tag
| :round="round"
| :style="{ borderColor: $property[propertyKey].borderColor[statusKey]}"
| :color="$property[propertyKey].bgColor[statusKey]"
| >
| <el-text :style="{ color: $property[propertyKey].textColor[statusKey] }">
| {{ $property[propertyKey].text[statusKey] }}
| </el-text>
| </el-tag>
| </template>
| <el-text v-else>
| {{ statusKey }}
| </el-text>
| </template>
| <script>
| export default {
| data() {
| return {}
| },
| props: {
| statusKey: String,
| propertyKey: String,
| round: {
| type: Boolean,
| default: true
| }
| },
| }
| </script>
|
|