Files
Yi.Admin/Yi.BBS.Vue3/src/views/Index.vue

114 lines
2.2 KiB
Vue
Raw Normal View History

2023-03-03 21:58:58 +08:00
<template>
2023-03-03 23:56:37 +08:00
<el-row :gutter="20" class="top-div">
2023-03-05 20:30:44 +08:00
<el-col :span="17">
2023-03-03 23:56:37 +08:00
2023-03-05 20:30:44 +08:00
<el-row class="left-top-div" :gutter="20">
2023-03-03 23:56:37 +08:00
<el-col v-for="i in 9" :key="i" :span="2">
2023-03-05 20:30:44 +08:00
最新
2023-03-03 23:56:37 +08:00
</el-col>
2023-03-05 20:30:44 +08:00
2023-03-03 23:56:37 +08:00
</el-row>
2023-03-05 20:30:44 +08:00
<el-row class="left-div">
<el-col :span="8" v-for="i in 6" class="plate" :style="{ 'padding-left': i%3==1?0:0.2+'rem','padding-right': i%3==0?0:0.2+'rem'}" >
<PlateCard/>
</el-col>
<el-col :span="24" v-for="i in 10" :key="i">
<DisscussCard/>
2023-03-03 23:56:37 +08:00
</el-col>
</el-row>
</el-col>
2023-03-05 20:30:44 +08:00
<el-col :span="7">
2023-03-03 23:56:37 +08:00
<el-row class="right-div">
2023-03-05 20:30:44 +08:00
<el-col :span="24" >
<InfoCard header="其他" text="详情">
<template #content>
等待入驻
</template>
</InfoCard>
2023-03-03 23:56:37 +08:00
</el-col>
2023-03-05 20:30:44 +08:00
<el-col :span="24" >
<InfoCard header="用户" text="详情">
<template #content>
你好啊好兄弟
</template>
</InfoCard>
2023-03-03 23:56:37 +08:00
</el-col>
2023-03-05 20:30:44 +08:00
<el-col :span="24" >
<InfoCard :items=items header="本月排行" text="更多">
<template #item="temp">
{{temp}}
</template>
</InfoCard>
</el-col>
<el-col :span="24" >
<InfoCard :items=items header="推荐好友" text="更多">
<template #item="temp">
{{temp}}
</template>
</InfoCard>
</el-col>
2023-03-03 23:56:37 +08:00
</el-row>
</el-col>
</el-row>
2023-03-03 21:58:58 +08:00
</template>
2023-03-05 20:30:44 +08:00
<script setup>
import DisscussCard from '@/components/DisscussCard.vue'
import InfoCard from '@/components/InfoCard.vue'
import PlateCard from '@/components/PlateCard.vue'
const items=[{user:"用户1"},{user:"用户2"},{user:"用户3"}]
</script>
2023-03-03 23:56:37 +08:00
<style scoped >
2023-03-05 20:30:44 +08:00
.plate
{
background: transparent !important;
}
2023-03-03 23:56:37 +08:00
.left-div .el-col{
background-color: #FFFFFF;
2023-03-05 20:30:44 +08:00
2023-03-03 23:56:37 +08:00
margin-bottom: 1rem;
}
.right-div .el-col
{
background-color:#FFFFFF;
margin-bottom: 1rem;
}
2023-03-03 21:58:58 +08:00
2023-03-03 23:56:37 +08:00
.left-top-div .el-col
{
min-height: 2rem;
2023-03-05 20:30:44 +08:00
background-color:#FAFAFA;
2023-03-03 23:56:37 +08:00
margin-bottom: 1rem;
2023-03-05 20:30:44 +08:00
margin-left: 0.6rem;
2023-03-03 23:56:37 +08:00
}
.top-div
{
2023-03-05 20:30:44 +08:00
2023-03-03 23:56:37 +08:00
padding-top: 1rem;
}
2023-03-05 20:30:44 +08:00
.left-top-div
{
font-size:small;
text-align: center;
line-height: 2rem;
}
2023-03-03 21:58:58 +08:00
</style>