mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:39:05 +08:00
Fix value formula (#4455)
* fix(formula): isExpression兼容safari浏览器 * fix(formula): 简化isExpression * fix(formula): 修正判断条件
This commit is contained in:
parent
ecd2e441a3
commit
662ab637ba
@ -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)) {
|
||||
|
Loading…
Reference in New Issue
Block a user