|
|
@@ -212,13 +212,13 @@ const initPreview = async (instance?) => {
|
|
|
|
|
|
previewSpread.open(blob, async () => {
|
|
|
let sheet1 = previewSpread.sheets[0];
|
|
|
- for (let i = 0; i < sheet1.getRowCount(); i++) {
|
|
|
- for (let j = 0; j < sheet1.getColumnCount(); j++) {
|
|
|
- if (sheet1.getBindingPath(i, j)) {
|
|
|
- sheet1.getCell(i, j).value(sheet1.getBindingPath(i, j))
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
+ // for (let i = 0; i < sheet1.getRowCount(); i++) {
|
|
|
+ // for (let j = 0; j < sheet1.getColumnCount(); j++) {
|
|
|
+ // if (sheet1.getBindingPath(i, j)) {
|
|
|
+ // sheet1.getCell(i, j).value(sheet1.getBindingPath(i, j))
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // }
|
|
|
forceRerenderPdf();
|
|
|
}, (error) => {
|
|
|
console.error('文件打开失败:', error);
|