mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-29 18:48:45 +08:00
fix: diff-editor 主题色
This commit is contained in:
parent
e2db651475
commit
da910d58ef
@ -73,7 +73,7 @@ function normalizeValue(value: any, language?: string) {
|
||||
export class DiffEditor extends React.Component<DiffEditorProps, any> {
|
||||
static defaultProps: Partial<DiffEditorProps> = {
|
||||
language: 'javascript',
|
||||
theme: 'vs',
|
||||
editorTheme: 'vs',
|
||||
options: {
|
||||
automaticLayout: false,
|
||||
selectOnLineNumbers: true,
|
||||
@ -304,7 +304,7 @@ export class DiffEditor extends React.Component<DiffEditorProps, any> {
|
||||
size,
|
||||
options,
|
||||
language,
|
||||
theme,
|
||||
editorTheme,
|
||||
classnames: cx
|
||||
} = this.props;
|
||||
|
||||
@ -326,7 +326,7 @@ export class DiffEditor extends React.Component<DiffEditorProps, any> {
|
||||
onChange={onChange}
|
||||
disabled={disabled}
|
||||
language={language}
|
||||
theme={theme}
|
||||
editorTheme={editorTheme}
|
||||
editorDidMount={this.handleEditorMounted}
|
||||
editorFactory={this.editorFactory}
|
||||
options={{
|
||||
|
Loading…
Reference in New Issue
Block a user