From 50c03aec9ba82a814fc1b40a430956e740504684 Mon Sep 17 00:00:00 2001 From: weixiang-li <84069809+weixiang-li@users.noreply.github.com> Date: Wed, 5 Jan 2022 16:19:24 +0800 Subject: [PATCH] =?UTF-8?q?FIX=20BUG=EF=BC=8C=20=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E6=8C=89=E8=A1=A8=E6=A0=BC=E5=AF=BC=E5=87=BA=E6=97=B6=EF=BC=8C?= =?UTF-8?q?=E5=90=88=E5=B9=B6=E5=8D=95=E5=85=83=E6=A0=BC=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复按表格导出时,合并单元格显示错误 --- src/vendor/Export2Excel.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vendor/Export2Excel.js b/src/vendor/Export2Excel.js index d8a2af3d..49563fd2 100644 --- a/src/vendor/Export2Excel.js +++ b/src/vendor/Export2Excel.js @@ -26,8 +26,8 @@ function generateArray(table) { //Handle Row Span if (rowspan || colspan) { - rowspan = rowspan || 1; - colspan = colspan || 1; + rowspan = Number(rowspan || 1); + colspan = Number(colspan || 1); ranges.push({ s: { r: R,