editorTheme 无效修复

This commit is contained in:
liaoxuezhi 2019-07-26 17:08:02 +08:00
parent 0759fb0654
commit 0e5a30dcc7
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ export interface EditorProps extends FormControlProps {
export default class EditorControl extends React.Component<EditorProps, any> {
static defaultProps:Partial<EditorProps> = {
language: 'javascript',
theme: 'vs',
editorTheme: 'vs',
options: {
automaticLayout: true,
selectOnLineNumbers: true,
@ -99,7 +99,7 @@ export default class EditorControl extends React.Component<EditorProps, any> {
disabled,
options,
language,
theme,
editorTheme,
size
} = this.props;
@ -125,7 +125,7 @@ export default class EditorControl extends React.Component<EditorProps, any> {
onFocus={this.handleFocus}
onBlur={this.handleBlur}
language={language}
theme={theme}
editorTheme={editorTheme}
editorDidMount={this.handleEditorMounted}
options={{
...options,