UNPKG

vuikit

Version:

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

26 lines (23 loc) 472 B
import { mergeData } from 'vuikit/src/util/vue' export default { functional: true, props: { shrinked: { type: Boolean, default: false }, expanded: { type: Boolean, default: false } }, render (h, { data, props, children }) { const { shrinked, expanded } = props return h('th', mergeData(data, { class: { 'uk-table-shrink': shrinked, 'uk-table-expand': expanded } }), children) } }