mirror of https://github.com/ElemeFE/element
Carousel: Fix onChange emit value (#16705)
parent
a08cc0f19d
commit
484a033a66
|
@ -148,7 +148,9 @@ export default {
|
||||||
|
|
||||||
activeIndex(val, oldVal) {
|
activeIndex(val, oldVal) {
|
||||||
this.resetItemPosition(oldVal);
|
this.resetItemPosition(oldVal);
|
||||||
this.$emit('change', val, oldVal);
|
if (oldVal > -1) {
|
||||||
|
this.$emit('change', val, oldVal);
|
||||||
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
autoplay(val) {
|
autoplay(val) {
|
||||||
|
|
Loading…
Reference in New Issue