Skip to content

Commit

Permalink
fix: monaco-editor always in loading
Browse files Browse the repository at this point in the history
  • Loading branch information
mengshang918 committed Dec 21, 2021
1 parent 4d9477f commit 5f50fa9
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,13 @@
import React, { memo } from 'react'
import Editor, { EditorProps } from '@monaco-editor/react'
import Editor, { EditorProps, loader } from '@monaco-editor/react'
import styles from './index.module.css'

loader.config({
paths: {
vs: 'https://storage.360buyimg.com/bird/dripform',
},
})

const MonacoEdit: React.FC<EditorProps> = ({
language = 'json',
value,
Expand Down Expand Up @@ -34,7 +40,7 @@ const MonacoEdit: React.FC<EditorProps> = ({
horizontalScrollbarSize: 5,
alwaysConsumeMouseWheel: false,
},
fontSize: '13px',
fontSize: 13,
}}
/>
</div>
Expand Down

0 comments on commit 5f50fa9

Please sign in to comment.