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-
71<script setup lang="ts">
82import Monaco from ' ../monaco/Monaco.vue'
9- import type { PreviewMode } from ' ../types' ;
3+ import type { PreviewMode } from ' ../types'
104
115defineProps <{
12- value: string ;
13- filename: string ;
6+ value: string
7+ filename: string
148 readonly? : boolean
159 mode? : PreviewMode
1610}>()
1711
1812const emits = defineEmits <{
19- (e : ' change' , code : string ): void ;
13+ (e : ' change' , code : string ): void
2014}>()
2115
16+ defineOptions ({
17+ editorType: ' monaco' ,
18+ })
19+
2220const onChange = (code : string ) => {
2321 emits (' change' , code )
2422}
Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ onMounted(async () => {
9090 ... (props .readonly
9191 ? { value: props .value , language: lang .value }
9292 : { model: null }),
93+ fontSize: 13 ,
9394 theme ,
9495 readOnly: props .readonly ,
9596 automaticLayout: true ,
You can’t perform that action at this time.
0 commit comments