mirror of
https://github.com/Ocelot-Social-Community/Ocelot-Social.git
synced 2025-12-13 07:46:06 +00:00
32 lines
631 B
Vue
32 lines
631 B
Vue
<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 {
|
|
components: {
|
|
CountTo
|
|
},
|
|
props: {
|
|
startVal: { type: Number, default: 0 },
|
|
endVal: { type: Number, required: true },
|
|
duration: { type: Number, default: 3000 },
|
|
autoplay: { type: Boolean, default: true },
|
|
separator: { type: String, default: '.' }
|
|
}
|
|
}
|
|
</script>
|