We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Uncaught TypeError: Cannot set property 'active' of undefined vue-slide.vue:234
The text was updated successfully, but these errors were encountered:
暂时的解决办法如下,貌似还不是最好的方案:
init () { ... this.initPages() ... }, initPages () { this.swiper.count = this.$el.getElementsByClassName('rd-swipe-item').length if (this.options.pagination) { this.pagination = Array.from({length: this.swiper.count}).map((item, index) => { return { index: index, active: index === 0 } }) } }, setPaginationActive (index) { this.pagination.forEach(item => item.active = false) if (this.pagination[index]) { this.pagination[index].active = true } else { this.initPages() } }
Sorry, something went wrong.
No branches or pull requests
Uncaught TypeError: Cannot set property 'active' of undefined vue-slide.vue:234
The text was updated successfully, but these errors were encountered: