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

[Drawer] 当自定义导航栏时,菜单紧贴顶部 #2038

Closed
ElanYoung opened this issue May 28, 2023 · 6 comments
Closed

[Drawer] 当自定义导航栏时,菜单紧贴顶部 #2038

ElanYoung opened this issue May 28, 2023 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@ElanYoung
Copy link
Contributor

tdesign-miniprogram 版本

1.1.7

重现链接

No response

重现步骤

{
  "usingComponents": {},
  "navigationStyle": "custom"
}
<t-drawer
  visible="{{true}}"
  placement="left"
  items="{{sidebar}}"
  bind:overlay-click="overlayClick"
  bind:item-click="itemClick"
></t-drawer>

WX20230528-202031@2x

期望结果

希望当自定义导航栏时顶部留白,否则就得自己计算导航栏高度来自定义样式

实际结果

菜单紧贴顶部

基础库版本

2.32.0

补充说明

No response

@github-actions
Copy link
Contributor

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

@github-actions
Copy link
Contributor

♥️ 有劳 @hedonghui @anlyyao 尽快确认问题。
确认有效后将下一步计划和可能需要的时间回复给 @ElanYoung

@LeeJim
Copy link
Collaborator

LeeJim commented May 30, 2023

这个问题是全局性的,后续统一处理

@LeeJim LeeJim added the bug Something isn't working label May 30, 2023
@ElanYoung
Copy link
Contributor Author

这个问题是全局性的,后续统一处理

okkk 我这个PR是不是还不行😭:#2039

@wood-kite
Copy link

+1,刚用到这个组件发现,文字和手机左上角的状态栏干涉了,临时设置了个空格标题,让它换个行躲开了😭

@anlyyao
Copy link
Collaborator

anlyyao commented Jan 2, 2025

@wood-kite @ElanYoung 自定义导航栏场景下,开启一下 using-custom-navbar 属性

@anlyyao anlyyao closed this as completed Jan 2, 2025
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

No branches or pull requests

4 participants