|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<div class="sidebar" :style="collapse ? 'width:85px' : 'width:220px'">
|
|
|
<div class="logo" v-if="!collapse">
|
|
|
- <img style="width: 90px; height: 24px" src="@/assets/img/img_logo2.png" />
|
|
|
+ <img style="width: rem(90); height: rem(24)" src="@/assets/img/img_logo2.png" />
|
|
|
<div class="title"><span class="point"></span>{{ $store.getters['getThisDetai'].name || sessSetThisDetai }}</div>
|
|
|
</div>
|
|
|
<div class="logo shrink" v-else>
|
|
@@ -108,48 +108,49 @@ export default {
|
|
|
</script>
|
|
|
|
|
|
<style lang="scss">
|
|
|
+@import '@assets/css/public-style.scss';
|
|
|
.sidebar {
|
|
|
- width: 220px;
|
|
|
+ width: rem(220);
|
|
|
display: flex;
|
|
|
flex-direction: column;
|
|
|
background: #171f32;
|
|
|
- border-radius: 0px 30px 30px 0px;
|
|
|
+ border-radius: 0px rem(30) rem(30) 0px;
|
|
|
z-index: 2;
|
|
|
.logo {
|
|
|
width: 100%;
|
|
|
- height: 110px;
|
|
|
+ height: rem(110);
|
|
|
color: #ffffff;
|
|
|
- padding: 35px 10px 0 20px;
|
|
|
+ padding: rem(35) rem(10) 0 rem(20);
|
|
|
border-bottom: 1px solid #2a335c;
|
|
|
- margin-bottom: 25px;
|
|
|
+ margin-bottom: rem(25);
|
|
|
img {
|
|
|
- width: 90px;
|
|
|
- height: 24px;
|
|
|
+ width: rem(90);
|
|
|
+ height: rem(24);
|
|
|
display: inline-block;
|
|
|
vertical-align: middle;
|
|
|
- margin-right: 6px;
|
|
|
+ margin-right: rem(6);
|
|
|
}
|
|
|
.title {
|
|
|
- font-size: 16px;
|
|
|
+ font-size: rem(16);
|
|
|
font-weight: 500;
|
|
|
display: inline-block;
|
|
|
vertical-align: middle;
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
- border-radius: 4px;
|
|
|
+ border-radius: rem(4);
|
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
|
- padding: 0px 7px;
|
|
|
+ padding: 0px rem(7);
|
|
|
}
|
|
|
.point {
|
|
|
- width: 4px;
|
|
|
- height: 4px;
|
|
|
+ width: rem(4);
|
|
|
+ height: rem(4);
|
|
|
display: inline-block;
|
|
|
// margin-right: 5px;
|
|
|
vertical-align: middle;
|
|
|
text-align: center;
|
|
|
}
|
|
|
.text {
|
|
|
- width: 40px;
|
|
|
- margin-left: -14px;
|
|
|
+ width: rem(40);
|
|
|
+ margin-left: rem(-14);
|
|
|
}
|
|
|
}
|
|
|
.menu-wrap {
|
|
@@ -160,13 +161,13 @@ export default {
|
|
|
.menu-footer.dark {
|
|
|
bottom: 0;
|
|
|
left: 0;
|
|
|
- width: 220px;
|
|
|
- height: 30px;
|
|
|
+ width: rem(220);
|
|
|
+ height: rem(30);
|
|
|
|
|
|
div {
|
|
|
width: 100%;
|
|
|
height: 100%;
|
|
|
- border-radius: 0px 0 30px 0px;
|
|
|
+ border-radius: 0px 0 rem(30) 0px;
|
|
|
background-color: #171f32;
|
|
|
border: none;
|
|
|
}
|
|
@@ -182,15 +183,15 @@ export default {
|
|
|
}
|
|
|
.footer {
|
|
|
position: absolute;
|
|
|
- bottom: 30px;
|
|
|
- left: 20px;
|
|
|
+ bottom: rem(30);
|
|
|
+ left: rem(20);
|
|
|
z-index: 11;
|
|
|
- width: 30px;
|
|
|
- height: 30px;
|
|
|
+ width: rem(30);
|
|
|
+ height: rem(30);
|
|
|
img {
|
|
|
display: block;
|
|
|
- width: 24px;
|
|
|
- height: 24px;
|
|
|
+ width: rem(24);
|
|
|
+ height: rem(24);
|
|
|
cursor: pointer;
|
|
|
}
|
|
|
}
|
|
@@ -210,7 +211,7 @@ export default {
|
|
|
}
|
|
|
.sidebar-el-menu > div > .el-submenu.is-opened.is-active > .el-submenu__title {
|
|
|
background: #2c354a !important;
|
|
|
- border-radius: 32px 0px 0px 32px;
|
|
|
+ border-radius: rem(32) 0px 0px rem(32);
|
|
|
color: rgb(39, 135, 241) !important;
|
|
|
border-right: 2px solid #2787f1;
|
|
|
.el-submenu__icon-arrow::before {
|
|
@@ -226,17 +227,17 @@ export default {
|
|
|
|
|
|
.sidebar .logo.shrink {
|
|
|
display: flex;
|
|
|
- font-size: 16px;
|
|
|
+ font-size: rem(16);
|
|
|
justify-content: center;
|
|
|
// color: $mainTextColor;
|
|
|
border-bottom: 2px solid #2a335c;
|
|
|
- margin-bottom: 20px;
|
|
|
+ margin-bottom: rem(20);
|
|
|
align-items: flex-start;
|
|
|
.text {
|
|
|
- width: 48px;
|
|
|
- height: 48px;
|
|
|
+ width: rem(48);
|
|
|
+ height: rem(48);
|
|
|
background: rgba(255, 255, 255, 0.1);
|
|
|
- border-radius: 4px;
|
|
|
+ border-radius: rem(4);
|
|
|
border: 1px solid rgba(255, 255, 255, 0.4);
|
|
|
text-align: center;
|
|
|
}
|
|
@@ -247,13 +248,13 @@ export default {
|
|
|
// justify-content: center;
|
|
|
// color: #2787f1;
|
|
|
// border-bottom: 2px solid #2a335c;
|
|
|
-// margin-bottom: 20px;
|
|
|
+// margin-bottom: rem(20);
|
|
|
// align-items: flex-start;
|
|
|
// .text {
|
|
|
-// width: 48px;
|
|
|
-// height: 48px;
|
|
|
+// width: rem(48);
|
|
|
+// height: rem(48);
|
|
|
// background: rgba(255, 255, 255, 0.1);
|
|
|
-// border-radius: 4px;
|
|
|
+// border-radius: rem(4);
|
|
|
// border: 1px solid rgba(255, 255, 255, 0.4);
|
|
|
// text-align: center;
|
|
|
// }
|
|
@@ -263,7 +264,7 @@ export default {
|
|
|
color: #2787f1;
|
|
|
|
|
|
background: #2c354a;
|
|
|
- border-radius: 32px 0px 0px 32px;
|
|
|
+ border-radius: rem(32) 0px 0px rem(32);
|
|
|
}
|
|
|
|
|
|
.el-menu--collapse > .is-active > .el-submenu__title {
|
|
@@ -272,9 +273,9 @@ export default {
|
|
|
.el-submenu > .el-submenu__title:hover {
|
|
|
//设置一级菜单的鼠标经过时候的样式
|
|
|
background: rgb(44, 53, 74) !important;
|
|
|
- border-radius: 32px 0px 0px 32px !important;
|
|
|
+ border-radius: rem(32) 0px 0px rem(32) !important;
|
|
|
}
|
|
|
.el-menu-item:hover {
|
|
|
- border-radius: 32px 0px 0px 32px;
|
|
|
+ border-radius: rem(32) 0px 0px rem(32);
|
|
|
}
|
|
|
</style>
|