You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
import { copyData, copyToClipboard, download, registerTransformer, CopyMIMEType } from '@antv/s2'
// 拿到复制数据 (选中的单元格)
// 这是官网提供的导出
const data = copyData(spreadsheet, '\t', false)
download(data, 'filename')
// 我的导出
const data = copyData(this.myChart, ',', true);
download(data, 'filename')
我用的vue项目,请教一下

1、直接导出:用\t会只占一格,用','号才可以,copyToClipboard用‘\t’可以,‘,’会只占一格
2、用‘,’导出后,日期格式变了
Beta Was this translation helpful? Give feedback.
All reactions