sce-component
Version:
18 lines (15 loc) • 357 B
JavaScript
export default {
name: 's-list-header',
functional: true,
props: {
inset: Boolean
},
render (h, ctx) {
const
data = ctx.data,
cls = data.staticClass,
prop = ctx.props
data.staticClass = `s-list-header ${prop.inset ? ' s-list-header-inset' : ''}${cls ? ` ${cls}` : ''}`
return h('div', data, ctx.children)
}
}