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
| <template>
| <div>
| <header>
| <p>{{ title }}</p>
| <span></span>
| </header>
| <section>
| <p v-for="(item, key) in data" :key="key">
| {{ item }}
| </p>
| </section>
| </div>
| </template>
| <script lang="ts" setup name="TheMemberInfo">
| const props = withDefaults(
| defineProps<{
| title?: string;
| data?: Array<any>;
| }>(),
| {
| title: "",
| data: () => []
| }
| );
| </script>
| <style lang="scss" scoped>
| div {
| padding-bottom: 20px;
| header {
| font-size: 16px;
| padding-left: 10px;
| border-left: 4px solid #3b93ff;
| position: relative;
| display: flex;
| align-items: center;
| span {
| margin-left: 8px;
| display: block;
| flex: 1;
| height: 2px;
| background: var(--color-bg-3);
| }
| }
| section {
| overflow: hidden;
| padding: 12px 0;
| > p {
| width: 25%;
| float: left;
| margin: 12px 0;
| }
| }
| }
| </style>
|
|