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

[Bug 上报] Tab 标签页与Navbar 导航栏组合时遇到的问题 #465

Closed
68511992 opened this issue Jul 27, 2024 · 7 comments
Closed
Labels
🐞bug: need confirm 待确认的bug need reproduce 需要补充复现demo

Comments

@68511992
Copy link

Wot Design Uni 版本号

1.3.6

平台

微信小程序

复现Demo地址

https://github.com/Moonofweisheng/wot-design-uni/

重现步骤

Tab 标签页与Navbar 导航栏组合使用时。在小程序端,使用【Navbar 导航栏】固定在顶部 然后我在下方使用【Tab 标签页】想让【Tab 标签页】浮动在【Navbar 导航栏】下方,但是【Tab 标签页】【粘性布局】sticky会让【Navbar 导航栏】固定在顶部的安全距离失效,我在小程序向下划动时【Tab 标签页】不会浮动在【Navbar 导航栏】下,而是自动吸顶到最顶端了。
image
image

期望的结果是什么?

期望
image

实际的结果是什么?

实际的结果是,我向下滑动时【Tab 标签页】会自动浮动到最顶了,

环境信息

No response

其他补充信息

No response

@68511992 68511992 added the 🐞bug: need confirm 待确认的bug label Jul 27, 2024
@68511992
Copy link
Author

68511992 commented Jul 27, 2024

在H5端是正常的。
image

@Moonofweisheng Moonofweisheng added the need reproduce 需要补充复现demo label Jul 28, 2024
Copy link

你好,@68511992

我们需要你提供一个最小重现demo,以便于我们帮你排查问题。你可以通过 fork wot-starter-retail 并添加相关复现逻辑来提供。

@Moonofweisheng
Copy link
Owner

自定义navbar后,页面高度就要加上navbar的高度了,按照你的描述,应该需要将navbar设置为fixed,并且获取navbar所占据的高度,设置为tabs的offset-top。效果参考附件视频。

QQ20240728-131845-HD.mp4

@68511992
Copy link
Author

相当于要计算offset-top的值,然后再赋值是吧,我已经这样做了,可以解决。我还说是有更优解,我就不再计算状态栏和导航栏了。

@Moonofweisheng
Copy link
Owner

Moonofweisheng commented Jul 28, 2024 via email

@68511992
Copy link
Author

收到,感谢老哥

Copy link

此 issue 已被自动锁定,因为关闭后没有任何近期活动。如果有相关 bug,请重新创建一个新 issue。

@github-actions github-actions bot locked and limited conversation to collaborators Aug 27, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
🐞bug: need confirm 待确认的bug need reproduce 需要补充复现demo
Projects
None yet
Development

No branches or pull requests

2 participants