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];