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
<template>
<div class="flex loading-container" v-show="loadingShow">
<a-spin />
<span class="txt"></span>
</div>
</template>
<script>
import { mapGetters } from "vuex";
export default {
name: "Loading",
data() {
return {};
},
computed: {
...mapGetters("common", ["loadingShow"]),
}
};
</script>
<style lang="less" scoped>
.loading-container {
width: 159px;
height: 44px;
background: #f8faff;
box-shadow: 0px 2px 4px 0px rgba(208, 220, 254, 1);
border-radius: 22px;
justify-content: center;
position: absolute;
z-index: 10;
top: 22px;
left: 50%;
transform: translateX(-50%);
.txt {
font-size: 16px;
font-family: PingFangSC-Medium, PingFang SC;
font-weight: 500;
color: #252631;
line-height: 22px;
margin-left: 12px;
}
.ant-spin {
margin-top: 4px;
}
}
</style>