9d1d1cee by 任超

style:样式

1 parent f745e1dd
1 <template> 1 <template>
2 <div class="sidebar-logo-container" 2 <div class="sidebar-logo-container" :class="{ 'collapse': collapse }">
3 :class="{'collapse':collapse}">
4 <transition name="sidebarLogoFade"> 3 <transition name="sidebarLogoFade">
5 <router-link v-if="collapse" 4 <router-link v-if="collapse" key="collapse" class="sidebar-logo-link" to="/">
6 key="collapse" 5 <img v-if="logo" :src="logo" class="sidebar-logo">
7 class="sidebar-logo-link" 6 <h1 v-else class="sidebar-title">
8 to="/">
9 <img v-if="logo"
10 :src="logo"
11 class="sidebar-logo">
12 <h1 v-else
13 class="sidebar-title">
14 {{ title }} 7 {{ title }}
15 </h1> 8 </h1>
16 </router-link> 9 </router-link>
17 <router-link v-else 10 <router-link v-else key="expand" class="sidebar-logo-link" to="/">
18 key="expand" 11 <img v-if="logo" :src="logo" class="sidebar-logo">
19 class="sidebar-logo-link"
20 to="/">
21 <img v-if="logo"
22 :src="logo"
23 class="sidebar-logo">
24 <h1 class="sidebar-title"> 12 <h1 class="sidebar-title">
25 厦门市房屋租赁<br>管理服务系统 13 {{ title }}
26 </h1> 14 </h1>
27 </router-link> 15 </router-link>
28 </transition> 16 </transition>
...@@ -30,6 +18,8 @@ ...@@ -30,6 +18,8 @@
30 </template> 18 </template>
31 19
32 <script> 20 <script>
21 import defaultSettings from '@/settings'
22 const { title } = defaultSettings
33 import logonImg from '@/assets/global_images/logo.png' 23 import logonImg from '@/assets/global_images/logo.png'
34 export default { 24 export default {
35 name: 'SidebarLogo', 25 name: 'SidebarLogo',
...@@ -39,9 +29,9 @@ export default { ...@@ -39,9 +29,9 @@ export default {
39 required: true 29 required: true
40 } 30 }
41 }, 31 },
42 data() { 32 data () {
43 return { 33 return {
44 title: '厦门市房屋数据服务平台', 34 title: title,
45 logo: logonImg 35 logo: logonImg
46 } 36 }
47 } 37 }
...@@ -68,12 +58,13 @@ export default { ...@@ -68,12 +58,13 @@ export default {
68 & .sidebar-logo-link { 58 & .sidebar-logo-link {
69 height: 100%; 59 height: 100%;
70 width: 100%; 60 width: 100%;
61
71 & .sidebar-logo { 62 & .sidebar-logo {
72 width: 41px; 63 width: 41px;
73 height: 39px; 64 height: 39px;
74 vertical-align: middle; 65 vertical-align: middle;
75 // margin-left: 47px; 66 // margin-left: 47px;
76 // margin-right: 48px; 67 // margin-right: 48px;
77 margin-top: 22px; 68 margin-top: 22px;
78 } 69 }
79 70
......
...@@ -12,7 +12,6 @@ ...@@ -12,7 +12,6 @@
12 </div> 12 </div>
13 </template> 13 </template>
14 <script> 14 <script>
15 // import RightPanel from '@/components/RightPanel'
16 import { AppMain, Navbar, Sidebar, TagsView } from './components' 15 import { AppMain, Navbar, Sidebar, TagsView } from './components'
17 import ResizeMixin from './mixin/ResizeHandler' 16 import ResizeMixin from './mixin/ResizeHandler'
18 import { mapState } from 'vuex' 17 import { mapState } from 'vuex'
......
1 module.exports = { 1 module.exports = {
2 title: '管理系统', 2 title: '爬山虎不动产登记平台',
3 /** 3 /**
4 * @type {boolean} true | false 4 * @type {boolean} true | false
5 * @description Whether show the settings right-panel 5 * @description Whether show the settings right-panel
......
...@@ -19,7 +19,7 @@ $menuHover:#2e69ca; ...@@ -19,7 +19,7 @@ $menuHover:#2e69ca;
19 $subMenuBg:#3983fc; 19 $subMenuBg:#3983fc;
20 $subMenuHover:#2e69ca; 20 $subMenuHover:#2e69ca;
21 21
22 $sideBarWidth: 160px; 22 $sideBarWidth: 170px;
23 $sideBarFontSize:15px; 23 $sideBarFontSize:15px;
24 24
25 // the :export directive is the magic sauce for webpack 25 // the :export directive is the magic sauce for webpack
...@@ -33,5 +33,5 @@ $sideBarFontSize:15px; ...@@ -33,5 +33,5 @@ $sideBarFontSize:15px;
33 subMenuBg: $subMenuBg; 33 subMenuBg: $subMenuBg;
34 subMenuHover: $subMenuHover; 34 subMenuHover: $subMenuHover;
35 sideBarWidth: $sideBarWidth; 35 sideBarWidth: $sideBarWidth;
36 sideBarFontSize:$sideBarFontSize; 36 sideBarFontSize: $sideBarFontSize;
37 } 37 }
...\ No newline at end of file ...\ No newline at end of file
......