движок 2
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user