S2 icon indicating copy to clipboard operation
S2 copied to clipboard

🐛 导出方法 copyData 在有手动隐藏列的情况下,导出的数据中,对应隐藏列的数据依然被导出,导致与表头错位

Open Miantang opened this issue 5 months ago • 1 comments

🏷 Version

Package Version
@antv/s2 1.55.8
@antv/s2-react 1.47.0
@antv/s2-vue

Sheet Type

明细表

  • [] PivotSheet
  • [x] TableSheet
  • [ ] GridAnalysisSheet
  • [ ] StrategySheet
  • [ ] EditableSheet

🖋 Description

导出方法 copyData 在有手动隐藏列的情况下,导出的数据中,对应隐藏列的数据依然被导出

🔗 Reproduce Link

改写官网DEMO后,

https://codesandbox.io/p/sandbox/condescending-dewdney-cgc9v8?file=%2Findex.tsx%3A8%2C10

🤔 Steps to Reproduce

image

当有手动隐藏列后的导出, 表头与数据列会错位

image

😊 Expected Behavior

能正确导出

💻 System information

Environment Info
System mac 14.6
Browser chrome: v128.0

Miantang avatar Sep 02 '24 02:09 Miantang