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 a631807682 committed Aug 1, 2019
1 parent 671ee06 commit f319f0e
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 f319f0e

Please sign in to comment.