mirror of
https://github.com/pure-admin/vue-pure-admin.git
synced 2025-06-06 00:18:51 +08:00
58 lines
1.1 KiB
Vue
58 lines
1.1 KiB
Vue
<template>
|
|
<div style="margin: 10px">
|
|
<el-row :gutter="24">
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
|
<el-card shadow="always">
|
|
<ReNormalCountTo
|
|
prefix="$"
|
|
:duration="1000"
|
|
:color="'#409EFF'"
|
|
:fontSize="'2.3em'"
|
|
:startVal="1"
|
|
:endVal="1000"
|
|
/>
|
|
</el-card>
|
|
</el-col>
|
|
<el-col :xs="24" :sm="12" :md="12" :lg="12" :xl="12">
|
|
<el-card shadow="always">
|
|
<ul class="flex">
|
|
<ReboundCountTo
|
|
v-for="(num, inx) of [1, 6, 6, 6]"
|
|
:key="inx"
|
|
:i="num"
|
|
:blur="inx"
|
|
:delay="inx + 1"
|
|
/>
|
|
</ul>
|
|
</el-card>
|
|
</el-col>
|
|
</el-row>
|
|
</div>
|
|
</template>
|
|
|
|
<script lang="ts">
|
|
import { ReNormalCountTo, ReboundCountTo } from "/@/components/ReCountTo";
|
|
|
|
export default {
|
|
name: "reCountTo",
|
|
components: {
|
|
ReNormalCountTo,
|
|
ReboundCountTo
|
|
},
|
|
setup() {
|
|
return {};
|
|
}
|
|
};
|
|
</script>
|
|
|
|
<style lang="scss" scoped>
|
|
.flex {
|
|
display: flex;
|
|
}
|
|
|
|
:deep(.el-card) {
|
|
text-align: center;
|
|
margin-bottom: 10px;
|
|
}
|
|
</style>
|