widget-avatar.vue
554 Bytes
<template>
<ImageFormat :lazy="lazy" class="img-avatar" :src="src" :width="width" :height="height"></ImageFormat>
</template>
<script>
export default {
name: 'WidgetAvatar',
props: {
src: {
type: String,
default: ''
},
width: {
type: Number,
default: 35
},
height: {
type: Number,
default: 35
},
lazy: {
type: Boolean,
default: false
}
},
computed: {
}
};
</script>
<style lang="scss" scoped>
.img-avatar {
border-radius: 50%;
overflow: hidden;
}
</style>