Я хочу держать основной контент под боковой панелью, когда открываю боковую панель.
Но, глядя на официальный сайт Vuetify, я не смог найти ничего подходящего. Что мне делать в этом случае?
Кажется, что заполнение mainContent меняется при открытии части панели навигации, это причина?
============
app. vue:
<template>
<v-app>
<Header
v-on:leftChange="leftChange"
></Header>
<Left
ref="LeftMethod"
></Left>
<Main/>
</v-app>
</template>
<script>
import Header from "@/components/Header.vue";
import Footer from "@/components/Footer.vue";
import Left from "@/components/Left.vue";
import Main from "@/components/Main.vue";
export default {
components:{
'Header' : Header,
'Footer' : Footer,
'Left' : Left,
'Main' : Main
},
methods: {
leftChange() {
this.$refs.LeftMethod.changeA();
},
}
}
</script>
==========
Main :
<template>
<v-content>
<v-container fluid fill-height>
<div>MainContent</div>
</v-container>
</v-content>
</template>
========
Заголовок:
<template>
<v-app-bar app clipped-left>
<v-app-bar-nav-icon @click="leftChange"></v-app-bar-nav-icon>
</v-app-bar>
</template>
<script>
export default {
methods: {
leftChange: function(){
this.$emit('leftChange');
},
}
}
</script>
=============
Слева :
<template>
<v-navigation-drawer
app
v-model="a"
clipped
stateless
>
</v-navigation-drawer>
</template>
<script>
export default {
data(){
return {
a: false,
}
},
methods: {
changeA() {
this.a = !this.a;
},
}
}
</script>