|
|
@@ -1,29 +1,30 @@
|
|
|
<template>
|
|
|
- <div class="notice-content">
|
|
|
- <aside>
|
|
|
- <a-list item-layout="horizontal"
|
|
|
- :data-source="noticeList">
|
|
|
- <template #renderItem="{ item }">
|
|
|
- <a-list-item @click="choose(item)">
|
|
|
- <a-list-item-meta :description="formatTime(item.createtime)">
|
|
|
- <template #title>
|
|
|
- <a :style="{ color: item.readed ? '@m-grey2' : '@m-white1' }"
|
|
|
- href="javascript:;">{{ item.title }}</a>
|
|
|
- </template>
|
|
|
- <template #avatar>
|
|
|
- <a-badge :color="item.readed ? '@m-grey2' : 'orange'" />
|
|
|
- </template>
|
|
|
- </a-list-item-meta>
|
|
|
- </a-list-item>
|
|
|
- </template>
|
|
|
- </a-list>
|
|
|
- </aside>
|
|
|
- <main>
|
|
|
- <h4>{{ chooseItemNotice.title }}</h4>
|
|
|
- <p>{{ formatTime(chooseItemNotice.createtime) }}</p>
|
|
|
- <div>{{ chooseItemNotice.content }}</div>
|
|
|
- </main>
|
|
|
- </div>
|
|
|
+ <div class="notice-content">
|
|
|
+ <aside>
|
|
|
+ <a-list item-layout="horizontal" :data-source="noticeList">
|
|
|
+ <template #renderItem="{ item }">
|
|
|
+ <a-list-item @click="choose(item)">
|
|
|
+ <a-list-item-meta :description="formatTime(item.createtime)">
|
|
|
+ <template #title>
|
|
|
+ <a
|
|
|
+ :style="{ color: item.readed ? '@m-grey2' : '@m-white1' }"
|
|
|
+ href="javascript:;"
|
|
|
+ >{{ item.title }}</a>
|
|
|
+ </template>
|
|
|
+ <template #avatar>
|
|
|
+ <a-badge :color="item.readed ? '@m-grey2' : 'orange'" />
|
|
|
+ </template>
|
|
|
+ </a-list-item-meta>
|
|
|
+ </a-list-item>
|
|
|
+ </template>
|
|
|
+ </a-list>
|
|
|
+ </aside>
|
|
|
+ <main>
|
|
|
+ <h4>{{ chooseItemNotice.title }}</h4>
|
|
|
+ <p>{{ formatTime(chooseItemNotice.createtime) }}</p>
|
|
|
+ <div>{{ chooseItemNotice.content }}</div>
|
|
|
+ </main>
|
|
|
+ </div>
|
|
|
</template>
|
|
|
|
|
|
<script lang="ts">
|
|
|
@@ -84,6 +85,11 @@ export default defineComponent({
|
|
|
width: 202px;
|
|
|
height: 619px;
|
|
|
.ant-list-split {
|
|
|
+ .ant-list-item-meta-title {
|
|
|
+ > a {
|
|
|
+ color: @m-grey65;
|
|
|
+ }
|
|
|
+ }
|
|
|
.ant-list-item-meta-description {
|
|
|
text-align: right;
|
|
|
font-size: 13px;
|