UNPKG

vuikit

Version:

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

43 lines (39 loc) 858 B
import Icon from './pagination--icon-next' import { mergeData } from 'vuikit/src/util/vue' import { ElementIcon } from 'vuikit/src/library/icon' export default { functional: true, props: { title: { type: String, default: '' }, expanded: { type: Boolean, default: false }, disabled: { type: Boolean, default: false } }, render (h, { props, data, listeners }) { const { title, expanded, disabled } = props delete data.on return h('li', mergeData(data, { class: { 'uk-disabled': disabled, 'uk-margin-auto-left': expanded } }), [ h('a', { on: listeners }, [ title, h(ElementIcon, { class: ['uk-pagination-prev', { 'uk-margin-small-left': title }] }, [ h(Icon) ]) ]) ]) } }