UNPKG

vuikit

Version:

A responsive Vue UI library for web site interfaces based on UIkit

29 lines (26 loc) 484 B
import { mergeData } from 'vuikit/src/util/vue' export default { functional: true, props: { title: { type: String, required: true }, disabled: { type: Boolean, default: false } }, render (h, { props, data, children }) { const { disabled, title } = props return h('li', mergeData(data, { class: { 'uk-disabled': disabled } }), [ disabled ? h('span', title) : children ]) } }