jizai1125 / vue-countup-v3

A Vue 3 Component for animation counting.
https://jizai1125.github.io/vue-countup-v3/examples
163 stars 4 forks source link

播放完成回调无法触发 #17

Closed yassine-zhang closed 10 months ago

yassine-zhang commented 10 months ago

Describe the bug 像文档中所说:@finish 事件和 onCompleteCallback 配置项都无法正常触发,或者说播放完成的界限是什么?要怎么才是播放完成的状态?

To Reproduce

const paymentStore = usePaymentStore();

const options: CountUpOptions = { separator: ",", onCompleteCallback() { console.log('finish'); }, // ... }; const onFinish = () => { console.log('play finished!'); }



**Desktop (please complete the following information):**
 - OS: macOS 14.0 (23A344)
 - Browser: 120.0.6099.199(正式版本) (arm64)
jizai1125 commented 10 months ago

:on-finished 改成 :onFinished@finished

yassine-zhang commented 10 months ago

:on-finished 改成 :onFinished@finished

好的,谢谢!