From 794f2a2560a00eb7e008eb94219c82654488831f Mon Sep 17 00:00:00 2001
From: long <515897141@qq.com>
Date: 星期五, 12 十一月 2021 09:52:01 +0800
Subject: [PATCH] 功能展示列表:table添加简易单行省略显示tooltip

---
 src/layout/components/Sidebar/Logo.vue |    9 +++++++--
 1 files changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/layout/components/Sidebar/Logo.vue b/src/layout/components/Sidebar/Logo.vue
index 4f28d5b..272b4f1 100644
--- a/src/layout/components/Sidebar/Logo.vue
+++ b/src/layout/components/Sidebar/Logo.vue
@@ -2,7 +2,7 @@
   <div class="sidebar-logo-container" :class="{'collapse':collapse}">
     <transition name="sidebarLogoFade">
       <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
-        <img v-if="logo" :src="logo" class="sidebar-logo">
+        <img v-if="logo" :src="logo" class="sidebar-logo logo-center">
         <h1 v-else class="sidebar-title">{{ title }} </h1>
       </router-link>
       <router-link v-else key="expand" class="sidebar-logo-link" to="/">
@@ -25,7 +25,7 @@
   data() {
     return {
       title: '鈥濋」鐩悕绉扳��',
-      logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png'
+      logo: ''
     }
   }
 }
@@ -61,6 +61,11 @@
       margin-right: 12px;
     }
 
+    & .logo-center {
+      margin-top: 50%;
+      transform: translateY(-50%);
+    }
+
     & .sidebar-title {
       display: inline-block;
       margin: 0;

--
Gitblit v1.8.0