Some checks are pending
Check / lint (push) Waiting to run
Check / typecheck (push) Waiting to run
Check / build (build, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build, 18.x, windows-latest) (push) Waiting to run
Check / build (build:app, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:app, 18.x, windows-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, ubuntu-latest) (push) Waiting to run
Check / build (build:mp-weixin, 18.x, windows-latest) (push) Waiting to run
80 lines
1.1 KiB
Vue
80 lines
1.1 KiB
Vue
<script setup>
|
|
import { computed } from 'vue';
|
|
location.reload(true);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="loader">
|
|
<p class="heading">加载中</p>
|
|
<div class="loading">
|
|
<div class="load"></div>
|
|
<div class="load"></div>
|
|
<div class="load"></div>
|
|
<div class="load"></div>
|
|
</div>
|
|
</div>
|
|
</template>
|
|
<!-- 重启页面 -->
|
|
|
|
<style scoped lang="scss">
|
|
.loader {
|
|
display: flex;
|
|
flex-direction: column;
|
|
align-items: center;
|
|
justify-content: center;
|
|
height: 100vh;
|
|
}
|
|
|
|
.heading {
|
|
color: black;
|
|
letter-spacing: 0.2em;
|
|
margin-bottom: 1em;
|
|
}
|
|
|
|
.loading {
|
|
display: flex;
|
|
width: 5em;
|
|
align-items: center;
|
|
justify-content: center;
|
|
}
|
|
|
|
.load {
|
|
width: 23px;
|
|
height: 3px;
|
|
background-color: limegreen;
|
|
animation: 1s move_5011 infinite;
|
|
border-radius: 5px;
|
|
margin: 0.1em;
|
|
}
|
|
|
|
.load:nth-child(1) {
|
|
animation-delay: 0.2s;
|
|
}
|
|
|
|
.load:nth-child(2) {
|
|
animation-delay: 0.4s;
|
|
}
|
|
|
|
.load:nth-child(3) {
|
|
animation-delay: 0.6s;
|
|
}
|
|
|
|
@keyframes move_5011 {
|
|
0% {
|
|
width: 0.2em;
|
|
}
|
|
|
|
25% {
|
|
width: 0.7em;
|
|
}
|
|
|
|
50% {
|
|
width: 1.5em;
|
|
}
|
|
|
|
100% {
|
|
width: 0.2em;
|
|
}
|
|
}
|
|
</style>
|