style: color of offline device count

This commit is contained in:
yangsy
2025-09-09 15:42:19 +08:00
parent 30622a21db
commit 75096df3be

View File

@@ -129,7 +129,8 @@ const theme = useThemeVars();
<span class="font-xx-small" :class="[station.online ? 'clickable' : '']" @click="openOfflineDeviceTreeModal">离线设备</span>
</template>
<template #default>
<span class="font-small" :style="{ color: offlineDeviceCount > 0 ? theme.errorColor : theme.successColor }">{{ offlineDeviceCount }}</span>
<span class="font-small" :style="{ color: offlineDeviceCount > 0 ? theme.errorColor : '' }">{{ offlineDeviceCount }}</span>
<span class="font-small">/</span>
<span class="font-small">/{{ deviceCount }}</span>
</template>
<template #suffix>