From 1eacd220792bc559da9e83248774f1fe5b356250 Mon Sep 17 00:00:00 2001 From: hsm-lv Date: Wed, 27 Jul 2022 20:08:11 +0800 Subject: [PATCH] =?UTF-8?q?[amis-saas-5460]=E4=BB=A3=E7=A0=81=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E5=99=A8=EF=BC=8C=E9=BB=98=E8=AE=A4=E5=80=BCjs?= =?UTF-8?q?=E6=8A=A5=E9=94=99=E6=97=B6=EF=BC=8C=E7=BB=84=E4=BB=B6=E4=B8=AD?= =?UTF-8?q?=E6=97=A0=E6=B3=95=E6=98=BE=E7=A4=BA=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Change-Id: I61c3003daddda542c8a46f6d06c84020ec168ee7 --- packages/amis-editor/src/plugin/Form/CodeEditor.tsx | 5 +++++ packages/amis-editor/src/plugin/Form/DiffEditor.tsx | 5 +++++ 2 files changed, 10 insertions(+) diff --git a/packages/amis-editor/src/plugin/Form/CodeEditor.tsx b/packages/amis-editor/src/plugin/Form/CodeEditor.tsx index c0fba4051..fd93e68c9 100644 --- a/packages/amis-editor/src/plugin/Form/CodeEditor.tsx +++ b/packages/amis-editor/src/plugin/Form/CodeEditor.tsx @@ -205,6 +205,11 @@ export class CodeEditorControlPlugin extends BasePlugin { } ]); }; + + filterProps(props: any) { + props.disabled = true; + return props; + } } registerEditorPlugin(CodeEditorControlPlugin); diff --git a/packages/amis-editor/src/plugin/Form/DiffEditor.tsx b/packages/amis-editor/src/plugin/Form/DiffEditor.tsx index 84a13d038..5c171e5c3 100644 --- a/packages/amis-editor/src/plugin/Form/DiffEditor.tsx +++ b/packages/amis-editor/src/plugin/Form/DiffEditor.tsx @@ -214,6 +214,11 @@ export class DiffEditorControlPlugin extends BasePlugin { } ]); }; + + filterProps(props: any) { + props.disabled = true; + return props; + } } registerEditorPlugin(DiffEditorControlPlugin);