mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
44 lines
864 B
Vue
44 lines
864 B
Vue
<script setup lang="ts">
|
|
import { ReNormalCountTo, ReboundCountTo } from "/@/components/ReCountTo";
|
|
</script>
|
|
|
|
<template>
|
|
<el-card>
|
|
<template #header>
|
|
<div class="card-header">
|
|
<span class="font-medium">数字动画组件</span>
|
|
</div>
|
|
</template>
|
|
<div class="flex items-center">
|
|
<ReNormalCountTo
|
|
prefix="$"
|
|
:duration="1000"
|
|
:color="'#409EFF'"
|
|
:fontSize="'2em'"
|
|
:startVal="1"
|
|
:endVal="1000"
|
|
/>
|
|
<ul class="flex ml-8">
|
|
<ReboundCountTo
|
|
v-for="(num, inx) of [1, 6, 6, 6]"
|
|
:key="inx"
|
|
:i="num"
|
|
:blur="inx"
|
|
:delay="inx + 1"
|
|
/>
|
|
</ul>
|
|
</div>
|
|
</el-card>
|
|
</template>
|
|
|
|
<style lang="scss" scoped>
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
:deep(.el-card) {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|