feat: 完善基础页面
This commit is contained in:
@@ -1,43 +1,70 @@
|
||||
<template >
|
||||
<div class="avatar">
|
||||
<div class="avatar-left">
|
||||
<el-avatar :size="props.size" :src="props.src ?? '/src/assets/logo.ico'" />
|
||||
|
||||
<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>
|
||||
|
||||
<div class="info">
|
||||
<el-tag class="ml-2" type="warning">V6</el-tag>
|
||||
<el-tag class="ml-2" type="danger">管理员</el-tag>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-button v-if="props.showWatching" type="primary" size="default" icon="Plus">关注</el-button>
|
||||
|
||||
<div class="avatar">
|
||||
<div class="avatar-left">
|
||||
<el-avatar :size="props.size" />
|
||||
<div>
|
||||
<div> 大白子</div>
|
||||
<div class="remarks"> 2022-03-05 23:33:20</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<el-button type="primary" size="default" icon="Plus" >关注</el-button>
|
||||
|
||||
</div>
|
||||
</template>
|
||||
<script setup>
|
||||
const props = defineProps(['size'])
|
||||
import { onMounted } from 'vue';
|
||||
|
||||
const props = defineProps(['size', 'src','showWatching','time'])
|
||||
onMounted(()=>{
|
||||
console.log(props.time,"props.time");})
|
||||
</script>
|
||||
<style scoped>
|
||||
.el-icon
|
||||
.mt_1
|
||||
{
|
||||
color: white;
|
||||
margin-top: 0.5rem;
|
||||
}
|
||||
.nick
|
||||
{
|
||||
font-weight:bold;
|
||||
}
|
||||
.info
|
||||
{
|
||||
margin-top: 0.6rem;
|
||||
margin-left: 1rem;
|
||||
}
|
||||
.info .el-tag
|
||||
{
|
||||
margin-right:1rem;
|
||||
}
|
||||
.el-icon {
|
||||
color: white;
|
||||
|
||||
}
|
||||
.avatar
|
||||
{
|
||||
|
||||
.avatar {
|
||||
display: flex;
|
||||
justify-content:space-between;
|
||||
justify-content: space-between;
|
||||
}
|
||||
.avatar-left
|
||||
{
|
||||
|
||||
.avatar-left {
|
||||
display: flex;
|
||||
justify-content:flex-start;
|
||||
justify-content: flex-start;
|
||||
align-items: center;
|
||||
}
|
||||
.el-avatar
|
||||
{
|
||||
|
||||
.el-avatar {
|
||||
margin-right: 1.2rem;
|
||||
}
|
||||
.remarks
|
||||
{
|
||||
|
||||
.remarks {
|
||||
padding-top: 0.5rem;
|
||||
color: #8C8C8C;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user