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

🐛 数据导出时候seriesNumber.text失效?

wozien opened this issue · comments

🏷 Version

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

Sheet Type

  • PivotSheet
  • TableSheet
  • GridAnalysisSheet
  • StrategySheet
  • EditableSheet

🖋 Description

用asyncGetAllPlainData方法导出数据的时候,不管formatOptions如何设置,序号列不管seriesNumber.text怎么配置,导出始终是【序号】

  const options: S2Options = {
    width: 480,
    height: 300,
    seriesNumber: {
      enable: true,
      text: '排名',
    },
  };

  const handleExport = async () => {
    if (s2Instance.current) {
      const content = await asyncGetAllPlainData({
        sheetInstance: s2Instance.current,
        split: '|',
        formatOptions: true,
      });
      console.log(content);
    }
  };

导出打印的结果如下:
序号|name|price|area
1|iphon13|5999|华, 东
2|iphon13|5999|华, 南
3|iphon13|5999|华, 中

⌨️ Code Snapshots

🔗 Reproduce Link

https://stackblitz.com/edit/vitejs-vite-m4qgeu?file=src%2FTestExport.tsx

🤔 Steps to Reproduce

😊 Expected Behavior

可以按seriesNumber.text的配置导出

😅 Current Behavior

💻 System information

Environment Info
System
Browser

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

Hello, @wozien, 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.23 🎉

The release is available on:

Your semantic-release bot 📦🚀