Merge branch 'develop' into release/1.0.17-beta

This commit is contained in:
liujuping 2022-11-25 10:42:18 +08:00
commit 8f4cb19278

View File

@ -128,8 +128,18 @@ export interface CompositeObject {
[key: string]: CompositeValue;
}
/**
* { type: 'JSExpression', extType: 'function' }
*
*
* { type: 'JSFunction', source: '', value: '' }
* { type: 'JSExpression', source: '', value: '', extType: 'function' }
* react-renderer Java RE
* @param data
* @returns
*/
export function isJSExpression(data: any): data is JSExpression {
return data && data.type === 'JSExpression';
return data && data.type === 'JSExpression' && data.extType !== 'function';
}
export function isJSFunction(x: any): x is JSFunction {