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

[t-sticky] 和 t-navbar 共同使用时,希望支持:默认以 t-navbar 为吸顶参考对象 #2279

Open
CrossLee opened this issue Aug 14, 2023 · 3 comments
Labels
question This is a question, not a bug

Comments

@CrossLee
Copy link

这个功能解决了什么问题

正常情况下,使用了 tdesign 后,组件都会以 tdesign 的组件为主,除非满足不了需求。目前如果页面使用了 t-navbar 组件,再使用 t-sticky 组件时,t-sticky 组件还是默认以页面的顶部为吸顶边界,会被 t-navbar 组件覆盖,体验不好。

你建议的方案是什么

加一个属性,支持以 t-navbar 底部为吸顶边界。

@github-actions
Copy link
Contributor

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

@LeeJim
Copy link
Collaborator

LeeJim commented Sep 14, 2023

这个功能应该没办法处理,因为没办法判断页面是否使用了 navbar

@LeeJim LeeJim added the question This is a question, not a bug label Sep 14, 2023
@CrossLee
Copy link
Author

这个功能应该没办法处理,因为没办法判断页面是否使用了 navbar

有 workaround 吗?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question This is a question, not a bug
Projects
None yet
Development

No branches or pull requests

2 participants