antvis/G6

toolTip类型声明错误 #5358

Shen120 posted onGitHub

问题描述

https://github.com/antvis/G6/blob/ab461c1e27681c7a9db0966470f0ba172f93a474/packages/plugin/src/tooltip/index.ts#L186 image

这个地方文档上写的是返回HTMLDivElement,但是实际代码只能为string,不像上面那样判断过 https://github.com/antvis/G6/blob/ab461c1e27681c7a9db0966470f0ba172f93a474/packages/pc/src/behavior/tooltip-base.ts#L40 image

改一下噻

重现链接

https://github.com/antvis/G6/blob/ab461c1e27681c7a9db0966470f0ba172f93a474/packages/pc/src/behavior/tooltip-base.ts#L40

重现步骤

看代码

预期行为

类型正常或者兼容处理

平台

  • 操作系统: [Windows]
  • 网页浏览器: [Google Chrome]
  • G6 版本: [4.5.1 ... ]

屏幕截图或视频(可选)

No response

补充说明(可选)

No response


感谢提交问题,有兴趣来个 PR 修复一下吗? [初级任务]

posted by hustcc over 1 year ago

感谢提交问题,有兴趣来个 PR 修复一下吗?

已提交

posted by Shen120 over 1 year ago

Fund this Issue

$0.00
Funded

Pull requests