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
feat(tooltip): refactor tooltip for react #831
Conversation
🎊 PR Preview has been successfully built and deployed to https://s2-preview-pr-831.surge.sh |
Size Change: +70 B (0%) Total Size: 184 kB
ℹ️ View Unchanged
|
你好, @lijinke666 CI 执行失败, 请点击 [Details] 按钮查看, 并根据日志修复。 Hello, @lijinke666 CI run failed, please click the [Details] button try to fixed it. |
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 are accessibility issues in these changes.
This pull request introduces 1 alert when merging 0f3b2b6 into f40f70d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging ef32427 into f40f70d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging d81d11e into f40f70d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 857182e into f40f70d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging b5e9e98 into f40f70d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging cea299e into f40f70d - view on LGTM.com new alerts:
|
单测挂了 |
This pull request introduces 1 alert when merging f222754 into f40f70d - view on LGTM.com new alerts:
|
This pull request introduces 1 alert when merging 06e0645 into f40f70d - view on LGTM.com new alerts:
|
Codecov Report
@@ Coverage Diff @@
## master #831 +/- ##
==========================================
+ Coverage 70.86% 71.24% +0.38%
==========================================
Files 166 167 +1
Lines 11541 11550 +9
Branches 2702 2701 -1
==========================================
+ Hits 8178 8229 +51
+ Misses 2216 2182 -34
+ Partials 1147 1139 -8
Continue to review full report at Codecov.
|
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 are accessibility issues in these changes.
This pull request introduces 1 alert when merging cb046d0 into f40f70d - view on LGTM.com new alerts:
|
cb046d0
to
594e398
Compare
This pull request introduces 1 alert when merging 594e398 into f40f70d - view on LGTM.com new alerts:
|
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.
优先级:showTooltip(方法级) content => tooltip.content (配置级) => 默认 content
和 renderTooltip
🎉 This PR is included in version @antv/s2-v1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @antv/s2-react-v1.1.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @antv/s2-v1.0.0-beta.17 🎉 The release is available on: Your semantic-release bot 📦🚀 |
🎉 This PR is included in version @antv/s2-react-v1.0.0-beta.3 🎉 The release is available on: Your semantic-release bot 📦🚀 |
👀 PR includes
✨ Feature
🎨 Enhance
🐛 Bugfix
🔧 Chore
📝 Description
*. 重构 react tooltip, 和 core 层 解耦, 去除 getTooltipComponent 参数
*. 重构 tooltip 参数配置, 之前的 api 设计太绕了, 其实 tooltipComponent 和 element 就是一个概念
*. 新增
s2.tooltip.renderTooltip()
用于继承BaseTooltip
自定义 tooltip (react 层采用这种方式解耦)*. 修复 s2.showTooltip({ element: xx }) 和 s2.tooltip.show({element:xx}) 类型错误
*. 修复 组件卸载时 tooltip 报错
*. 修复 组件 tooltip 只能点击一次 close #828
*. 修复 组件 通过实例 s2.tooltip.show 或者 s2.showTooltip 方式 调用 tootip 报错 close #813
*. 修复 单元格级别的tooltip 无法显示
*. 修复
s2Options.tooltip.content: ''
和s2.tooltip.show({ content: '' })
但是 依然显示 tooltip 内容其他:
TODO:
🔗 Related issue link
🔍 Self Check before Merge