vuikit
Version:
A responsive Vue UI library for web site interfaces based on UIkit
24 lines (21 loc) • 421 B
JavaScript
import { mergeData } from 'vuikit/src/util/vue'
export default {
functional: true,
props: {
expand: {
type: Boolean,
default: false
}
},
render (h, { children, data, props }) {
const { expand } = props
return h('div', mergeData(data, {
class: ['uk-modal', {
'uk-modal-container': expand
}],
style: {
display: 'block'
}
}), children)
}
}