From ddb76492b96539151ab1947660b3bcbd9e20e302 Mon Sep 17 00:00:00 2001
From: linwe <872216996@qq.com>
Date: Fri, 22 Nov 2024 15:38:03 +0800
Subject: [PATCH] 代码优化

---
 src/views/space/components/leftContainer.vue |   23 ++++++++++++++++++-----
 1 files changed, 18 insertions(+), 5 deletions(-)

diff --git a/src/views/space/components/leftContainer.vue b/src/views/space/components/leftContainer.vue
index 200364d..52e9e19 100644
--- a/src/views/space/components/leftContainer.vue
+++ b/src/views/space/components/leftContainer.vue
@@ -2,7 +2,7 @@
  * @Author: shuishen 1109946754@qq.com
  * @Date: 2023-03-10 15:27:59
  * @LastEditors: shuishen 1109946754@qq.com
- * @LastEditTime: 2024-11-12 18:10:32
+ * @LastEditTime: 2024-11-18 16:10:10
  * @FilePath: \bigScreen\src\views\space\components\leftContainer.vue
  * @Description: 
  * 
@@ -40,6 +40,7 @@
   curSelect.value = item.value
   EventBus.emit('restHandleCheckChange', `3-${item.value}`)
   EventBus.emit('spaceTabChange', item.value)
+  EventBus.emit('flyToyqfw', 'flyToyqfw')
 }
 
 const showOn = computed(() => (item) => {
@@ -62,7 +63,7 @@
     <div class="tablist h100">
       <div class="cursor-p" :class="{ on: showOn(item) }" v-for="item, index in resData.data" :key="index"
         @click="tabClick(item)">
-        <div class="nowrap-ellipsis-hidden">
+        <div class="label-box">
           {{ item.label }}
         </div>
       </div>
@@ -71,6 +72,10 @@
 </template>
 
 <style lang="scss" scoped>
+.left-container {
+  width: 64px;
+}
+
 .cur-container {
   background: transparent;
   pointer-events: none;
@@ -79,12 +84,14 @@
     pointer-events: all;
 
     &>div {
+      display: flex;
+      align-items: center;
+      justify-content: center;
       margin-top: 16px;
       padding: 10px;
       width: 64px;
       height: 64px;
-      line-height: 64px;
-      text-align: center;
+
       border-radius: 50%;
       box-shadow: inset 0 0 40px #409eff;
       color: #fff;
@@ -92,7 +99,13 @@
 
       &.on {
         position: relative;
-        color: #75b1ff;
+        // color: #75b1ff;
+        box-shadow: inset 0 0 100px #2a8ef1;
+      }
+
+      .label-box {
+        line-height: 24px;
+        text-align: center;
       }
     }
   }

--
Gitblit v1.9.3