Kaynağa Gözat

chore: 优化了标题展示和大小样式

奔跑的面条 3 yıl önce
ebeveyn
işleme
06fe805736

+ 8 - 1
src/views/chart/ContentHeader/headerTitle/index.vue

@@ -5,7 +5,9 @@
     </n-icon>
     <n-text @click="handleFocus">
       工作空间 -
-      <n-button v-show="!focus" secondary round size="tiny">{{ comTitle }}</n-button>
+      <n-button v-show="!focus" secondary round size="tiny">
+        <span class="title">{{ comTitle }}</span>
+      </n-button>
     </n-text>
 
     <n-input
@@ -72,3 +74,8 @@ const handleBlur = async () => {
   }
 }
 </script>
+<style lang="scss" scoped>
+.title {
+  font-size: 15px;
+}
+</style>

+ 1 - 1
src/views/project/items/components/ProjectItemsCard/index.vue

@@ -26,7 +26,7 @@
       <template #action>
         <div class="go-flex-items-center list-footer" justify="space-between">
           <n-text class="go-ellipsis-1">
-            {{ cardData.title || '' }}
+            {{ cardData.title || cardData.id || '未命名' }}
           </n-text>
           <!-- 工具 -->
           <div class="go-flex-items-center list-footer-ri">

+ 1 - 1
src/views/project/items/components/ProjectItemsModalCard/index.vue

@@ -11,7 +11,7 @@
         <n-space class="list-content-top go-px-0" justify="center">
           <n-space>
             <n-text>
-              {{ cardData?.title || '' }}
+              {{ cardData?.title || cardData?.id || '未命名' }}
             </n-text>
           </n-space>
         </n-space>