noticeItem.vue
1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
<template>
<div class="notice-root">
<LayoutLink :href="data.url">
<p class="notice-content">{{data.name}}</p>
<div class="time">
<time> {{data.createTime}}</time>
</div>
<div class="item-split-line"/>
</LayoutLink>
</div>
</template>
<script>
import {
Style,
Scroll,
RecycleList
} from 'cube-ui';
export default {
data() {
return {};
},
props: {
data: {
type: Object,
default() {
return {};
}
}
},
created() {
},
methods: {
},
components: {
},
};
</script>
<style scoped>
.notice-root {
margin-left: 40px;
margin-right: 40px;
padding-top: 32px;
}
.notice-content {
font-family: 'PingFang-SC-Regular';
font-size: 28px;
color: #000000;
line-height: 1.5;
text-overflow: ellipsis;
-webkit-line-clamp: 2;
display: -webkit-box;
-webkit-box-orient: vertical;
overflow: hidden;
}
.time {
font-size: 28px;
color: #999999;
margin-top: 12px;
}
.item-split-line {
height: 1px;
width: 100%;
background-color: #EEEEEE;
margin-top: 32px;
}
</style>