index.vue
2.4 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
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
<template>
<div class="guide">
<div class="title">{{ data.title }}</div>
<div class="content">
<div class="guid-item " :class="{
qualityAssessment: data.qualityAssessment || false,
assetRegistration: data.assetRegistration || false,
registration: data.registration || false,
}" v-for="item in data.children" :key="item.title">
<div class="guid-item-title">{{ item.title }}</div>
<div style="padding-right: 30px;">
<div class="text" v-for="text in item.children" :key="text" v-html="text"></div>
</div>
</div>
</div>
</div>
</template>
<script setup lang="ts">
const props = defineProps({
data: {
type: Object,
default: {} as any
}
})
const data: any = computed(() => props.data)
</script>
<style lang="scss" scoped>
.guide {
padding-top: 16px;
width: 100%;
height: auto;
padding-left: 16px;
padding-right: 11px;
background: #fff;
margin-bottom: 16px;
.title {
font-size: 18px;
color: #212121;
letter-spacing: 0;
line-height: 27px;
font-weight: 600;
padding-top: 10px;
}
.content {
display: flex;
justify-content: space-around;
padding-bottom: 16px;
.qualityAssessment {
background: url("../../../../assets/images/qualityAssessment.png");
background-size: auto 100%;
background-position: center right;
background-repeat: no-repeat;
}
.assetRegistration {
background: url("../../../../assets/images/assetRegistration.png");
background-size: auto 100%;
background-position: center right;
background-repeat: no-repeat;
}
.registration {
background: url("../../../../assets/images/registration.png");
background-size: auto 100%;
background-position: center right;
background-repeat: no-repeat;
}
.guid-item {
width: 100%;
height: 171px;
border-right: 1px solid rgba(217, 217, 217, 1);
// background: url("../../../../assets/images/qualityAssessment.png");
// width: 100%;
// height:171px;
// background-size: auto 100%;
// background-position: center right;
// background-repeat: no-repeat;
&>div {
margin-left: 24px
}
.guid-item-title {
font-size: 20px;
color: #2D60B9;
letter-spacing: 0;
line-height: 30px;
font-weight: 500;
margin-top: 24px;
margin-bottom: 16px;
}
.text {
list-style: none;
color: #666666;
letter-spacing: 0;
line-height: 21px;
font-weight: 400;
margin-bottom: 8px;
width: 100%;
}
}
}
}
</style>