1
0
mirror of https://github.com/misskey-dev/misskey synced 2024-11-29 07:18:52 +09:00
This commit is contained in:
syuilo 2022-12-31 21:10:25 +09:00 committed by GitHub
parent f5b8ec55e4
commit 37ef9b70a3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,5 +1,5 @@
<template>
<span>{{ number(tweened.number.toFixed(0)) }}</span>
<span>{{ number(Math.floor(tweened.number)) }}</span>
</template>
<script lang="ts" setup>
@ -16,7 +16,7 @@ const tweened = reactive({
});
watch(() => props.value, (n) => {
gsap.to(tweened, { duration: 0.5, number: Number(n) || 0 });
gsap.to(tweened, { duration: 1, number: Number(n) || 0 });
}, {
immediate: true,
});