From 8fce9d1b69c64f97066d54f95d40bd10f41fa5a0 Mon Sep 17 00:00:00 2001
From: maochaoying <925670706@qq.com>
Date: Sat, 26 Aug 2023 11:06:51 +0800
Subject: [PATCH] unit
---
src/components/info/EnvironmentInfo.vue | 31 ++++++++++++++++++++++++++-----
1 file changed, 26 insertions(+), 5 deletions(-)
diff --git a/src/components/info/EnvironmentInfo.vue b/src/components/info/EnvironmentInfo.vue
index 12165c9..e566c9f 100644
--- a/src/components/info/EnvironmentInfo.vue
+++ b/src/components/info/EnvironmentInfo.vue
@@ -23,19 +23,31 @@
温度
-
{{ getTemperature() }}°C
+
+ {{ getTemperature() }}
+
°C
+
相对湿度
-
{{ getHumidity() }} {{ '%RH' }}
+
+ {{ getHumidity() }}
+
{{ '%RH' }}
+
相对饱和度
-
{{ getSaturation() }} {{ '%RS' }}
+
+ {{ getSaturation() }}
+
{{ '%RS' }}
+
汽化过氧化氢浓度
-
{{ getHP() }} ppm
+
@@ -150,7 +162,7 @@ const getSaturation = () => {
display: grid;
grid-template-rows: repeat(4, 1fr);
.line {
- padding: 11px 26px;
+ padding: 11px 13px 11px 26px;
width: 353px;
// height: 56px;
box-sizing: border-box;
@@ -173,6 +185,15 @@ const getSaturation = () => {
font-weight: bold;
letter-spacing: 0.06em;
color: #ffffff;
+ display: flex;
+ align-items: center;
+ .unit {
+ width: 60px;
+ margin-left: 6px;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ }
}
}
}