From da2a4e58ecc7c5da0a3ec726708a16c21e7f60e3 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Mon, 07 Apr 2025 15:34:09 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/master'

---
 src/components/CommonTitle.vue |   20 ++++++++++++--------
 1 files changed, 12 insertions(+), 8 deletions(-)

diff --git a/src/components/CommonTitle.vue b/src/components/CommonTitle.vue
index 935ee50..eef6d28 100644
--- a/src/components/CommonTitle.vue
+++ b/src/components/CommonTitle.vue
@@ -3,7 +3,7 @@
     <div class="left">
       {{ title }}
     </div>
-    <div class="right" v-if="show" @click="attrs.onDetails()">详情 ></div>
+    <div class="right" v-if="show" @click="attrs.onDetails()">{{ text }} ></div>
   </div>
 </template>
 <script setup>
@@ -11,6 +11,10 @@
   title: {
     type: String,
     default: '机巢概况',
+  },
+  text: {
+    type: String,
+    default: '详情',
   },
 });
 const attrs = useAttrs();
@@ -20,7 +24,7 @@
 .overview-title {
   position: relative;
   width: 404px;
-  height: hToV(43);
+  height: 43px;
   background-image: url(@/assets/images/title-bg.png);
   background-size: 100% 100%;
   background-repeat: no-repeat;
@@ -30,7 +34,7 @@
   .left {
     position: absolute;
     left: 49px;
-    bottom: hToV(16);
+    bottom: 16px;
     font-weight: 400;
     font-size: 20px;
     color: #ffffff;
@@ -39,8 +43,8 @@
     font-style: normal;
     text-transform: none;
     font-family: YouSheBiaoTiHei, YouSheBiaoTiHei, serif;
-    height: hToV(26);
-    line-height: hToV(23);
+    height: 26px;
+    line-height:  23px;
   }
 
   .right {
@@ -48,13 +52,13 @@
     font-weight: 500;
     font-size: 14px;
     color: #0be7f6;
-    height: hToV(21);
-    line-height: hToV(21);
+    height:  21px;
+    line-height:  21px;
     font-family: Source Han Sans CN, Source Han Sans CN, serif;
     text-align: right;
     font-style: normal;
     text-transform: none;
-    bottom: hToV(16);
+    bottom:  16px;
     right: 11px;
     cursor: pointer;
   }

--
Gitblit v1.9.3