feat: add number animate when posts's status has changed (#244)
This commit is contained in:
parent
9e053492b5
commit
4a96d2b45a
2 changed files with 25 additions and 1 deletions
|
@ -55,6 +55,11 @@ useCommand({
|
|||
</div>
|
||||
</CommonTooltip>
|
||||
|
||||
<span v-if="text" :class="active ? [color] : 'text-secondary-light'" text-sm>{{ text }}</span>
|
||||
<CommonAnimateNumber :increased="active">
|
||||
<span display-block text-secondary-light text-sm>{{ text }}</span>
|
||||
<template #next>
|
||||
<span display-block :class="[color]" text-sm>{{ text }}</span>
|
||||
</template>
|
||||
</CommonAnimateNumber>
|
||||
</component>
|
||||
</template>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue