2023-03-05 23:48:07 +08:00
|
|
|
<template >
|
2023-03-10 22:02:19 +08:00
|
|
|
<div class="avatar">
|
|
|
|
|
<div class="avatar-left">
|
|
|
|
|
<el-avatar :size="props.size" :src="props.src ?? '/src/assets/logo.ico'" />
|
2023-03-05 23:48:07 +08:00
|
|
|
|
2023-03-10 22:02:19 +08:00
|
|
|
<div>
|
|
|
|
|
<div class="nick" :class="{mt_1: props.time!='undefined'}"> 大白子</div>
|
|
|
|
|
<div class="remarks" v-if="props.time"> {{props.time}}</div>
|
|
|
|
|
<div class="remarks"> <slot name="bottom" /></div>
|
|
|
|
|
</div>
|
2023-03-07 00:02:48 +08:00
|
|
|
|
2023-03-10 22:02:19 +08:00
|
|
|
<div class="info">
|
|
|
|
|
<el-tag class="ml-2" type="warning">V6</el-tag>
|
|
|
|
|
<el-tag class="ml-2" type="danger">管理员</el-tag>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
2023-03-12 01:50:11 +08:00
|
|
|
|
2023-03-10 22:02:19 +08:00
|
|
|
<el-button v-if="props.showWatching" type="primary" size="default" icon="Plus">关注</el-button>
|
2023-03-07 00:02:48 +08:00
|
|
|
|
2023-03-10 22:02:19 +08:00
|
|
|
</div>
|
2023-03-05 23:48:07 +08:00
|
|
|
</template>
|
|
|
|
|
<script setup>
|
2023-03-11 17:00:36 +08:00
|
|
|
|
2023-03-10 22:02:19 +08:00
|
|
|
import { onMounted } from 'vue';
|
|
|
|
|
|
2023-03-12 01:50:11 +08:00
|
|
|
const props = defineProps(['size', 'src','showWatching','time','id'])
|
2023-03-11 01:16:28 +08:00
|
|
|
|
2023-03-05 23:48:07 +08:00
|
|
|
</script>
|
|
|
|
|
<style scoped>
|
2023-03-10 22:02:19 +08:00
|
|
|
.mt_1
|
2023-03-07 00:02:48 +08:00
|
|
|
{
|
2023-03-10 22:02:19 +08:00
|
|
|
margin-top: 0.5rem;
|
2023-03-07 00:02:48 +08:00
|
|
|
}
|
2023-03-10 22:02:19 +08:00
|
|
|
.nick
|
2023-03-05 23:48:07 +08:00
|
|
|
{
|
2023-03-10 22:02:19 +08:00
|
|
|
font-weight:bold;
|
2023-03-07 00:02:48 +08:00
|
|
|
}
|
2023-03-10 22:02:19 +08:00
|
|
|
.info
|
2023-03-07 00:02:48 +08:00
|
|
|
{
|
2023-03-10 22:02:19 +08:00
|
|
|
margin-top: 0.6rem;
|
|
|
|
|
margin-left: 1rem;
|
2023-03-05 23:48:07 +08:00
|
|
|
}
|
2023-03-10 22:02:19 +08:00
|
|
|
.info .el-tag
|
2023-03-05 23:48:07 +08:00
|
|
|
{
|
2023-03-10 22:02:19 +08:00
|
|
|
margin-right:1rem;
|
|
|
|
|
}
|
|
|
|
|
.el-icon {
|
|
|
|
|
color: white;
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.avatar-left {
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: flex-start;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.el-avatar {
|
2023-03-05 23:48:07 +08:00
|
|
|
margin-right: 1.2rem;
|
|
|
|
|
}
|
2023-03-10 22:02:19 +08:00
|
|
|
|
|
|
|
|
.remarks {
|
2023-03-05 23:48:07 +08:00
|
|
|
padding-top: 0.5rem;
|
|
|
|
|
color: #8C8C8C;
|
|
|
|
|
}
|
|
|
|
|
</style>
|