This commit is contained in:
2026-02-15 16:24:29 +08:00
parent 50c72d6989
commit 41a3ab45b3
36 changed files with 4896 additions and 2089 deletions

View File

@ -2,7 +2,10 @@
<template>
<el-card shadow="always" class="single-square-box" :style="{background: 'linear-gradient(180deg, '+data.bgColor+' 0%,rgba(255,255,255,0) 100%)'}">
<div class="single-square-box-title">{{ data.title }}</div>
<div class="single-square-box-value">{{ data.value | formatNumber }}</div>
<div class="single-square-box-value">
<i v-if="data.loading" class="el-icon-loading point-loading-icon"></i>
<span v-else>{{ data.value | formatNumber }}</span>
</div>
</el-card>
</template>
@ -23,10 +26,21 @@
line-height: 26px;
font-weight: 500;
}
.point-loading-icon{
color: #409eff;
display: inline-block;
transform-origin: center;
animation: pointLoadingSpinPulse 1.1s linear infinite;
}
::v-deep .el-card__body{
padding: 12px 10px;
}
}
@keyframes pointLoadingSpinPulse {
0% { opacity: 0.45; transform: rotate(0deg) scale(0.9); }
50% { opacity: 1; transform: rotate(180deg) scale(1.08); }
100% { opacity: 0.45; transform: rotate(360deg) scale(0.9); }
}
</style>
<script>
export default {