mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
improved count to component
This commit is contained in:
parent
e175ccd810
commit
e814225934
@ -1,7 +1,25 @@
|
||||
<template>
|
||||
<span>
|
||||
<no-ssr
|
||||
placeholder="0"
|
||||
tag="span">
|
||||
<count-to
|
||||
:start-val="startVal"
|
||||
:end-val="endVal"
|
||||
:duration="duration"
|
||||
:autoplay="autoplay"
|
||||
:separator="separator"
|
||||
/>
|
||||
</no-ssr>
|
||||
</span>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import CountTo from 'vue-count-to'
|
||||
export default {
|
||||
extends: CountTo,
|
||||
components: {
|
||||
CountTo
|
||||
},
|
||||
props: {
|
||||
startVal: { type: Number, default: 0 },
|
||||
endVal: { type: Number, required: true },
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user