lowcode-plugins icon indicating copy to clipboard operation
lowcode-plugins copied to clipboard

fix: schema2jsCode Compatibility issues

Open junbaibai0719 opened this issue 1 year ago • 1 comments

我想在运行时用户操作后生成一些自定义方法,修改了schema的methods,然后重新生成js code,发现一个兼容性问题,如果我在前端页面没有先打开js编辑器的面板的话,所有的function都会变成funcName funcName这种形式

        (schema.componentsTree[0] as any).originCode = undefined;
        (schema.componentsTree[0] as any).originCode = await schema2JsCode(schema);

image

junbaibai0719 avatar Dec 31 '24 17:12 junbaibai0719

CLA assistant check
All committers have signed the CLA.

CLAassistant avatar Dec 31 '24 17:12 CLAassistant