mirror of
https://gitee.com/ElemeFE/element.git
synced 2024-12-04 21:27:52 +08:00
commit
e89eecc17e
@ -65,7 +65,7 @@ export default {
|
|||||||
type: String,
|
type: String,
|
||||||
default: 'hover'
|
default: 'hover'
|
||||||
},
|
},
|
||||||
autoPlay: {
|
autoplay: {
|
||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
@ -168,7 +168,7 @@ export default {
|
|||||||
},
|
},
|
||||||
|
|
||||||
startTimer() {
|
startTimer() {
|
||||||
if (this.interval <= 0 || !this.autoPlay) return;
|
if (this.interval <= 0 || !this.autoplay) return;
|
||||||
this.timer = setInterval(this.playSlides, this.interval);
|
this.timer = setInterval(this.playSlides, this.interval);
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user