add with-vuikit example

This commit is contained in:
Miljan Aleksic 2018-04-15 17:20:48 +08:00
parent 592c7159a5
commit dd9995bf3a
6 changed files with 53 additions and 0 deletions

View File

@ -0,0 +1,3 @@
# Nuxt with Vuikit
https://vuikit.js.org

View File

@ -0,0 +1,5 @@
<template>
<div class="uk-container">
<nuxt/>
</div>
</template>

View File

@ -0,0 +1,6 @@
export default {
css: ['@vuikit/theme'],
plugins: [
'~/plugins/vuikit.js'
]
}

View File

@ -0,0 +1,14 @@
{
"name": "nuxt-with-vuikit",
"dependencies": {
"@vuikit/icons": "latest",
"@vuikit/theme": "latest",
"nuxt-edge": "latest",
"vuikit": "latest"
},
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
}
}

View File

@ -0,0 +1,19 @@
<template>
<vk-card type="primary">
<vk-card-title>Nuxt + Vuikit</vk-card-title>
<div class="uk-inline">
<vk-button>Hover</vk-button>
<vk-dropdown>
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
</vk-dropdown>
</div>
<div class="uk-inline">
<vk-button>Click</vk-button>
<vk-dropdown mode="click">
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt.
</vk-dropdown>
</div>
<hr class="uk-divider-icon">
<vk-icon icon="heart"></vk-icon>
</vk-card>
</template>

View File

@ -0,0 +1,6 @@
import Vue from 'vue'
import Vuikit from 'vuikit'
import VuikitIcons from '@vuikit/icons'
Vue.use(Vuikit)
Vue.use(VuikitIcons)