From da910d58efeae5dc4a4d54e302df050ecac56efc Mon Sep 17 00:00:00 2001 From: shenmenga Date: Wed, 28 Feb 2024 11:44:03 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20diff-editor=20=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E8=89=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/amis/src/renderers/Form/DiffEditor.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/amis/src/renderers/Form/DiffEditor.tsx b/packages/amis/src/renderers/Form/DiffEditor.tsx index 7eeb321ca..a17aa8998 100644 --- a/packages/amis/src/renderers/Form/DiffEditor.tsx +++ b/packages/amis/src/renderers/Form/DiffEditor.tsx @@ -73,7 +73,7 @@ function normalizeValue(value: any, language?: string) { export class DiffEditor extends React.Component { static defaultProps: Partial = { language: 'javascript', - theme: 'vs', + editorTheme: 'vs', options: { automaticLayout: false, selectOnLineNumbers: true, @@ -304,7 +304,7 @@ export class DiffEditor extends React.Component { size, options, language, - theme, + editorTheme, classnames: cx } = this.props; @@ -326,7 +326,7 @@ export class DiffEditor extends React.Component { onChange={onChange} disabled={disabled} language={language} - theme={theme} + editorTheme={editorTheme} editorDidMount={this.handleEditorMounted} editorFactory={this.editorFactory} options={{