2020-01-29 19:37:25 +00:00
|
|
|
<template>
|
|
|
|
<div class="yxspomdl">
|
2020-02-10 11:44:59 +00:00
|
|
|
<div class="ring"></div>
|
2020-01-29 19:37:25 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script lang="ts">
|
|
|
|
import Vue from 'vue';
|
|
|
|
|
|
|
|
export default Vue.extend({
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style lang="scss" scoped>
|
2020-02-10 11:44:59 +00:00
|
|
|
@keyframes ring {
|
|
|
|
0% {
|
|
|
|
transform: rotate(0deg);
|
|
|
|
}
|
|
|
|
100% {
|
|
|
|
transform: rotate(360deg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-01-29 19:37:25 +00:00
|
|
|
.yxspomdl {
|
|
|
|
padding: 32px;
|
|
|
|
text-align: center;
|
|
|
|
|
2020-02-10 11:44:59 +00:00
|
|
|
> .ring {
|
|
|
|
display: inline-block;
|
|
|
|
opacity: 0.7;
|
2020-02-11 17:35:03 +00:00
|
|
|
vertical-align: middle;
|
2020-02-10 11:44:59 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
> .ring:after {
|
|
|
|
content: " ";
|
|
|
|
display: block;
|
2020-02-11 17:35:03 +00:00
|
|
|
box-sizing: border-box;
|
|
|
|
width: 48px;
|
|
|
|
height: 48px;
|
2020-02-10 11:44:59 +00:00
|
|
|
border-radius: 50%;
|
2020-02-11 17:35:03 +00:00
|
|
|
border: solid 4px;
|
|
|
|
border-color: currentColor transparent transparent transparent;
|
2020-02-10 11:44:59 +00:00
|
|
|
animation: ring 0.5s linear infinite;
|
2020-01-29 19:37:25 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
</style>
|