Skip to content

Commit

Permalink
Merge pull request #226 from tuandm/feature/221-Sidebar-Menu-Color-Fr…
Browse files Browse the repository at this point in the history
…om-SCSS

221 - Allow sidebar menu color change from vars
  • Loading branch information
tuandm authored Aug 17, 2020
2 parents b90c76e + 525c0f5 commit fafaf6b
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions resources/js/layout/components/Sidebar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@
:show-timeout="200"
:default-active="$route.path"
:collapse="isCollapse"
:background-color="variables.menuBg"
:text-color="variables.menuText"
:active-text-color="variables.menuActiveText"
mode="vertical"
background-color="#304156"
text-color="#bfcbd9"
active-text-color="#409EFF"
>
<sidebar-item v-for="route in routes" :key="route.path" :item="route" :base-path="route.path" />
<sidebar-item
v-for="route in routes"
:key="route.path"
:item="route"
:base-path="route.path"
/>
</el-menu>
</el-scrollbar>
</div>
Expand All @@ -26,10 +31,7 @@ import variables from '@/styles/variables.scss';
export default {
components: { SidebarItem, Logo },
computed: {
...mapGetters([
'sidebar',
'permission_routers',
]),
...mapGetters(['sidebar', 'permission_routers']),
routes() {
return this.$store.state.permission.routes;
},
Expand Down

0 comments on commit fafaf6b

Please sign in to comment.