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

tab动态设置标签,滚动失效 #2351

Closed
JoanneXu6677 opened this issue Jun 12, 2024 · 0 comments
Closed

tab动态设置标签,滚动失效 #2351

JoanneXu6677 opened this issue Jun 12, 2024 · 0 comments

Comments

@JoanneXu6677
Copy link
Contributor

NutUI React 包名

@nutui/nutui-react

NutUI React 版本号

2.6.7

平台

h5

重现链接

https://codesandbox.io/p/devbox/jjtmm3?file=%2Fsrc%2FApp.jsx%3A16%2C23

重现步骤

初始设置一个数量少的数组,之后重新设置数量多的数组后,点击tab没有滚动。但点击超出屏幕的tab元素,会滚动回初始位置。不符合tab正常应该居中展示选中tab的效果。

期望的结果是什么?

动态设置tab数组,符合正常tab展示

实际的结果是什么?

动态设置tab数组,不符合正常tab展示

环境信息

No response

其他补充信息

No response

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

2 participants