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

[Tooltip] TooltipLite placement="mouse" 模式下,坐标可以计算上 clientY 吗? #3225

Open
moecasts opened this issue Nov 25, 2024 · 1 comment
Assignees

Comments

@moecasts
Copy link
Collaborator

这个功能解决了什么问题

mouse 模式下,只计算了横坐标,没有计算纵坐标,导致 tooltip 只能展示在 node 的底部,并没有真正的做到模拟 title 的效果
Clipboard_Screenshot_1732522843

你建议的方案是什么

加上 clientY 的计算,最好可以加上 offset 来控制偏移量

Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants