【发布时间】:2019-06-21 05:46:43
【问题描述】:
Tabulator 未使用 Tabulator.download() 下载。我尝试过使用 CSV 和 xlsx 格式,但没有成功。我在反应组件中使用 npm 包。数据在 UI 上的表格中可见。
以下功能失败:
Download.prototype.downloaders = {
csv: function csv(columns, data, options, setFileContents, config)
控制台中显示的堆栈跟踪是:
Cannot read property 'forEach' of undefined
at parseRows (tabulator.js:11677)
at Download.csv (tabulator.js:11722)
at Download.download (tabulator.js:11419)
at Tabulator.download (tabulator.js:8337)
【问题讨论】:
-
请贴出您正在调用的下载功能的代码