| 
...
 | 
...
 | 
@@ -30,6 +30,16 @@ | 
| 
30
 | 
30
 | 
       : transformValue;
 | 
| 
31
 | 
31
 | 
   });
 | 
| 
32
 | 
32
 | 
 
 | 
| 
 
 | 
33
 | 
+  const getDesign = computed(() => {
 | 
| 
 
 | 
34
 | 
+    const { persetOption, option } = props.config;
 | 
| 
 
 | 
35
 | 
+    const { fontColor: presetFontColor } = persetOption || {};
 | 
| 
 
 | 
36
 | 
+    const { componentInfo } = option || {};
 | 
| 
 
 | 
37
 | 
+    const { fontColor } = componentInfo || {};
 | 
| 
 
 | 
38
 | 
+    return {
 | 
| 
 
 | 
39
 | 
+      fontColor: fontColor ?? presetFontColor,
 | 
| 
 
 | 
40
 | 
+    };
 | 
| 
 
 | 
41
 | 
+  });
 | 
| 
 
 | 
42
 | 
+
 | 
| 
33
 | 
43
 | 
   const updateFn: DataFetchUpdateFn = (message, attribute) => {
 | 
| 
34
 | 
44
 | 
     const { data = {} } = message;
 | 
| 
35
 | 
45
 | 
     const [latest] = data[attribute] || [];
 | 
| 
...
 | 
...
 | 
@@ -226,12 +236,15 @@ | 
| 
226
 | 
236
 | 
         </g>
 | 
| 
227
 | 
237
 | 
       </g>
 | 
| 
228
 | 
238
 | 
     </svg>
 | 
| 
229
 | 
 
 | 
-    <!-- <div class="absolute w-full h-full flex justify-center items-center bg-transparent">
 | 
| 
230
 | 
 
 | 
-      <div class="transform translate-x-full text-lg text-gray-500">
 | 
| 
 
 | 
239
 | 
+    <div class="absolute w-full h-full flex justify-center items-center bg-transparent">
 | 
| 
 
 | 
240
 | 
+      <div
 | 
| 
 
 | 
241
 | 
+        class="transform translate-x-full text-lg text-gray-500"
 | 
| 
 
 | 
242
 | 
+        :style="{ color: getDesign.fontColor }"
 | 
| 
 
 | 
243
 | 
+      >
 | 
| 
231
 | 
244
 | 
         <span>{{ currentValue }}</span>
 | 
| 
232
 | 
245
 | 
         <span>{{ '℃' }}</span>
 | 
| 
233
 | 
246
 | 
       </div>
 | 
| 
234
 | 
 
 | 
-    </div> -->
 | 
| 
 
 | 
247
 | 
+    </div>
 | 
| 
235
 | 
248
 | 
   </main>
 | 
| 
236
 | 
249
 | 
 </template>
 | 
| 
237
 | 
250
 | 
 
 | 
...
 | 
...
 | 
 |