antvis / S2

⚡️ A practical visualization library for tabular analysis.

Home Page:https://s2.antv.antgroup.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

🐛[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

while (
deadline.timeRemaining() > 0 &&
count > 0 &&
rowIndex < rowLength - 1
) {
for (let j = rowIndex; j < rowLength && count > 0; j++) {
const rowData = this.displayData[j];
const row: string[] = [];

看起来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

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

Hello, @Volankey, 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.

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

The release is available on:

Your semantic-release bot 📦🚀