amis-saas-6892 [Feature] 编辑器fx 交互优化

Change-Id: I66f0b1323d3cc05acac7664c31add6087edc0647
This commit is contained in:
jiatianqi 2022-10-31 20:18:04 +08:00
parent 65efad9f8f
commit 6bc663f2c3

View File

@ -217,8 +217,12 @@ export default class FormulaControl extends React.Component<
return expression;
}
@autobind
inReplaceExpression(expression: any): any {
return expression.replace(/\\\$\{/g, '${');
if (expression && isString(expression)) {
return expression.replace(/\\\$\{/g, '${');
}
return expression;
}
// 根据 name 值 判断当前表达式是否 存在循环引用问题