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

🐛Meta formatter data 参数在导出和复制中未传入 #2866

Closed
1 of 5 tasks
DelMemory opened this issue Aug 19, 2024 · 4 comments · Fixed by #2871
Closed
1 of 5 tasks

🐛Meta formatter data 参数在导出和复制中未传入 #2866

DelMemory opened this issue Aug 19, 2024 · 4 comments · Fixed by #2871
Assignees
Labels
🐛 bug 这个是一个 bug next 2.0-next 版本的问题 released on @next

Comments

@DelMemory
Copy link

🏷 Version

Package Version
@antv/s2 2.0.0-next.25
@antv/s2-react 2.0.0-next.24
@antv/s2-vue

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

文档中提到,格式化会在 data cell 格式化,复制/导出,tooltip 展示,传入第二个参数 data
image

实际上目前只在 data cell 以及 tooltip 中传入,复制/导出 时取到的 data 参数 都是 undefined,这点在官方的示例中都可以复现

⌨️ Code Snapshots

🔗 Reproduce Link

https://s2.antv.antgroup.com/examples/react-component/export/#export

该链接为提供的官网链接,未修改代码,仅作参考

🤔 Steps to Reproduce

image
在现有示例中增加 formatter
圈选单元格
ctrl + c 复制
打印的 data 参数都为 undefined

😊 Expected Behavior

需要在导出和复制触发时,方法可以正确拿到 data 参数

😅 Current Behavior

💻 System information

Environment Info
System
Browser
@github-actions github-actions bot added the next 2.0-next 版本的问题 label Aug 19, 2024
@lijinke666 lijinke666 self-assigned this Aug 19, 2024
@lijinke666 lijinke666 added the 🐛 bug 这个是一个 bug label Aug 19, 2024
Copy link
Contributor

你好 @DelMemory,很抱歉给你带来了不好的体验, 我们会尽快排查问题并修复, 请关注后续发布日志.

Hello, @DelMemory, We are so sorry for the bad experience. We will troubleshoot and fix the problem as soon as possible. Please pay attention to the follow-up change logs.

@DelMemory
Copy link
Author

@lijinke666 请问这个问题的修复,大概什么时候会发修复后版本呢

@lijinke666
Copy link
Member

预计本周5

lijinke666 added a commit that referenced this issue Aug 23, 2024
* fix: 修复在局部复制和导出场景时, 格式化函数获取不到单元格信息 close #2866

* test: 单测修复
@lijinke666
Copy link
Member

🎉 This issue has been resolved in version @antv/s2-v2.0.0-next.27 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
🐛 bug 这个是一个 bug next 2.0-next 版本的问题 released on @next
Projects
None yet
2 participants