a flip number card component for vue.
follow the lead of 干货满满!如何优雅简洁地实现时钟翻牌器(支持JS/Vue/React)
<filp-number :value="value" :speed="700"></filp-number>
import FilpNumber from '@/components/FlipNumber'
props: {
value: {
type: String,
required: true,
default: '0'
},
speed: {
type: [Number, String],
default: 600
}
}
value: could be like '00000.00'、'0012' and so on for placeholder
speed: could not be less than 600.
npm install
npm run serve
npm run build