движок 2

This commit is contained in:
2025-07-29 08:11:48 +03:00
parent e1e4c89a18
commit 3dc246f442

View File

@@ -140,7 +140,7 @@ export class Cell {
if (!sheet) { if (!sheet) {
return '"#REF!"' return '"#REF!"'
} }
const cellValue = this.sheet.workbook.getCell(match).evaluate() const cellValue = this.sheet.workbook.getValue(match)
// Только строки оборачиваем в кавычки, числа и булевы значения - нет // Только строки оборачиваем в кавычки, числа и булевы значения - нет
if (typeof cellValue === 'string') { if (typeof cellValue === 'string') {
return `"${cellValue}"` return `"${cellValue}"`
@@ -165,7 +165,7 @@ export class Cell {
} }
try { try {
const qualifiedRef = `${this.sheet.name}!${match}` const qualifiedRef = `${this.sheet.name}!${match}`
const cellValue = this.sheet.workbook.getCell(qualifiedRef).evaluate() const cellValue = this.sheet.workbook.getValue(qualifiedRef)
// Только строки оборачиваем в кавычки, числа и булевы значения - нет // Только строки оборачиваем в кавычки, числа и булевы значения - нет
if (typeof cellValue === 'string') { if (typeof cellValue === 'string') {
return `"${cellValue}"` return `"${cellValue}"`
@@ -293,7 +293,7 @@ export class Cell {
const qualifiedName = sheetName const qualifiedName = sheetName
? `${sheetName}!${cellName}` ? `${sheetName}!${cellName}`
: `${this.sheet.name}!${cellName}` : `${this.sheet.name}!${cellName}`
const cellValue = this.sheet.workbook.getCell(qualifiedName).evaluate() const cellValue = this.sheet.workbook.getValue(qualifiedName)
const numValue = const numValue =
typeof cellValue === 'number' typeof cellValue === 'number'
? cellValue ? cellValue