From 3ed691aee0df85d42c85647f11923004cc9efac5 Mon Sep 17 00:00:00 2001 From: yangsy Date: Tue, 9 Sep 2025 15:24:48 +0800 Subject: [PATCH] style: color of offline device count --- src/components/dashboard-page/station-card.vue | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/components/dashboard-page/station-card.vue b/src/components/dashboard-page/station-card.vue index 4b7617d..55daff8 100644 --- a/src/components/dashboard-page/station-card.vue +++ b/src/components/dashboard-page/station-card.vue @@ -8,13 +8,11 @@ import axios from 'axios'; import { NCard, NStatistic, NTag, NGrid, NGi, NButton, NIcon, useThemeVars, NSpace, NTooltip } from 'naive-ui'; import { toRefs, computed } from 'vue'; -interface Props { +const props = defineProps<{ station: Station; stationDevices?: StationDevices; stationAlarmCounts?: StationAlarmCounts; -} - -const props = defineProps(); +}>(); const emit = defineEmits<{ 'open-offline-device-detail-modal': [station: Station]; @@ -131,7 +129,7 @@ const theme = useThemeVars(); 离线设备