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

[nav-bar] 自定义navbar放在页面顶部,导致navbar和页面的其他部分有间隙,或导致页面的其他部分向上滚动 #3302

Closed
baohaojie123 opened this issue Nov 22, 2024 · 2 comments · Fixed by #3286
Labels
bug Something isn't working

Comments

@baohaojie123
Copy link

tdesign-miniprogram 版本

1.8.0

重现链接

No response

重现步骤

WechatIMG170

期望结果

No response

实际结果

No response

基础库版本

No response

补充说明

No response

Copy link
Contributor

👋 @baohaojie123,感谢给 TDesign 提出了 issue。
请根据 issue 模版确保背景信息的完善,我们将调查并尽快回复你。

@betavs
Copy link
Collaborator

betavs commented Nov 23, 2024

<t-sticky>
  <t-navbar wx:if="{{visible}}" title="Sticky" leftArrow />
</t-sticky>
onLoad() {
  setTimeout(() => {
    this.setData({ visible: true });
  }, 300);
},

由于 navbar 有一个300ms的动画效果导致,可以暂时用以上方案临时解决

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants