46 lines
985 B
Vue
46 lines
985 B
Vue
<template>
|
|
<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"> <el-button text class="button" type="primary">进入<el-icon><CaretRight /></el-icon></el-button> </RouterLink>
|
|
</div>
|
|
</div>
|
|
</el-card>
|
|
</el-col>
|
|
</el-row>
|
|
</template>
|
|
|
|
<script setup>
|
|
const props = defineProps(['name','introduction'])
|
|
</script>
|
|
|
|
<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> |