fix(formula): 修正 (#4456)

This commit is contained in:
刘丹 2022-05-26 15:03:43 +08:00 committed by GitHub
parent 662ab637ba
commit dfd59cb5d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -169,7 +169,7 @@ export function formulaExec(
// 非字符串类型直接返回比如boolean、number类型、Object、Array类型
return value;
} else if (curExecMode && FormulaExec[curExecMode]) {
return FormulaExec[curExecMode];
return FormulaExec[curExecMode](value, data);;
}
const curValue = value.trim(); // 剔除前后空格