2023-12-14 10:15:23 +08:00
|
|
|
<template>
|
2023-12-20 23:29:55 +08:00
|
|
|
<el-row>
|
|
|
|
|
<el-col>
|
|
|
|
|
<el-card :body-style="{ padding: '0px' }" shadow="never">
|
|
|
|
|
<img src="" class="image" />
|
|
|
|
|
<div style="padding: 14px">
|
|
|
|
|
<span>{{ props.name }}</span>
|
|
|
|
|
<div class="bottom">
|
|
|
|
|
<time class="remarks">{{ props.introduction }}</time>
|
|
|
|
|
<RouterLink :to="`/discuss/${props.id}/${props.isPublish}`">
|
|
|
|
|
<el-button text class="button" type="primary"
|
|
|
|
|
>进入<el-icon><CaretRight /></el-icon
|
|
|
|
|
></el-button>
|
|
|
|
|
</RouterLink>
|
2023-12-14 10:15:23 +08:00
|
|
|
</div>
|
2023-12-20 23:29:55 +08:00
|
|
|
</div>
|
|
|
|
|
</el-card>
|
|
|
|
|
</el-col>
|
|
|
|
|
</el-row>
|
|
|
|
|
</template>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
2023-12-20 23:29:55 +08:00
|
|
|
<script setup>
|
|
|
|
|
import { onMounted } from "vue";
|
2023-12-14 10:15:23 +08:00
|
|
|
|
2023-12-20 23:29:55 +08:00
|
|
|
const props = defineProps(["name", "introduction", "id", "isPublish"]);
|
|
|
|
|
</script>
|
2023-12-14 10:15:23 +08:00
|
|
|
|
2023-12-20 23:29:55 +08:00
|
|
|
<style>
|
|
|
|
|
.remarks {
|
|
|
|
|
font-size: 12px;
|
|
|
|
|
color: #999;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.bottom {
|
|
|
|
|
margin-top: 13px;
|
|
|
|
|
line-height: 12px;
|
|
|
|
|
display: flex;
|
|
|
|
|
justify-content: space-between;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.image {
|
|
|
|
|
width: 100%;
|
|
|
|
|
display: block;
|
|
|
|
|
}
|
|
|
|
|
</style>
|