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

[Feature Request] 滚动tabs的scrollTo方法,不要把滚动延迟参数写死 #13235

Open
fishingEmm opened this issue Nov 27, 2024 · 0 comments

Comments

@fishingEmm
Copy link

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

滚动导航tabs,手动调用scrollTo方法定位的时候没有滚动效果,非常生硬。
提供一个参数控制,达成和点击导航栏一样的效果。

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

内容 {{ index }}

const tabsRef = ref(null);
tabsRef.value.scrollTo(index, true); // 第二个参数开启滚动效果

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

1 participant