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 · 3 comments · May be fixed by #3267
Open

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

moecasts opened this issue Nov 25, 2024 · 3 comments · May be fixed by #3267
Assignees
Labels
improvement need more info 需要更多信息理解 issue 的问题

Comments

@moecasts
Copy link
Collaborator

这个功能解决了什么问题

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

你建议的方案是什么

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

Copy link
Contributor

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

@uyarn
Copy link
Collaborator

uyarn commented Dec 1, 2024

native title 是这个样子 现在是想加clientY 变成什么样子?@moecasts
WeChatWorkScreenshot_2cfd4749-09ae-4be1-a0e0-2894f631d842

@uyarn uyarn added the need more info 需要更多信息理解 issue 的问题 label Dec 1, 2024
@moecasts
Copy link
Collaborator Author

moecasts commented Dec 2, 2024

@uyarn 原生的也是有算上 clientY 的,是跟在鼠标旁边,而不是 node 旁边
Clipboard_Screenshot_1733110279

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
improvement need more info 需要更多信息理解 issue 的问题
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants