We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
next版本明细表导出列头meta配置失效, 导出还是显示原来的字段field 调用asyncGetAllPlainData获取导出数据,打印如下: name,area,price iphone15,华东,6999 iphone15 pro,华东,8999
https://stackblitz.com/edit/vitejs-vite-m4qgeu?file=src%2FApp.tsx
明细表调用asyncGetAllPlainData
列头正常显示中文格式化
列头没有正常显示中文格式化
The text was updated successfully, but these errors were encountered:
你这里关闭了格式化的配置, 所以未按 meta 格式化是符合预期的.
meta
https://s2.antv.antgroup.com/manual/advanced/interaction/copy#formatoptions
这样修改下即可
const data = await asyncGetAllPlainData({ sheetInstance: s2Instance.current, split: ',', - formatOptions: false, + formatOptions: true, // 或者 + formatOptions: { + formatHeader: true; + formatData: true; + } });
Sorry, something went wrong.
感谢回复,但是我发现交叉表formatOptions:false导出是正常的
No branches or pull requests
🏷 Version
Sheet Type
🖋 Description
next版本明细表导出列头meta配置失效, 导出还是显示原来的字段field
![image](https://private-user-images.githubusercontent.com/17634819/319021691-b9213b5c-1733-4bcb-aa4a-4b9c0a9951e8.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3MDkzMjgsIm5iZiI6MTcxOTcwOTAyOCwicGF0aCI6Ii8xNzYzNDgxOS8zMTkwMjE2OTEtYjkyMTNiNWMtMTczMy00YmNiLWFhNGEtNGI5YzBhOTk1MWU4LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDAwNTcwOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjN2MwYTY2ZDg2NjlmMzIzNDM3Njk2YTRhZTA3MGMyZDgzMjZlNWI4M2U1YjY3Mzk5Njk3ZWE4ZmZjZDQ4MWEmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.5x9uglI6wxYH5nfQc5dFp2EKEu4blitNaA3Ja68SicA)
调用asyncGetAllPlainData获取导出数据,打印如下:
name,area,price
iphone15,华东,6999
iphone15 pro,华东,8999
⌨️ Code Snapshots
https://stackblitz.com/edit/vitejs-vite-m4qgeu?file=src%2FApp.tsx
🔗 Reproduce Link
https://stackblitz.com/edit/vitejs-vite-m4qgeu?file=src%2FApp.tsx
🤔 Steps to Reproduce
明细表调用asyncGetAllPlainData
😊 Expected Behavior
列头正常显示中文格式化
😅 Current Behavior
列头没有正常显示中文格式化
💻 System information
The text was updated successfully, but these errors were encountered: