Browse Source

fix: autoplay (#6771) close #6768

pull/6799/head
Cherry7 1 year ago committed by GitHub
parent
commit
2c39273cc6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      components/vc-slick/inner-slider.jsx

9
components/vc-slick/inner-slider.jsx

@ -51,6 +51,15 @@ export default {
}; };
}, },
watch: { watch: {
autoplay(newValue, oldValue) {
if (!oldValue && newValue) {
this.handleAutoPlay('playing');
} else if (newValue) {
this.handleAutoPlay('update');
} else {
this.pause('paused');
}
},
__propsSymbol__() { __propsSymbol__() {
const nextProps = this.$props; const nextProps = this.$props;
const spec = { const spec = {

Loading…
Cancel
Save