letterItem.vue
1.09 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
<template>
<section class="agreement_item">
<h3 class="item_title">{{navItem.title}}</h3>
<main v-if="navItem.children" class="item_content">
<p v-for="(item, index) in navItem.children" :key="index">
<span class="title">{{item.title}}</span>
<span class="update_time">{{item.time}}</span>
</p>
</main>
</section>
</template>
<script>
export default {
data() {
return {
}
},
props: {
navItem: {
type: Object,
default: () => {
return {}
}
}
},
updated() {
console.log(this.navItem)
}
}
</script>
<style lang="less" scoped>
.agreement_item {
.item_title {
font-size: 13px;
padding: 10px 0;
color: #999999;
}
.item_content {
padding: 15px;
border-radius: 8px;
background-color: #ffffff;
box-shadow: 0px 0px 6px 0px rgba(2, 15, 41, 0.06);
p {
display: flex;
justify-content: space-between;
line-height: 30px;
}
.title {
font-size: 14px;
color: #333333;
}
.update_time {
font-size: 13px;
color: #666666;
}
}
}
</style>