[amis-saas-5460]代码编辑器,默认值js报错时,组件中无法显示代码

Change-Id: I61c3003daddda542c8a46f6d06c84020ec168ee7
This commit is contained in:
hsm-lv 2022-07-27 20:08:11 +08:00
parent 2f2f57eed9
commit 1eacd22079
2 changed files with 10 additions and 0 deletions

View File

@ -205,6 +205,11 @@ export class CodeEditorControlPlugin extends BasePlugin {
}
]);
};
filterProps(props: any) {
props.disabled = true;
return props;
}
}
registerEditorPlugin(CodeEditorControlPlugin);

View File

@ -214,6 +214,11 @@ export class DiffEditorControlPlugin extends BasePlugin {
}
]);
};
filterProps(props: any) {
props.disabled = true;
return props;
}
}
registerEditorPlugin(DiffEditorControlPlugin);