<template>
<ul class="flex">
<count-up v-for="(num, idx) of numArr" :key="idx" :i="num" :delay="idx + 1" />
</ul>
</template>
<script>
export default {
name: 'App',
data: () => ({
num: 886
}),
computed: {
numArr() {
const str = String(this.num)
let arr = []
for (let i = 0; i < str.length; i++) {
arr.push(parseInt(str[i]))
}
return arr
}
}
}
</script>