33 lines
No EOL
711 B
JavaScript
33 lines
No EOL
711 B
JavaScript
// Components
|
|
import VAvatar from '../VAvatar';
|
|
/* @vue/component */
|
|
|
|
export default VAvatar.extend({
|
|
name: 'v-list-item-avatar',
|
|
props: {
|
|
horizontal: Boolean,
|
|
size: {
|
|
type: [Number, String],
|
|
default: 40
|
|
}
|
|
},
|
|
computed: {
|
|
classes() {
|
|
return {
|
|
'v-list-item__avatar--horizontal': this.horizontal,
|
|
...VAvatar.options.computed.classes.call(this),
|
|
'v-avatar--tile': this.tile || this.horizontal
|
|
};
|
|
}
|
|
|
|
},
|
|
|
|
render(h) {
|
|
const render = VAvatar.options.render.call(this, h);
|
|
render.data = render.data || {};
|
|
render.data.staticClass += ' v-list-item__avatar';
|
|
return render;
|
|
}
|
|
|
|
});
|
|
//# sourceMappingURL=VListItemAvatar.js.map
|