mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-15 09:21:13 +08:00
[amis-saas-5460]代码编辑器,默认值js报错时,组件中无法显示代码
Change-Id: I61c3003daddda542c8a46f6d06c84020ec168ee7
This commit is contained in:
parent
2f2f57eed9
commit
1eacd22079
@ -205,6 +205,11 @@ export class CodeEditorControlPlugin extends BasePlugin {
|
||||
}
|
||||
]);
|
||||
};
|
||||
|
||||
filterProps(props: any) {
|
||||
props.disabled = true;
|
||||
return props;
|
||||
}
|
||||
}
|
||||
|
||||
registerEditorPlugin(CodeEditorControlPlugin);
|
||||
|
@ -214,6 +214,11 @@ export class DiffEditorControlPlugin extends BasePlugin {
|
||||
}
|
||||
]);
|
||||
};
|
||||
|
||||
filterProps(props: any) {
|
||||
props.disabled = true;
|
||||
return props;
|
||||
}
|
||||
}
|
||||
|
||||
registerEditorPlugin(DiffEditorControlPlugin);
|
||||
|
Loading…
Reference in New Issue
Block a user