mirror of https://github.com/ElemeFE/element
carousel: be able to switch autoplay state
parent
0d5b7c0341
commit
39564cb7e8
|
@ -109,6 +109,10 @@ export default {
|
|||
activeIndex(val, oldVal) {
|
||||
this.resetItemPosition();
|
||||
this.$emit('change', val, oldVal);
|
||||
},
|
||||
|
||||
autoplay(val) {
|
||||
val ? this.startTimer() : this.pauseTimer();
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in New Issue