Commit 9350bdce authored by Kittisak Maneewong's avatar Kittisak Maneewong

Edit toolbar

parent d1582a27
...@@ -19,28 +19,53 @@ ...@@ -19,28 +19,53 @@
<img src="../../../public/img/banner.png" class="my-2" width="150"> <img src="../../../public/img/banner.png" class="my-2" width="150">
</v-toolbar-title> </v-toolbar-title>
<v-spacer></v-spacer> <v-spacer></v-spacer>
<v-btn flat color="black" class="mx-0 px-0"> <v-btn v-if="!responsive" flat color="black" class="mx-0 px-0">
<v-icon>home</v-icon> <v-icon>home</v-icon>
<span class="body-2 font-weight-bold">หน้าหลัก</span> <span class="body-2 font-weight-bold">หน้าหลัก</span>
</v-btn> </v-btn>
<v-btn flat color="black" class="mx-0 px-0 body-2 font-weight-bold"> <v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span> <span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn> </v-btn>
<v-btn flat color="black" class="mx-0 px-0 body-2 font-weight-bold"> <v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span> <span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn> </v-btn>
<v-btn flat color="black" class="mx-0 px-0 body-2 font-weight-bold"> <v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span> <span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn> </v-btn>
<v-btn flat color="black" class="mx-0 px-0 body-2 font-weight-bold"> <v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span> <span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn> </v-btn>
<v-btn flat color="black" class="mx-0 px-0 body-2 font-weight-bold"> <v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span> <span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn> </v-btn>
<v-btn flat color="black" class="mx-0 px-0 body-2 font-weight-bold"> <v-btn v-if="!responsive" flat color="black" class="mx-0 px-0 body-2 font-weight-bold">
<span class="body-2 font-weight-bold">เกี่ยวกับเรา</span> <span class="body-2 font-weight-bold">เกี่ยวกับเรา</span>
</v-btn> </v-btn>
<v-menu left bottom v-if="responsive">
<template v-slot:activator="{ on }">
<v-toolbar-side-icon v-on="on"></v-toolbar-side-icon>
</template>
<v-list>
<v-list-tile @click="">
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile @click="">
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile @click="">
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile @click="">
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile @click="">
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
<v-list-tile @click="">
<v-list-tile-title>หน้าหลัก</v-list-tile-title>
</v-list-tile>
</v-list>
</v-menu>
</v-toolbar> </v-toolbar>
</v-flex> </v-flex>
</v-layout> </v-layout>
...@@ -49,6 +74,27 @@ ...@@ -49,6 +74,27 @@
<script> <script>
export default { export default {
props: ['page'] props: ['page'],
data () {
return {
responsive: false
}
},
mounted () {
this.onResponsiveInverted()
window.addEventListener('resize', this.onResponsiveInverted)
},
beforeDestroy () {
window.removeEventListener('resize', this.onResponsiveInverted)
},
methods: {
onResponsiveInverted () {
if (window.innerWidth < 991) {
this.responsive = true
} else {
this.responsive = false
}
}
}
} }
</script> </script>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment