food/src/App.vue

41 lines
968 B
Vue
Raw Permalink Normal View History

2017-09-19 02:41:00 +02:00
<template>
<v-app toolbar :style="{ backgroundColor: backgroundColor }">
<NavigationDrawer v-model="isDrawerVisible"/>
<v-toolbar dark>
2017-09-20 04:11:40 +02:00
<v-toolbar-side-icon @click.stop="showHideDrawer"></v-toolbar-side-icon>
<v-toolbar-title>{{ title }}</v-toolbar-title>
</v-toolbar>
<main>
<router-view></router-view>
2017-09-20 04:11:40 +02:00
</main>
</v-app>
2017-09-19 02:41:00 +02:00
</template>
<script>
2017-09-20 04:11:40 +02:00
import NavigationDrawer from '@/components/NavigationDrawer';
2017-09-19 02:41:00 +02:00
export default {
2017-09-20 04:11:40 +02:00
components: {
NavigationDrawer,
},
computed: {
title() {
2017-09-22 15:51:24 +02:00
return this.$store.state.ui.title;
},
backgroundColor() {
2017-09-22 15:51:24 +02:00
return this.$store.state.ui.backgroundColor;
2017-09-20 04:11:40 +02:00
},
},
data() {
return {
isDrawerVisible: false,
};
},
methods: {
showHideDrawer() {
this.isDrawerVisible = !this.isDrawerVisible;
},
},
2017-09-19 02:41:00 +02:00
};
</script>