UNPKG

vuetify

Version:

Vue.js 2 Semantic Component Framework

33 lines (26 loc) 579 B
// Components import VAvatar from '../VAvatar' /* @vue/component */ export default { name: 'v-list-tile-avatar', functional: true, props: { color: String, size: { type: [Number, String], default: 40 }, tile: Boolean }, render (h, { data, children, props }) { data.staticClass = (`v-list__tile__avatar ${data.staticClass || ''}`).trim() const avatar = h(VAvatar, { props: { color: props.color, size: props.size, tile: props.tile } }, [children]) return h('div', data, [avatar]) } }