File tree Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Expand file tree Collapse file tree 2 files changed +19
-3
lines changed Original file line number Diff line number Diff line change @@ -12,4 +12,16 @@ $panGreen: #30B08F;
1212$menuBg :#304156 ;
1313$subMenuBg :#1f2d3d ;
1414$menuHover :#001528 ;
15+ $menuText :#bfcbd9 ;
16+ $menuActiveText :#409EFF ;
1517$sideBarWidth : 180px ;
18+
19+ // the :export directive is the magic sauce for webpack
20+ :export {
21+ menu Bg : $menuBg ;
22+ sub Menu Bg : $subMenuBg ;
23+ menu Hover : $menuHover ;
24+ menu Text :$menuText ;
25+ menu Active Text :$menuActiveText ;
26+ side Bar Width : $sideBarWidth ;
27+ }
Original file line number Diff line number Diff line change 44 :show-timeout =" 200"
55 :default-active =" $route.path"
66 :collapse =" isCollapse"
7+ :background-color =" variables.menuBg"
8+ :text-color =" variables.menuText"
9+ :active-text-color =" variables.menuActiveText"
710 mode =" vertical"
8- background-color =" #304156"
9- text-color =" #bfcbd9"
10- active-text-color =" #409EFF"
1111 >
1212 <sidebar-item v-for =" route in permission_routers" :key =" route.path" :item =" route" :base-path =" route.path" />
1313 </el-menu >
1717<script >
1818import { mapGetters } from ' vuex'
1919import SidebarItem from ' ./SidebarItem'
20+ import variables from ' @/styles/variables.scss'
2021
2122export default {
2223 components: { SidebarItem },
@@ -25,6 +26,9 @@ export default {
2526 ' permission_routers' ,
2627 ' sidebar'
2728 ]),
29+ variables () {
30+ return variables
31+ },
2832 isCollapse () {
2933 return ! this .sidebar .opened
3034 }
You can’t perform that action at this time.
0 commit comments