Nuxt/examples/with-vuetify/pages/index.vue

46 lines
1.0 KiB
Vue
Raw Normal View History

2017-03-14 20:13:39 +00:00
<template>
2017-03-15 12:01:52 +00:00
<v-app top-toolbar left-fixed-sidebar>
2017-03-14 20:13:39 +00:00
<v-toolbar>
2017-03-15 12:01:52 +00:00
<v-toolbar-side-icon @click.native.stop="sidebar = !sidebar" />
<v-toolbar-logo>Toolbar</v-toolbar-logo>
2017-03-14 20:13:39 +00:00
</v-toolbar>
<main>
2017-03-15 12:01:52 +00:00
<v-sidebar left fixed drawer v-model="sidebar">
<v-list>
2017-03-24 18:50:03 +00:00
<v-list-item v-for="i in 3" :key="i">
2017-03-15 12:01:52 +00:00
<v-list-tile>
<v-list-tile-title>Item {{ i }}</v-list-tile-title>
</v-list-tile>
</v-list-item>
</v-list>
</v-sidebar>
2017-03-14 20:13:39 +00:00
<v-content>
<v-container fluid>
<div class="title">
<h2>Main content</h2>
<v-btn primary>Primary button</v-btn>
<v-btn secondary>Secondary button</v-btn>
<v-btn success>Success button</v-btn>
</div>
2017-03-14 20:13:39 +00:00
</v-container>
</v-content>
</main>
</v-app>
</template>
2017-03-15 12:01:52 +00:00
<script>
export default {
2017-03-24 18:50:03 +00:00
asyncData() {
2017-03-15 12:01:52 +00:00
return {
sidebar: false
}
}
}
</script>
<style scoped>
2017-03-14 20:13:39 +00:00
.title {
2017-03-15 12:01:52 +00:00
padding-left: 20px;
2017-03-14 20:13:39 +00:00
}
</style>