翻牌器效果能否实现
Opened this issue · 1 comments
yupeng2015 commented
jizai1125 commented
可以用插件 Odometer plugin
<script setup lang="ts">
import { ref } from 'vue'
import CountUp, { type CountUpOptions } from 'vue-countup-v3'
import { Odometer } from 'odometer_countup';
const endValueRef = ref(2022)
// coutup.js options
const options: CountUpOptions = {
plugin: new Odometer({ duration: 2.3, lastDigitDelay: 0 }),
}
</script>
<template>
<count-up
:end-val="endValueRef"
:options="options"></count-up>
</template>