Fix value formula (#4455)

* fix(formula): isExpression兼容safari浏览器

* fix(formula): 简化isExpression

* fix(formula): 修正判断条件
This commit is contained in:
刘丹 2022-05-26 14:36:51 +08:00 committed by GitHub
parent ecd2e441a3
commit 662ab637ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -183,7 +183,7 @@ export function formulaExec(
} else if (curValue.startsWith('${') && curValue.endsWith('}')) {
// ${ xxx } 格式 使用 formula 运算器
return FormulaExec['formula'](curValue, data);
} else if (isExpression(test)) {
} else if (isExpression(curValue)) {
// 表达式格式使用 formula 运算器
return FormulaExec['formula'](curValue, data);
} else if (/(\${).+(\})/.test(curValue)) {