feat:添加头像

This commit is contained in:
橙子
2023-03-05 23:48:07 +08:00
parent 619471369d
commit 6d3edff5b6
2 changed files with 34 additions and 2 deletions

View File

@@ -0,0 +1,30 @@
<template >
<div class="avatar">
<el-avatar :size="props.size" />
<div>
<div> 大白子</div>
<div class="remarks"> 2022-03-05 23:33:20</div>
</div>
</div>
</template>
<script setup>
const props = defineProps(['size'])
</script>
<style scoped>
.avatar
{
display: flex;
}
.el-avatar
{
margin-right: 1.2rem;
}
.remarks
{
padding-top: 0.5rem;
color: #8C8C8C;
}
</style>