Blame view

antis-ncc-admin/src/layout/functional/Logo.vue 1.53 KB
96009bc9   hexiaodong   hxd
1
  <template>
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
2
    <div class="functional-logo-container" :class="slideClass">
96009bc9   hexiaodong   hxd
3
      <router-link class="sidebar-logo-link" to="/">
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
4
5
6
7
        <img v-if="showExpandLogo" :src="expandLogoSrc" class="sidebar-logo-img" alt="logo" />
        <h1 v-if="showExpandTitle" class="sidebar-logo-title" :class="{'is-only': !showExpandLogo}">
          {{ displaySysName }}
        </h1>
96009bc9   hexiaodong   hxd
8
9
10
11
12
      </router-link>
    </div>
  </template>
  
  <script>
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
13
14
  import sidebarBrandLogoMixin from '@/mixins/sidebar-brand-logo'
  
96009bc9   hexiaodong   hxd
15
16
  export default {
    name: 'SidebarLogo',
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
17
    mixins: [sidebarBrandLogoMixin]
96009bc9   hexiaodong   hxd
18
19
20
21
22
23
  }
  </script>
  
  <style lang="scss" scoped>
  .functional-logo-container {
    width: 210px;
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
24
25
    height: 48px;
    box-sizing: border-box;
96009bc9   hexiaodong   hxd
26
    background: #fff;
96009bc9   hexiaodong   hxd
27
28
    overflow: hidden;
    flex-shrink: 0;
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
29
30
31
    display: flex;
    align-items: center;
  
96009bc9   hexiaodong   hxd
32
    .sidebar-logo-link {
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
33
34
35
      display: flex;
      align-items: center;
      height: 48px;
96009bc9   hexiaodong   hxd
36
      width: 100%;
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
      padding: 0 16px;
      margin: 0;
      overflow: hidden;
      text-decoration: none;
      box-sizing: border-box;
    }
  
    .sidebar-logo-img {
      height: 28px;
      width: auto;
      max-width: 110px;
      flex-shrink: 0;
      object-fit: contain;
      display: block;
    }
  
    .sidebar-logo-title {
      margin: 0 0 0 8px;
      padding: 0;
      font-size: 16px;
      font-weight: 600;
      line-height: 1.2;
      letter-spacing: 0.5px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
      color: #1f2937;
  
      &.is-only {
        margin-left: 0;
      }
    }
  
    &.dark {
      background: #161618;
96009bc9   hexiaodong   hxd
72
  
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
73
74
      .sidebar-logo-title {
        color: rgba(255, 255, 255, 0.85);
96009bc9   hexiaodong   hxd
75
76
77
      }
    }
  }
4528226f   “wangming”   feat: 管理端暗黑焕肤与阿里云...
78
  </style>