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

tabs 组件中tab选项比较多的时候能否直接滚动到最后一个 #13307

Closed
Wlisfes opened this issue Jan 13, 2025 · 4 comments
Closed

Comments

@Wlisfes
Copy link

Wlisfes commented Jan 13, 2025

这个功能解决了什么问题?

tabs 组件中tab选项比较多的时候我只想查看某一个选项,这一项刚好在屏幕以外,目前没办法直接滚动到最后一项查看!

你期望的 API 是什么样子的?

<van-tabs jump-scrollbar></van-tabs>
@inottn
Copy link
Collaborator

inottn commented Jan 13, 2025

@Wlisfes
Copy link
Author

Wlisfes commented Jan 13, 2025

https://vant-ui.github.io/vant/#/zh-CN/tab#biao-qian-lan-gun-dong

我的场景是这种,我想tab title是可以主动滑动的、这样我可以随时查看某一项的内容;不需要现在这样要点击一下 ”标签5“ 后才能看到后面的标签6~标签8;我的预想是可以只直接滑动过去,这样我就可以随时查看任意一项了
image

@inottn
Copy link
Collaborator

inottn commented Jan 13, 2025

是可以主动滑动的,它在你的设备上不能滑动吗。

@Wlisfes
Copy link
Author

Wlisfes commented Jan 13, 2025

抱歉!确实是可以滚动、是别的事件影响到了。

@Wlisfes Wlisfes closed this as completed Jan 13, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants