Skip to content

Commit 2c39273

Browse files
authored
fix: autoplay (#6771) close #6768
1 parent b49540a commit 2c39273

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Diff for: components/vc-slick/inner-slider.jsx

+9
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,15 @@ export default {
5151
};
5252
},
5353
watch: {
54+
autoplay(newValue, oldValue) {
55+
if (!oldValue && newValue) {
56+
this.handleAutoPlay('playing');
57+
} else if (newValue) {
58+
this.handleAutoPlay('update');
59+
} else {
60+
this.pause('paused');
61+
}
62+
},
5463
__propsSymbol__() {
5564
const nextProps = this.$props;
5665
const spec = {

0 commit comments

Comments
 (0)