antvis / S2

⚡️ A practical visualization library for tabular analysis.
https://s2.antv.antgroup.com
MIT License
1.48k stars 194 forks source link

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

Closed DelMemory closed 2 months ago

DelMemory commented 2 months ago

🏷 Version

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

Sheet Type

🖋 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[bot] commented 2 months ago

你好 @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 commented 2 months ago

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

lijinke666 commented 2 months ago

预计本周5

lijinke666 commented 2 months ago

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

The release is available on:

Your semantic-release bot :package::rocket: