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
5.37.1
iOS, Android
Chrome:131.0.6778.86
No response
设置竖直方向虚拟滚动, 默认定位到第一条展示为空, 需要上滑一次才能切换到第一条数据,且最后一条数据无法正常展示, 不能切换到页面中进行展示
<Swiper direction="vertical" indicator={() => null} onIndexChange={(index) => handleIndexChange(index)} total={total} style={{ '--height': '200px' }} defaultIndex={0} stuckAtBoundary={false} slideSize={100} loop={false} > {index => ( <Swiper.Item key={index}> <div style={{ color: '#fff' }}> {index + 1} </div> </Swiper.Item> )} </Swiper>
The text was updated successfully, but these errors were encountered:
共有4条数据时,实际的表现是默认第一屏为空,上滑切换展示第一条,继续上滑第三条数据无法展示出;展示效果依次是 空白、第一条数据、第二条数据、第四条数据;
Sorry, something went wrong.
Hi, hcxmj.
Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz.
我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandbox 或 stackblitz 创建一个实例。
Hi, hcxmj. Please provide a online reproduction so that we can help you troubleshoot the problem. You can create a demo by codesandbox or stackblitz. 我们需要你提供一个在线的重现实例,以便于我们帮你排查问题。你可以通过 codesandbox 或 stackblitz 创建一个实例。
如这个demo所示,基本上是把文档上的搬过来了代码地址
No branches or pull requests
Version of antd-mobile
5.37.1
Operating system and its version
iOS, Android
Browser and its version
Chrome:131.0.6778.86
Sandbox to reproduce
No response
What happened?
设置竖直方向虚拟滚动, 默认定位到第一条展示为空, 需要上滑一次才能切换到第一条数据,且最后一条数据无法正常展示, 不能切换到页面中进行展示
Relevant log output
The text was updated successfully, but these errors were encountered: