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

🤔S2明细表在使用tooltip 对dataCell自定义时 抛出异常! #2861

Closed
1 of 5 tasks
Shanks0724 opened this issue Aug 15, 2024 · 1 comment
Closed
1 of 5 tasks
Assignees
Labels
❔question 疑问/使用问题

Comments

@Shanks0724
Copy link

Shanks0724 commented Aug 15, 2024

🏷 Version

Package Version
@antv/s2 2
@antv/s2-react 2
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

S2明细表在使用tooltip 对dataCell自定义时 抛出异常!

20240815-11243211qqqqqq

20240815-112443wwwww

20240815-112449eeeeee

🔗 Reproduce Link

😊 Expected Behavior

😅 Current Behavior

@Shanks0724 Shanks0724 added the ❔question 疑问/使用问题 label Aug 15, 2024
@lijinke666
Copy link
Member

lijinke666 commented Aug 16, 2024

亲亲, 你用的 react 为什么不返回一个 jsx , 要返回一个 dom?
且类型提示都告诉你, 需要一个 ReactNode

content: () => {
  return <span>{text}</span>
}

image

@lijinke666 lijinke666 self-assigned this Aug 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
❔question 疑问/使用问题
Projects
None yet
Development

No branches or pull requests

2 participants