-
Notifications
You must be signed in to change notification settings - Fork 21
/
index.vue
49 lines (47 loc) · 816 Bytes
/
index.vue
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
<template>
<div class="rty-loading flex-center-center" :style="{position:position}" v-show="visible">
<div class="load-effect"></div>
</div>
</template>
<script>
export default {
name: "rtyLoading",
props: {
position: {
type: String,
default: "fixed"
},
visible: {
type: Boolean,
default: false
}
}
};
</script>
<style scoped>
.rty-loading {
top: 0;
left: 0;
right: 0;
bottom: 0;
z-index: 2018;
background: rgba(0, 0, 0, 0.05);
}
.load-effect {
width: 40px;
height: 40px;
border: 2px solid;
border-color: #409eff #409eff transparent;
border-radius: 50%;
box-sizing: border-box;
animation: loading 1s linear infinite;
}
@keyframes loading {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
</style>