diff --git a/src/admin/components/other/circular-counter.vue b/src/admin/components/other/circular-counter.vue index 8e648dd26..818630bd3 100644 --- a/src/admin/components/other/circular-counter.vue +++ b/src/admin/components/other/circular-counter.vue @@ -7,8 +7,8 @@ export default { name: 'CircularCounter', - data() { - return { - initialOffset: 0, - i: -1, - interval: null - } - }, - computed: { - strokeDashOffset() { - return this.initialOffset; - } - }, props: { - time: Number, - index: Number - }, - mounted() { - // if (this.i == this.time) { - // this.initialOffset = 100; - // } - // this.i++; - - // this.interval = setInterval(() => { - // if (this.i == this.time) { - // this.initialOffset = 100; - // } - // this.i++; - // }, 1000); - this.initialOffset = 200; - this.interval = setInterval(() => { - this.initialOffset -= 40; - if (this.initialOffset <= -40) - this.initialOffset = 200; - }, 1000); - }, - beforeDestroy() { - clearInterval(this.interval); + time: Number } } - diff --git a/src/theme-helper/view-mode-slide.vue b/src/theme-helper/view-mode-slide.vue index cedc38a43..3f5b2c842 100644 --- a/src/theme-helper/view-mode-slide.vue +++ b/src/theme-helper/view-mode-slide.vue @@ -162,10 +162,9 @@ type="is-secondary" size="is-medium" :icon="isPlaying ? 'pause-circle' : 'play-circle' "/> - + :time="this.slideTimeout/1000" />