🐛[NEXT] 表格导出当只row有一行时返回空数据
Volankey opened this issue · comments
🏷 Version
Package | Version |
---|---|
@antv/s2 | 2.0.0-next.17 |
Sheet Type
- PivotSheet
- TableSheet
- GridAnalysisSheet
- StrategySheet
- EditableSheet
🖋 Description
表格导出,当数据只有一行时,返回空数据
⌨️ Code Snapshots
S2/packages/s2-core/src/utils/export/copy/table-copy.ts
Lines 94 to 101 in a09d1fe
看起来97行,rowIndex < rowLength - 1
应该是 rowIndex <= rowLength - 1
🔗 Reproduce Link
https://codesandbox.io/p/sandbox/boring-tamas-jd3hqk?file=%2Findex.ts%3A101%2C17
🤔 Steps to Reproduce
😊 Expected Behavior
应该导出正确的 csv 不是空数据
😅 Current Behavior
💻 System information
Environment | Info |
---|---|
System | |
Browser |
🎉 This issue has been resolved in version @antv/s2-v2.0.0-next.18 🎉
The release is available on:
Your semantic-release bot 📦🚀