mirror of
https://github.com/ruilisi/fortune-sheet.git
synced 2025-01-09 04:07:33 +08:00
fix: undefiend numeric parameters
This commit is contained in:
parent
7c6a7f2af1
commit
3c09b8ea6a
@ -177,6 +177,14 @@ class Parser extends Emitter {
|
||||
*/
|
||||
_callCellValue(label) {
|
||||
const [row, column, sheetName] = extractLabel(label);
|
||||
if (row?.index === -1) {
|
||||
throw Error(ERROR_NAME);
|
||||
} else if (column?.index === -1) {
|
||||
if (row.isAbsolute || column.isAbsolute) {
|
||||
throw Error(ERROR_NAME);
|
||||
}
|
||||
return row.index + 1;
|
||||
}
|
||||
let value = void 0;
|
||||
|
||||
this.emit('callCellValue', {label, row, column, sheetName}, this.options, (_value) => {
|
||||
|
Loading…
Reference in New Issue
Block a user