mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-23 14:15:13 +00:00
Merge pull request #3255 from miljan-aleksic/feature/with-vuikit
add Vuikit example
This commit is contained in:
commit
3d8f51b8c9
3
examples/with-vuikit/README.md
Normal file
3
examples/with-vuikit/README.md
Normal file
@ -0,0 +1,3 @@
|
||||
# Nuxt with Vuikit
|
||||
|
||||
https://vuikit.js.org
|
5
examples/with-vuikit/layouts/default.vue
Normal file
5
examples/with-vuikit/layouts/default.vue
Normal file
@ -0,0 +1,5 @@
|
||||
<template>
|
||||
<div class="uk-container">
|
||||
<nuxt/>
|
||||
</div>
|
||||
</template>
|
6
examples/with-vuikit/nuxt.config.js
Normal file
6
examples/with-vuikit/nuxt.config.js
Normal file
@ -0,0 +1,6 @@
|
||||
export default {
|
||||
css: ['@vuikit/theme'],
|
||||
plugins: [
|
||||
'~/plugins/vuikit.js'
|
||||
]
|
||||
}
|
14
examples/with-vuikit/package.json
Normal file
14
examples/with-vuikit/package.json
Normal 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"
|
||||
}
|
||||
}
|
19
examples/with-vuikit/pages/index.vue
Normal file
19
examples/with-vuikit/pages/index.vue
Normal 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>
|
6
examples/with-vuikit/plugins/vuikit.js
Normal file
6
examples/with-vuikit/plugins/vuikit.js
Normal file
@ -0,0 +1,6 @@
|
||||
import Vue from 'vue'
|
||||
import Vuikit from 'vuikit'
|
||||
import VuikitIcons from '@vuikit/icons'
|
||||
|
||||
Vue.use(Vuikit)
|
||||
Vue.use(VuikitIcons)
|
Loading…
Reference in New Issue
Block a user