| | |
| | | <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="/"> |
| | |
| | | data() { |
| | | return { |
| | | title: '”项目名称“', |
| | | logo: 'https://wpimg.wallstcn.com/69a1c46c-eb1c-4b46-8bd4-e9e686ef5251.png' |
| | | logo: '' |
| | | } |
| | | } |
| | | } |
| | |
| | | margin-right: 12px; |
| | | } |
| | | |
| | | & .logo-center { |
| | | margin-top: 50%; |
| | | transform: translateY(-50%); |
| | | } |
| | | |
| | | & .sidebar-title { |
| | | display: inline-block; |
| | | margin: 0; |