fix: bug#11155
This commit is contained in:
parent
dfa9a5ac63
commit
4dd6e5bffa
|
@ -1,8 +1,9 @@
|
||||||
<template>
|
<template>
|
||||||
<span class="status-label-container">
|
<!-- <span class="status-label-container">
|
||||||
<i class="circle" :style="{ background: bjColor }"></i>
|
<i class="circle" :style="{ background: bjColor }"></i>
|
||||||
<span>{{ props.statusLabel }}</span>
|
<span>{{ props.statusLabel }}</span>
|
||||||
</span>
|
</span> -->
|
||||||
|
<j-badge :text="statusLabel" :status="status" />
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
@ -11,14 +12,14 @@ const props = defineProps<{
|
||||||
statusLabel: string;
|
statusLabel: string;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const bjColor = computed(() => {
|
const status = computed(() => {
|
||||||
switch (props.statusValue) {
|
switch (props.statusValue) {
|
||||||
case 'online':
|
case 'online':
|
||||||
return '#52c41a';
|
return 'processing';
|
||||||
case 'offline':
|
case 'offline':
|
||||||
return '#ff4d4f';
|
return 'error';
|
||||||
case 'notActive':
|
case 'notActive':
|
||||||
return '#1890ff';
|
return 'warning';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
</script>
|
</script>
|
||||||
|
|
Loading…
Reference in New Issue