File tree Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Expand file tree Collapse file tree 2 files changed +9
-10
lines changed Original file line number Diff line number Diff line change 1
- <script lang="ts">
2
- export default {
3
- editorType: ' monaco'
4
- }
5
- </script >
6
-
7
1
<script setup lang="ts">
8
2
import Monaco from ' ../monaco/Monaco.vue'
9
- import type { PreviewMode } from ' ../types' ;
3
+ import type { PreviewMode } from ' ../types'
10
4
11
5
defineProps <{
12
- value: string ;
13
- filename: string ;
6
+ value: string
7
+ filename: string
14
8
readonly? : boolean
15
9
mode? : PreviewMode
16
10
}>()
17
11
18
12
const emits = defineEmits <{
19
- (e : ' change' , code : string ): void ;
13
+ (e : ' change' , code : string ): void
20
14
}>()
21
15
16
+ defineOptions ({
17
+ editorType: ' monaco' ,
18
+ })
19
+
22
20
const onChange = (code : string ) => {
23
21
emits (' change' , code )
24
22
}
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ onMounted(async () => {
90
90
... (props .readonly
91
91
? { value: props .value , language: lang .value }
92
92
: { model: null }),
93
+ fontSize: 13 ,
93
94
theme ,
94
95
readOnly: props .readonly ,
95
96
automaticLayout: true ,
You can’t perform that action at this time.
0 commit comments