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
| <template>
| <div class="status-icon">
| <div class="icon-content">
| <p class="icon-img">
| <img v-if="icon ==='succ'" src="@/assets/succ.png" />
| <img v-if="icon ==='info'" src="@/assets/info.png" />
| <img v-if="icon ==='fail'" src="@/assets/fail.png" />
| </p>
| <p class="icon-text" v-if="text">{{text}}</p>
| </div>
| </div>
| </template>
| <script>
| export default {
| props: {
| // icon图标类型,info, succ, fail,''(''为不显示)
| icon: {
| type: String,
| default: ''
| },
| // icon图标对应文本
| text: {
| type: String,
| default: ''
| }
| }
| }
| </script>
| <style lang="postcss" scoped>
| .status-icon {
| display: flex;
| justify-content: center;
| text-align: center;
| padding: 0 0 30px 0;
| & p {
| margin: 0;
| padding: 0;
| }
| & img {
| vertical-align: middle;
| }
| & .icon-text {
| padding: 12px 0 0 0;
| font-size: 18px;
| font-weight: 500;
| color: rgba(34, 34, 34, 1);
| line-height: 25px;
| }
| }
| </style>
|
|