Skip to content
New issue

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

swiper使用loop时,activeIndex不可用 #847

Open
klren0312 opened this issue Oct 25, 2024 · 0 comments
Open

swiper使用loop时,activeIndex不可用 #847

klren0312 opened this issue Oct 25, 2024 · 0 comments
Labels
JS js相关问题 Vue vue相关问题

Comments

@klren0312
Copy link
Owner

改成realIndex即可

const slideChange = (swiper: SwiperClass) => {
  activeIndex.value = swiper.realIndex + 1
}
@klren0312 klren0312 added Vue vue相关问题 JS js相关问题 labels Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
JS js相关问题 Vue vue相关问题
Projects
None yet
Development

No branches or pull requests

1 participant