vuikit
Version:
A Vuejs component library based on UIkit
33 lines (25 loc) • 454 B
JavaScript
/**
* Vuikit 0.7.0
* (c) 2018 Miljan Aleksic
* @license MIT
*/
import mergeData from 'vuikit/core/helpers/vue-data-merge'
export default {
functional: true,
label: {
type: String,
required: true
},
render (h, { props, children, data }) {
return h('li', mergeData(data, {
class: 'uk-parent'
}), [
h('a', [
props.label
]),
h('ul', {
class: 'uk-nav-sub'
}, children)
])
}
}