This commit is contained in:
limqhz
2021-09-21 18:10:13 +08:00
parent c72e50c5e4
commit aa5faaaa2e
318 changed files with 44583 additions and 59 deletions

View File

@@ -0,0 +1,34 @@
<template>
<section>
<el-tooltip :placement="placement" effect="light">
<div slot="content" style="text-align: center;">
<img :src="avatar ? avatar : defaultAvatar"/>
</div>
<img :src="avatar ? avatar : defaultAvatar" class="full-img-radius"/>
</el-tooltip>
</section>
</template>
<script type="text/ecmascript">
export default {
name: "avatar",
props: ['avatarSrc', 'tipPlacement', 'tipEffect'],
data() {
return {
placement: this.tipPlacement || 'right',
effect: this.tipEffect || 'light'
}
},
methods: {},
computed: {
avatar() {
return this.avatarSrc
}
},
mounted() {
}
}
</script>