Skip to content

Commit

Permalink
fix: pi-marquee兼容性问题、更新speed无效的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
sadais-lwt committed Aug 20, 2021
1 parent 91d8102 commit 06550be
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions components/pi-marquee/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export default {
this.children.forEach(i => (i.direction = this.direction))
this.updateTime()
},
duration: {
speed: {
immediate: true,
handler() {
this.handlePause()
Expand All @@ -67,10 +67,10 @@ export default {
}
},
mounted() {
window.addEventListener('resize', this.updateTime)
window && window.addEventListener('resize', this.updateTime)
},
beforeDestroy() {
window.removeEventListener('resize', this.updateTime)
window && window.removeEventListener('resize', this.updateTime)
},
methods: {
/**
Expand Down

0 comments on commit 06550be

Please sign in to comment.