mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-30 15:22:39 +00:00
Add sidebar to example
This commit is contained in:
parent
18ec7507ad
commit
1ef13c7535
6
examples/with-vuetify/layouts/default.vue
Normal file
6
examples/with-vuetify/layouts/default.vue
Normal file
@ -0,0 +1,6 @@
|
||||
<template>
|
||||
<div>
|
||||
<nuxt/>
|
||||
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet">
|
||||
</div>
|
||||
</template>
|
@ -1,9 +1,19 @@
|
||||
<template>
|
||||
<v-app top-toolbar footer>
|
||||
<v-app top-toolbar left-fixed-sidebar>
|
||||
<v-toolbar>
|
||||
<v-toolbar-title>Toolbar</v-toolbar-title>
|
||||
<v-toolbar-side-icon @click.native.stop="sidebar = !sidebar" />
|
||||
<v-toolbar-logo>Toolbar</v-toolbar-logo>
|
||||
</v-toolbar>
|
||||
<main>
|
||||
<v-sidebar left fixed drawer v-model="sidebar">
|
||||
<v-list>
|
||||
<v-list-item v-for="i in 3">
|
||||
<v-list-tile>
|
||||
<v-list-tile-title>Item {{ i }}</v-list-tile-title>
|
||||
</v-list-tile>
|
||||
</v-list-item>
|
||||
</v-list>
|
||||
</v-sidebar>
|
||||
<v-content>
|
||||
<v-container fluid>
|
||||
<div class="title">Main Content</div>
|
||||
@ -13,8 +23,18 @@
|
||||
</v-app>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
export default {
|
||||
data() {
|
||||
return {
|
||||
sidebar: false
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
||||
<style>
|
||||
.title {
|
||||
padding-left: 14px;
|
||||
padding-left: 20px;
|
||||
}
|
||||
</style>
|
||||
|
Loading…
Reference in New Issue
Block a user