vuetify
Version:
Vue.js 2 Semantic Component Framework
17 lines (13 loc) • 489 B
JavaScript
/* @vue/component */
export default {
name: 'v-list-tile-action',
functional: true,
render (h, { data, children = [] }) {
data.staticClass = data.staticClass ? `v-list__tile__action ${data.staticClass}` : 'v-list__tile__action'
const filteredChild = children.filter(VNode => {
return VNode.isComment === false && VNode.text !== ' '
})
if (filteredChild.length > 1) data.staticClass += ' v-list__tile__action--stack'
return h('div', data, children)
}
}