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
使用导出excel功能时报错 代码参考文档的 import('@/vendor/Export2Excel').then(excel => { excel.export_json_to_excel({ header: tHeader, //表头 必填 data, //具体数据 必填 filename: 'excel-list', //非必填 autoWidth: true, //非必填 bookType: 'xlsx' //非必填 }) })
The text was updated successfully, but these errors were encountered:
我也一样
Sorry, something went wrong.
将 import XLSX from 'xlsx' 改为 import * as XLSX from 'xlsx' 即可
import XLSX from 'xlsx'
import * as XLSX from 'xlsx'
fix: Update Export2Excel.js (PanJiaChen#4191)
5843615
Export2Excel.js 代码第 83 行报错,找不到属性 XLSX.utils
No branches or pull requests
Bug report(问题描述)
使用导出excel功能时报错
代码参考文档的
import('@/vendor/Export2Excel').then(excel => {
excel.export_json_to_excel({
header: tHeader, //表头 必填
data, //具体数据 必填
filename: 'excel-list', //非必填
autoWidth: true, //非必填
bookType: 'xlsx' //非必填
})
})
Steps to reproduce(问题复现步骤)
Screenshot or Gif(截图或动态图)
Link to minimal reproduction(最小可在线还原demo)
Other relevant information(格外信息)
The text was updated successfully, but these errors were encountered: