update
This commit is contained in:
3
index.ts
3
index.ts
@@ -85,7 +85,8 @@ function exportXLSX (params: InterceptorExportParams) {
|
||||
}
|
||||
const exportMethod = () => {
|
||||
const book = XLSX.utils.book_new()
|
||||
const sheet = XLSX.utils.json_to_sheet((isHeader ? [colHead] : []).concat(rowList).concat(footList), { skipHeader: true })
|
||||
const list = (isHeader ? [colHead] : []).concat(rowList).concat(footList)
|
||||
const sheet = XLSX.utils.json_to_sheet(list.length ? list : [{}], { skipHeader: true })
|
||||
// 设置列宽
|
||||
sheet['!cols'] = sheetCols
|
||||
// 转换数据
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "vxe-table-plugin-export-xlsx",
|
||||
"version": "1.6.2",
|
||||
"version": "1.6.3",
|
||||
"description": "基于 vxe-table 表格的增强插件,支持导出 xlsx 格式",
|
||||
"scripts": {
|
||||
"lib": "gulp build"
|
||||
|
||||
Reference in New Issue
Block a user