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
| <template>
| <div class="progress-load" v-if="show">
| <div class="progress-load-content">
| <div class="progress-bg"></div>
| <div class="progress-container">
| <el-progress
| type="circle"
| :stroke-width="10"
| :percentage="percentage"></el-progress>
| </div>
| </div>
| </div>
| </template>
|
| <script>
| export default {
| props: {
| show: {
| type: Boolean,
| default: false,
| },
| percentage: {
| type: Number,
| default: 0,
| },
| },
| }
| </script>
|
| <style scoped>
| .progress-load {
| position: fixed;
| top: 0;
| bottom: 0;
| left: 0;
| right: 0;
| z-index: 999;
| }
| .progress-load-content {
| position: relative;
| display: flex;
| height: 100%;
| justify-content: center;
| align-items: center;
| }
| .progress-bg {
| position: absolute;
| top: 0;
| bottom: 0;
| left: 0;
| right: 0;
| background-color: #000000;
| opacity: 0.2;
| }
| </style>
|
|