-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
fix: tooltip 调整 #2460
fix: tooltip 调整 #2460
Conversation
This pull request introduces 2 alerts when merging c2b0f33 into b3d4121 - view on LGTM.com new alerts:
|
items, | ||
title, | ||
}, follow ? point : {})); | ||
this.tooltip.update( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
这个格式化效果也没有很好啊~
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
对呀。。。
if (toElement && (hasClass(toElement, 'g2-tooltip') || isParent(toElement, 'g2-tooltip'))) { | ||
// 当鼠标滑入 tooltip 内容框时不隐藏 | ||
return; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@simaQ 主要改了这一行了,帮忙看看~
}, | ||
get(tooltipCfg, 'crosshairs', {}), | ||
this.getCrosshairsText('x', point, tooltipCfg) | ||
); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
我不太喜欢这种格式化的 style... 要不后面单独提一个 prettier 的 commit 吧,不要将 fix/feat 的代码和格式化的代码提到一个 commit 里。
代码格式化是提交的时候 Line 96 in b3d4121
|
c2b0f33
to
f4a18f8
Compare
This pull request introduces 2 alerts when merging f4a18f8 into 17a76cf - view on LGTM.com new alerts:
|
感觉规则不一样。 |
两个问题: