Skip to content

Commit

Permalink
refine sidebar css
Browse files Browse the repository at this point in the history
  • Loading branch information
PanJiaChen committed Aug 2, 2017
1 parent c96bdeb commit a3b1dd8
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/styles/sidebar.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// 侧边栏
.sidebar-container>.el-menu {
width: 100%!important;
min-height: 100%;
}

.sidebar-container .svg-icon {
Expand Down
3 changes: 2 additions & 1 deletion src/views/layout/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,8 @@
bottom: 0;
left: 0;
z-index: 1001;
background: red;
overflow-y: auto;
&::-webkit-scrollbar {display:none}
}
.main-container {
min-height: 100%;
Expand Down
15 changes: 4 additions & 11 deletions src/views/layout/Sidebar.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
<template>
<div>
<el-menu mode="vertical" theme="dark" :default-active="$route.path" :collapse="isCollapse">
<sidebar-item :routes='permission_routers'></sidebar-item>
</el-menu>
</div>
<el-menu mode="vertical" theme="dark" unique-opened :default-active="$route.path" :collapse="isCollapse">
<sidebar-item :routes='permission_routers'></sidebar-item>
</el-menu>
</template>


<script>
import { mapGetters } from 'vuex';
import SidebarItem from './SidebarItem';
Expand All @@ -22,9 +21,3 @@
}
}
</script>

<style rel="stylesheet/scss" lang="scss" scoped>
.el-menu {
min-height: 100%;
}
</style>

0 comments on commit a3b1dd8

Please sign in to comment.