1
0
mirror of synced 2025-11-06 04:10:39 +08:00
This commit is contained in:
xuliangzhan
2024-05-27 13:58:46 +08:00
parent 8e3641126d
commit 601fb5d5fe
2 changed files with 16 additions and 3 deletions

View File

@@ -464,11 +464,24 @@ export const VXETablePluginExportXLSX = {
globalExcelJS = options ? options.ExcelJS : null
vxetable.config({
table: {
importConfig: {
_typeMaps: {
xlsx: 1
}
} as any,
exportConfig: {
_typeMaps: {
xlsx: 1
}
} as any
},
// 兼容老
export: {
types: {
xlsx: 0
}
}
} as any
})
vxetable.interceptor.mixin({
'event.import': handleImportEvent,

View File

@@ -1,6 +1,6 @@
{
"name": "vxe-table-plugin-export-xlsx",
"version": "4.0.1",
"version": "4.0.2",
"description": "基于 vxe-table 表格的扩展插件,支持导出 xlsx 格式",
"scripts": {
"lib": "gulp build"
@@ -51,7 +51,7 @@
"sass": "^1.55.0",
"typescript": "^4.6.4",
"vue": "^3.4.23",
"vxe-table": "^4.6.0"
"vxe-table": "^4.6.17"
},
"peerDependencies": {
"vxe-table": "^4.5.0"