Skip to content

Commit

Permalink
fix: autoplay (#6771) close #6768
Browse files Browse the repository at this point in the history
  • Loading branch information
CCherry07 authored Jul 29, 2023
1 parent b49540a commit 2c39273
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions components/vc-slick/inner-slider.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,15 @@ export default {
};
},
watch: {
autoplay(newValue, oldValue) {
if (!oldValue && newValue) {
this.handleAutoPlay('playing');
} else if (newValue) {
this.handleAutoPlay('update');
} else {
this.pause('paused');
}
},
__propsSymbol__() {
const nextProps = this.$props;
const spec = {
Expand Down

0 comments on commit 2c39273

Please sign in to comment.