UNPKG

vuikit

Version:

A Vuejs component library based on UIkit

24 lines (20 loc) 475 B
/** * Vuikit 0.7.0 * (c) 2018 Miljan Aleksic * @license MIT */ import mergeData from 'vuikit/core/helpers/vue-data-merge' export default { functional: true, props: ['bottom'], render (h, { children, data, props }) { const bottom = props.bottom !== undefined const def = { class: [data.staticClass, { 'uk-modal-caption': !bottom, 'vk-modal-caption-bottom': bottom }] } return h('div', mergeData(data, def), children) } }