Skip to content

Commit

Permalink
fix(pagination): indication count when itemstoshow is not 1
Browse files Browse the repository at this point in the history
  • Loading branch information
j1gs4w committed Mar 31, 2020
1 parent a200d1e commit ef380b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/addons/Pagination.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export default {
}
},
render(h) {
const totalCount = this.$hooper.slidesCount;
const totalCount = this.$hooper.slidesCount - this.$hooper.trimStart - this.$hooper.trimEnd + 1;
const children =
this.mode === 'indicator'
? renderDefault(h, this.currentSlide, totalCount, index => this.$hooper.slideTo(index))
Expand Down

0 comments on commit ef380b3

Please sign in to comment.