Skip to content

Commit

Permalink
Carousel: Fix onChange emit value (ElemeFE#16705)
Browse files Browse the repository at this point in the history
  • Loading branch information
iamkun authored and lzq4047 committed May 22, 2020
1 parent c40eb93 commit e779314
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/carousel/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -148,7 +148,9 @@ export default {
activeIndex(val, oldVal) {
this.resetItemPosition(oldVal);
this.$emit('change', val, oldVal);
if (oldVal > -1) {
this.$emit('change', val, oldVal);
}
},
autoplay(val) {
Expand Down

0 comments on commit e779314

Please sign in to comment.