UNPKG

vuetify

Version:

Vue Material Component Framework

38 lines (30 loc) 723 B
// Components import VAvatar from '../VAvatar' // Types import { VNode } from 'vue' /* @vue/component */ export default VAvatar.extend({ name: 'v-list-item-avatar', props: { horizontal: Boolean, size: { type: [Number, String], default: 40, }, }, computed: { classes (): object { return { 'v-list-item__avatar--horizontal': this.horizontal, ...VAvatar.options.computed.classes.call(this), 'v-avatar--tile': this.tile || this.horizontal, } }, }, render (h): VNode { const render = VAvatar.options.render.call(this, h) render.data = render.data || {} render.data.staticClass += ' v-list-item__avatar' return render }, })