mirror of
https://github.com/alibaba/lowcode-engine.git
synced 2026-03-05 09:47:20 +00:00
Merge branch fix/loop-jsFunction into develop
Title: fix: 修复 JSFunction 表达式使用时,无法去掉 this 使用 scope 变量 Link: https://code.aone.alibaba-inc.com/ali-lowcode/ali-lowcode-engine/codereview/7954110
This commit is contained in:
commit
39c24add37
@ -413,7 +413,7 @@ export function parseData(schema: any, self: any): any {
|
|||||||
return schema;
|
return schema;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* 全匹配{{开头,}}结尾的变量表达式,或者对象类型JSExpression,支持省略this */
|
/* 全匹配{{开头,}}结尾的变量表达式,或者对象类型JSExpression/JSFunction,支持省略this */
|
||||||
export function parseExpression(str: any, self: any) {
|
export function parseExpression(str: any, self: any) {
|
||||||
try {
|
try {
|
||||||
const contextArr = ['"use strict";', 'var __self = arguments[0];'];
|
const contextArr = ['"use strict";', 'var __self = arguments[0];'];
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user