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

activeIndex问题 #2

Closed
nevergoneok opened this issue Jun 20, 2018 · 2 comments
Closed

activeIndex问题 #2

nevergoneok opened this issue Jun 20, 2018 · 2 comments

Comments

@nevergoneok
Copy link

如果在任意一个tab跳转到新的页面,当finish新的页面后,activeIndex变为0

@jzoom
Copy link
Member

jzoom commented Jun 20, 2018

推荐这么做,使用一个变量保存一下当前的activeIndex,然后将这个变量赋值给Swiper的index,并在onIndexChanged这个回调函数中同步这个变量的值,activeIndex就变成“受控”的了。
image

@trungwebsite
Copy link

It seems idex: _activeIndex you mention above only work with default layout. Tinder, Stack,.. doesn't work. Is it a bug. Please help. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants