mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-11 08:33:53 +00:00
Add Vuetify.js example
This commit is contained in:
parent
7238f27716
commit
18ec7507ad
4
examples/with-vuetify/README.md
Normal file
4
examples/with-vuetify/README.md
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
# Using Vuetify.js with Nuxt.js
|
||||||
|
|
||||||
|
https://nuxtjs.org/examples/with-vuetify
|
||||||
|
https://vuetifyjs.com/
|
7
examples/with-vuetify/nuxt.config.js
Normal file
7
examples/with-vuetify/nuxt.config.js
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
module.exports = {
|
||||||
|
build: {
|
||||||
|
vendor: ['vuetify']
|
||||||
|
},
|
||||||
|
plugins: ['~plugins/vuetify.js'],
|
||||||
|
css: ['vuetify/dist/vuetify.min.css']
|
||||||
|
}
|
12
examples/with-vuetify/package.json
Normal file
12
examples/with-vuetify/package.json
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
{
|
||||||
|
"name": "with-vuetify",
|
||||||
|
"dependencies": {
|
||||||
|
"nuxt": "latest",
|
||||||
|
"vuetify": "^0.9.1"
|
||||||
|
},
|
||||||
|
"scripts": {
|
||||||
|
"dev": "nuxt",
|
||||||
|
"build": "nuxt build",
|
||||||
|
"start": "nuxt start"
|
||||||
|
}
|
||||||
|
}
|
20
examples/with-vuetify/pages/index.vue
Normal file
20
examples/with-vuetify/pages/index.vue
Normal file
@ -0,0 +1,20 @@
|
|||||||
|
<template>
|
||||||
|
<v-app top-toolbar footer>
|
||||||
|
<v-toolbar>
|
||||||
|
<v-toolbar-title>Toolbar</v-toolbar-title>
|
||||||
|
</v-toolbar>
|
||||||
|
<main>
|
||||||
|
<v-content>
|
||||||
|
<v-container fluid>
|
||||||
|
<div class="title">Main Content</div>
|
||||||
|
</v-container>
|
||||||
|
</v-content>
|
||||||
|
</main>
|
||||||
|
</v-app>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
.title {
|
||||||
|
padding-left: 14px;
|
||||||
|
}
|
||||||
|
</style>
|
4
examples/with-vuetify/plugins/vuetify.js
Normal file
4
examples/with-vuetify/plugins/vuetify.js
Normal file
@ -0,0 +1,4 @@
|
|||||||
|
import Vue from 'vue'
|
||||||
|
import Vuetify from 'vuetify'
|
||||||
|
|
||||||
|
Vue.use(Vuetify)
|
Loading…
Reference in New Issue
Block a user