nebula/components/announcement/list.vue

45 lines
1.2 KiB
Vue
Raw Permalink Normal View History

2021-05-07 08:26:51 +08:00
<template>
<el-row class="wrapper">
<el-col :xs="24" :sm="24" :xl="24" style="margin: 0 auto;">
<el-carousel :interval="5000" height="210px" indicator-position="outside">
2022-07-25 06:45:33 +08:00
<el-carousel-item v-for="article in announcements.list" :key="article.idArticle">
2021-07-01 10:14:04 +08:00
<el-card>
2021-05-07 08:26:51 +08:00
<div class="card-body d-flex flex-column">
2021-07-01 10:14:04 +08:00
<el-link :href="article.articleLink" style="margin-bottom: .7rem;">
2021-05-07 08:26:51 +08:00
<h4>
{{ article.articleTitle }}
2021-05-07 08:38:24 +08:00
<el-tag
style="margin-left: 0.5rem;"
size="mini"
effect="plain">
# 公告
</el-tag>
2021-05-07 08:26:51 +08:00
</h4>
</el-link>
<div class="text-muted article-summary-md">{{ article.articlePreviewContent }}</div>
2021-07-01 10:14:04 +08:00
<div style="margin-top: 1rem;">
<small class="d-block text-muted">发布于 {{ article.timeAgo }}</small>
</div>
2021-05-07 08:26:51 +08:00
</div>
</el-card>
</el-carousel-item>
</el-carousel>
</el-col>
</el-row>
</template>
<script>
export default {
name: "announcementList",
props: {
announcements: {
type: Object
}
}
}
</script>
<style scoped>
</style>