修改注释

This commit is contained in:
liyunjia 2025-01-04 17:31:51 +08:00
parent 48c061d2f8
commit 79599c7a66

View File

@ -73,14 +73,14 @@ export default {
const workbook = XLSX.read(data, { type: 'array' });
// 簿Spreadsheet
const spreadsheetData = stox(workbook);
// 123.xlsxBA+C+DFA+D.
// 123.xlsxBA+C+DFA+B+C+D.
const firstSheetRows = spreadsheetData[0].rows;
const keys = Object.keys(firstSheetRows);
for (let i = 1; i < keys.length - 1; i++) {
console.log(i, keys[i]);
// FA+DF5.
// FA+B+C+DF5.
firstSheetRows[keys[i]].cells['5'] = {
text: `=SUM(A${i + 1},D${i + 1})`
text: `=SUM(A${i + 1}:D${i + 1})`
}
}
// Spreadsheet