движок 2
This commit is contained in:
@@ -140,7 +140,7 @@ export class Cell {
|
||||
if (!sheet) {
|
||||
return '"#REF!"'
|
||||
}
|
||||
const cellValue = this.sheet.workbook.getCell(match).evaluate()
|
||||
const cellValue = this.sheet.workbook.getValue(match)
|
||||
// Только строки оборачиваем в кавычки, числа и булевы значения - нет
|
||||
if (typeof cellValue === 'string') {
|
||||
return `"${cellValue}"`
|
||||
@@ -165,7 +165,7 @@ export class Cell {
|
||||
}
|
||||
try {
|
||||
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') {
|
||||
return `"${cellValue}"`
|
||||
@@ -293,7 +293,7 @@ export class Cell {
|
||||
const qualifiedName = sheetName
|
||||
? `${sheetName}!${cellName}`
|
||||
: `${this.sheet.name}!${cellName}`
|
||||
const cellValue = this.sheet.workbook.getCell(qualifiedName).evaluate()
|
||||
const cellValue = this.sheet.workbook.getValue(qualifiedName)
|
||||
const numValue =
|
||||
typeof cellValue === 'number'
|
||||
? cellValue
|
||||
|
||||
Reference in New Issue
Block a user