fix: hidden unnecessary dom render (#310)

Co-authored-by: 三咲智子 Kevin Deng <sxzz@sxzz.moe>
This commit is contained in:
Chris 2022-12-03 13:28:32 +08:00 committed by GitHub
parent c197d7dfca
commit f15bddff67
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ useCommand({
</div>
</CommonTooltip>
<CommonAnimateNumber :increased="active" text-sm>
<CommonAnimateNumber v-if="text !== undefined" :increased="active" text-sm>
<span text-secondary-light>{{ text }}</span>
<template #next>
<span :class="[color]">{{ text }}</span>