From ff2d01588d4e69d3bf1ad856e8e225b7f6a3c0f2 Mon Sep 17 00:00:00 2001
From: zhaowei <zhaowei>
Date: 星期一, 26 八月 2024 11:01:48 +0800
Subject: [PATCH] 1、基本实现电子说明书页面布局及功能 2、基本实现语言大模型页面与后端数据联动

---
 src/components/menu/SideMenu.vue |  102 ++++++++++++++++++++++++++++++++++++++-------------
 1 files changed, 76 insertions(+), 26 deletions(-)

diff --git a/src/components/menu/SideMenu.vue b/src/components/menu/SideMenu.vue
index 830ec60..646fa47 100644
--- a/src/components/menu/SideMenu.vue
+++ b/src/components/menu/SideMenu.vue
@@ -8,17 +8,16 @@
 
     <div id="menu-container">
       <logo/>
-      <div class="nav-split-line"></div>
+      <div class="nav-split-line" :style="{backgroundColor:$route.meta.title==='棣栭〉'?'#E5E5E5':'#585258'}"></div>
       <s-menu
-        :collapsed="collapsed"
         :menu="menus"
-        :theme="theme"
+        theme="light"
         @select="onSelect"
         @updateMenuTitle="onUpdateMenuTitle"
         :mode="mode"
         :style="smenuStyle">
       </s-menu>
-      <div class="nav-split-line"></div>
+      <div class="nav-split-line" :style="{backgroundColor:$route.meta.title==='棣栭〉'?'#E5E5E5':'#585258'}"></div>
       <div class="avatar">
         <a-avatar :src="getAvatar()" @click="$router.push('/user/UserManagement')"/>
       </div>
@@ -52,12 +51,12 @@
 
   export default {
     name: 'SideMenu',
-    components: {  Logo, SMenu },
+    components: { Logo, SMenu },
     mixins: [mixin, mixinDevice],
     data() {
       return {
-        normalCollapsedWidth: 100,
-        collapsedWidth: 100
+        normalCollapsedWidth: '5.2vw',
+        collapsedWidth: '5.2vw'
       }
     },
     props: {
@@ -129,6 +128,7 @@
   /* update_begin author:sunjianlei date:20190509 for: 淇敼渚ц竟瀵艰埅鏍忔粴鍔ㄦ潯鐨勬牱寮� */
   .sider {
     @scrollBarSize: 10px;
+    background: transparent!important;
 
     #menu-container {
       background-color: rgba(255, 255, 255, .34);
@@ -143,6 +143,7 @@
       /deep/ .ant-menu {
         background-color: transparent;
         width: 60px;
+        border: none;
         /* 瀹氫箟婊氬姩鏉¢珮瀹藉強鑳屾櫙 楂樺鍒嗗埆瀵瑰簲妯珫婊氬姩鏉$殑灏哄*/
         &::-webkit-scrollbar {
           width: @scrollBarSize;
@@ -188,15 +189,29 @@
 
       /deep/ .ant-menu-inline-collapsed > .ant-menu-item {
         padding: 0 !important;
-        border-radius: 12px;
-
+        border-radius: 20px;
+        display: flex;
+        justify-content: center;
+        align-items: center;
+        height: 59px;
+        margin: 0;
 
         a {
           text-align: center;
           border-radius: 12px;
-        }
-        .anticon {
-          font-size: 25px;
+          display: flex;
+          justify-content: center;
+          align-items: center;
+
+          .anticon {
+            font-size: 30px;
+            line-height: 0;
+            transition: all .3s ease-in-out;
+          }
+
+          & > span {
+            display: none;
+          }
         }
 
         /*瀵艰埅鏍忓彾瀛愯彍鍗曟寜閽閫変腑鍚庢牱寮�*/
@@ -209,9 +224,46 @@
 
         /*瀵艰埅鏍忔寜閽婵�娲诲悗鏍峰紡*/
         &.ant-menu-item-active {
-          background-color: #E7EBF6;
+          background-color: rgba(0, 0, 0, .2);
+
           a {
             color: rgba(0, 0, 0, 0.65)
+          }
+          .anticon {
+            transform: scale(1.1);
+          }
+        }
+      }
+
+      /deep/ .ant-menu-inline-collapsed > .ant-menu-submenu {
+        display: flex;
+        justify-content: center;
+        align-items: center;
+
+        .ant-menu-submenu-title {
+          padding: 0 !important;
+          width: 100%;
+          height: 59px;
+          border-radius: 20px;
+          display: flex;
+          justify-content: center;
+          align-items: center;
+          margin: 0;
+
+          & > span {
+            display: flex;
+            justify-content: center;
+            align-items: center;
+
+            .anticon {
+              font-size: 30px;
+              line-height: 0;
+              transition: all .3s ease-in-out;
+            }
+
+            span {
+              display: none;
+            }
           }
         }
       }
@@ -224,25 +276,15 @@
       /*瀵艰埅鏍忛潪鍙跺瓙鑿滃崟鎸夐挳琚縺娲诲悗鏍峰紡*/
       /deep/ .ant-menu-vertical .ant-menu-submenu-active {
         .ant-menu-submenu-title {
-          background-color: #E7EBF6;
+          background-color: rgba(0, 0, 0, .2);
+          /*transform: scale(1.2);*/
           color: rgba(0, 0, 0, 0.65);
-        }
-      }
-
-      /deep/ .ant-menu-inline-collapsed > .ant-menu-submenu > .ant-menu-submenu-title {
-        padding: 0 !important;
-        text-align: center;
-        border-radius: 12px;
-
-        .anticon {
-          font-size: 25px;
         }
       }
 
       .nav-split-line {
         width: 50px;
         height: 1px;
-        background-color: #E5E5E5;
         border-radius: 12px;
         cursor: pointer;
         margin: 15px auto
@@ -250,9 +292,16 @@
 
       .avatar {
         text-align: center;
+        height: 60px;
+        display: flex;
+        justify-content: center;
+        align-items: center;
 
         /deep/ .ant-avatar {
           cursor: pointer;
+          width: 40px;
+          height: 40px;
+          line-height: 40px;
         }
       }
     }
@@ -267,10 +316,11 @@
       cursor: pointer;
       transition: all .2s ease;
       opacity: 0;
+      z-index: 99;
 
       #response-line-0, #response-line-1 {
         width: 4px;
-        height: 13px;
+        height: 14px;
         background-color: #c6c6c6;
         left: 4px;
         position: absolute;

--
Gitblit v1.9.3