mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-30 17:37:14 +00:00
b11e9c0e51
- [ ] babel-eslint https://github.com/babel/babel-eslint/issues/664 - [x] eslint-config-standard-jsx https://github.com/standard/eslint-config-standard-jsx/issues/32 - [x] eslint-config-standard to be stable release https://github.com/standard/eslint-config-standard/issues/123 - [x] eslint-plugin-html - [x] eslint-plugin-import - [x] eslint-plugin-jest - [x] eslint-plugin-node - [x] eslint-plugin-promise - [x] eslint-plugin-standard https://github.com/standard/eslint-plugin-standard/issues/29 - [x] eslint-plugin-vue https://github.com/vuejs/eslint-plugin-vue/pull/504 - [x] eslint-plugin-react https://github.com/yannickcr/eslint-plugin-react/releases/tag/v7.10.0
88 lines
2.3 KiB
Vue
88 lines
2.3 KiB
Vue
<template>
|
|
<v-app id="inspire" dark>
|
|
<v-navigation-drawer
|
|
v-model="drawer"
|
|
clipped
|
|
fixed
|
|
app
|
|
>
|
|
<v-list dense>
|
|
<v-list-group v-for="item in items" :key="item.title" :value="item.active">
|
|
<v-list-tile slot="item">
|
|
<v-list-tile-action>
|
|
<v-icon>{{ item.action }}</v-icon>
|
|
</v-list-tile-action>
|
|
<v-list-tile-content>
|
|
<v-list-tile-title>{{ item.title }}</v-list-tile-title>
|
|
</v-list-tile-content>
|
|
<v-list-tile-action>
|
|
<v-icon v-if="item.items">keyboard_arrow_down</v-icon>
|
|
</v-list-tile-action>
|
|
</v-list-tile>
|
|
<v-list-tile v-for="subItem in item.items" :key="subItem.title">
|
|
<v-list-tile-content>
|
|
<v-list-tile-title>{{ subItem.title }}</v-list-tile-title>
|
|
</v-list-tile-content>
|
|
<v-list-tile-action>
|
|
<v-icon>{{ subItem.action }}</v-icon>
|
|
</v-list-tile-action>
|
|
</v-list-tile>
|
|
</v-list-group>
|
|
</v-list>
|
|
|
|
</v-navigation-drawer>
|
|
<v-toolbar app fixed clipped-left>
|
|
<v-toolbar-side-icon @click.stop="drawer = !drawer" />
|
|
<v-toolbar-title>Application</v-toolbar-title>
|
|
</v-toolbar>
|
|
<v-content>
|
|
<v-container grid-list-md text-xs-center>
|
|
<v-layout row wrap>
|
|
<v-flex xs12>
|
|
<v-card dark color="primary">
|
|
<v-card-text class="px-0"><slot /></v-card-text>
|
|
</v-card>
|
|
</v-flex>
|
|
</v-layout></v-container>
|
|
|
|
<v-container fluid fill-height>
|
|
<v-layout justify-center align-center>
|
|
<v-tooltip right>
|
|
<v-btn slot="activator" :href="source" icon large target="_blank">
|
|
<v-icon large>code</v-icon>
|
|
</v-btn>
|
|
<span>Source</span>
|
|
</v-tooltip>
|
|
</v-layout>
|
|
|
|
</v-container>
|
|
</v-content>
|
|
<v-footer app fixed>
|
|
<span>© 2017</span>
|
|
</v-footer>
|
|
</v-app>
|
|
</template>
|
|
|
|
<script>
|
|
export default {
|
|
name: 'Layout',
|
|
props: {
|
|
items: {
|
|
type: Array,
|
|
default: () => []
|
|
},
|
|
source: {
|
|
type: String,
|
|
default: ''
|
|
}
|
|
},
|
|
data: () => ({
|
|
drawer: null
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<style type="text/css">
|
|
@import url("https://fonts.googleapis.com/css?family=Roboto:300,400,500,700|Material+Icons");
|
|
</style>
|