Loading.vue
1.76 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
<template>
<van-overlay :show="isLoad" @click="show = false" z-index="999">
<div class="popup">
<div class="pop-box">
<div class="pop-box-bg"></div>
<div class="pop-box-content">
<!-- <img src="@/assets/lodash.png" alt="" /> -->
<svg-icon class="lodash-icon" name="lodash"></svg-icon>
<span>数据查询中,请稍后...</span>
</div>
</div>
</div>
</van-overlay>
</template>
<script>
export default {
props: {
isLoad: {
type: Boolean,
default: false,
},
},
};
</script>
<style lang="less" scoped>
.popup {
display: flex;
justify-content: center;
align-items: center;
width: 100%;
height: 100%;
.pop-box {
width: 310px;
height: 110px;
background: #ffffff;
border-radius: 12px 12px 12px 12px;
position: relative;
.pop-box-bg {
width: 100%;
height: 100%;
background: #0079de;
opacity: 0.1;
}
.pop-box-content {
position: absolute;
top: 50%;
left: 50%;
transform: translate(-50%, -50%);
display: flex;
flex-direction: column;
align-items: center;
.lodash-icon {
width: 22px;
height: 22px;
margin-bottom: 20px;
}
@keyframes turnZ {
0% {
transform: rotateZ(0deg);
}
100% {
transform: rotateZ(360deg);
}
}
.lodash-icon {
animation-name: turnZ;
animation-duration: 1.5s;
animation-timing-function: linear;
animation-iteration-count: infinite;
}
span {
font-size: 13px;
font-family: "PingFang SC-中等", "PingFang SC";
font-weight: normal;
color: #999999;
line-height: 12px;
}
}
}
}
</style>