From dfd59cb5d3dbad7ff63f0db6f742f8c055811ed4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=88=98=E4=B8=B9?= <365533093@qq.com> Date: Thu, 26 May 2022 15:03:43 +0800 Subject: [PATCH] =?UTF-8?q?fix(formula):=20=E4=BF=AE=E6=AD=A3=20(#4456)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/utils/formula.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/formula.ts b/src/utils/formula.ts index 57dd1e717..9d7087095 100644 --- a/src/utils/formula.ts +++ b/src/utils/formula.ts @@ -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(); // 剔除前后空格