Comments (5)
Hello, I have used vue awesome countdown in Vue 2. My vue-awesome-countdown verson is 1.0.24..
Technically it works fine but from time to time there will be a time deduction delay of one second then it will just be deducted by 2 seconds. Below is my snippet
<template> <div> <vac ref="countdown" :left-time="msBeforeDraw" @finish="fresh"> <p slot="process" slot-scope="{ timeObj }" class="mb-0"> <small class="drawInfo">Countdown</small> <span v-if="timeObj.h !== '00'" class="colorMain" >{{ timeObj.h }}:</span > <span class="colorMain">{{ timeObj.m }}:</span> <span class="colorMain">{{ timeObj.s }}</span> </p> <span slot="finish" class="opening drawInfo"> <small>Countdown</small> <span class="colorMain">开奖中</span> </span> </vac> </div> </template> <script> export default { data(){ return {msBeforeDraw: 600} } methods: { async fresh() { await this.$parent.fetchKey() setTimeout(() => { if (this.$refs.countdown) { this.$refs.countdown.startCountdown(true) } }, 1000) } } } </script>
The bug was fixed in version 1.0.28.
Please update the version and enjoy it.
from vue-awesome-countdown.
It still happened even after upgrading to 1.0.28 but there are improvements.. For example within 60 seconds it only occurred 3 times
from vue-awesome-countdown.
It still happened even after upgrading to 1.0.28 but there are improvements.. For example within 60 seconds it only occurred 3 times
Please update to the latest version 1.1.2 and try again
from vue-awesome-countdown.
Looks like it really is fixed! Thanks!
from vue-awesome-countdown.
I am using version 1.1.2 and am experiencing the same issue unfortunately.
Several times I see the countdown jumping by two seconds.
EDIT: Apparently if I use {{ Math.ceil(timeObj.org.s) }} instead of {{ timeObj.s }} it seems to be working fine.
from vue-awesome-countdown.
Related Issues (20)
- Update documentation to fit Vue 2.6 slots syntax HOT 7
- startCountdown() restart doesn't work HOT 4
- IE10 不兼容 HOT 1
- npm install vue-awesome-countdown (Dependent package errors) HOT 3
- timeObj.s not precise HOT 1
- finised instead of finished HOT 1
- stoped instead of stopped HOT 1
- finish event not working
- finish and autostart false not working HOT 1
- switchCountdown not really stopping the timer HOT 3
- How to reset the timer without restarting it? HOT 3
- Start event not called with auto start false HOT 1
- Start event not called with autoStart false HOT 1
- Timer not starts when using dynamic start-time and end-time HOT 1
- ie11报错 HOT 1
- how to import and use in nuxt? HOT 1
- 修改绑定的时间戳不更新
- Is it possible to count up? HOT 2
- 目前支持Vue3吗 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-awesome-countdown.