From 39dde3f82962a51f3698bcd7f8a341afa160fed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=90=B4=E5=A4=9A=E7=9B=8A?= Date: Wed, 3 Apr 2024 12:59:55 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E5=A4=8D=20excel=20=E6=B8=B2?= =?UTF-8?q?=E6=9F=93=E6=97=B6=E5=90=88=E5=B9=B6=E5=8D=95=E5=85=83=E6=A0=BC?= =?UTF-8?q?=E5=9E=82=E7=9B=B4=E6=96=B9=E5=90=91=E4=B8=8D=E6=AD=A3=E7=A1=AE?= =?UTF-8?q?=E9=97=AE=E9=A2=98=20Closes=20#9936=20(#9964)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/package.json | 4 ++-- packages/office-viewer/package.json | 2 +- packages/office-viewer/src/excel/sheet/getViewPointData.ts | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/amis/package.json b/packages/amis/package.json index 336bf1040..75d7c3e41 100644 --- a/packages/amis/package.json +++ b/packages/amis/package.json @@ -62,7 +62,7 @@ "moment": "^2.19.4", "moment-timezone": "^0.5.34", "mpegts.js": "^1.6.10", - "office-viewer": "^0.3.8", + "office-viewer": "^0.3.9", "prop-types": "^15.6.1", "qrcode.react": "^3.1.0", "react-cropper": "^2.1.8", @@ -244,4 +244,4 @@ "react-dom": ">=16.8.6" }, "gitHead": "37d23b4a8eb1c663bc38e8dd9040889ea1526ec4" -} +} \ No newline at end of file diff --git a/packages/office-viewer/package.json b/packages/office-viewer/package.json index 52feaf38e..56a323bf0 100644 --- a/packages/office-viewer/package.json +++ b/packages/office-viewer/package.json @@ -1,6 +1,6 @@ { "name": "office-viewer", - "version": "0.3.8", + "version": "0.3.9", "description": "office 文档在线预览", "main": "lib/index.js", "module": "esm/index.js", diff --git a/packages/office-viewer/src/excel/sheet/getViewPointData.ts b/packages/office-viewer/src/excel/sheet/getViewPointData.ts index d9466379c..e0e87a9a2 100644 --- a/packages/office-viewer/src/excel/sheet/getViewPointData.ts +++ b/packages/office-viewer/src/excel/sheet/getViewPointData.ts @@ -137,7 +137,7 @@ export function getViewPointData( yOffset += getRowHeight(i); } - y == yOffset; + y -= yOffset; const value = getSheetRowData(startRow)[startCol];