<template>
|
<div class="loading-content">
|
<div class="loading-spinner">
|
<div class="spinner-ring"></div>
|
<div class="spinner-ring"></div>
|
<div class="spinner-ring"></div>
|
</div>
|
<div class="loading-text">加载中...</div>
|
</div>
|
</template>
|
|
<style>
|
.loading-container {
|
display: flex;
|
justify-content: center;
|
align-items: center;
|
}
|
|
.loading-content {
|
text-align: center;
|
}
|
|
.loading-spinner {
|
position: relative;
|
width: 60px;
|
height: 60px;
|
margin: 0 auto 16px;
|
}
|
|
.spinner-ring {
|
position: absolute;
|
width: 100%;
|
height: 100%;
|
border: 3px solid transparent;
|
border-top-color: #007aff;
|
border-radius: 50%;
|
animation: spin 1.2s linear infinite;
|
}
|
|
.spinner-ring:nth-child(1) {
|
animation-delay: 0s;
|
}
|
|
.spinner-ring:nth-child(2) {
|
width: 80%;
|
height: 80%;
|
top: 10%;
|
left: 10%;
|
animation-delay: 0.15s;
|
border-top-color: #66b1ff;
|
}
|
|
.spinner-ring:nth-child(3) {
|
width: 60%;
|
height: 60%;
|
top: 20%;
|
left: 20%;
|
animation-delay: 0.3s;
|
border-top-color: #a0cfff;
|
}
|
|
@keyframes spin {
|
from {
|
transform: rotate(0deg);
|
}
|
to {
|
transform: rotate(360deg);
|
}
|
}
|
|
.loading-text {
|
font-size: 14px;
|
color: #666;
|
animation: pulse 1.5s ease-in-out infinite;
|
}
|
|
@keyframes pulse {
|
0%, 100% {
|
opacity: 0.6;
|
}
|
50% {
|
opacity: 1;
|
}
|
}
|
|
</style>
|