Skip to content

Commit a1a3fe1

Browse files
authored
fix: larger font size (#100)
1 parent db8c1bd commit a1a3fe1

File tree

2 files changed

+9
-10
lines changed

2 files changed

+9
-10
lines changed

src/editor/MonacoEditor.vue

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,22 @@
1-
<script lang="ts">
2-
export default {
3-
editorType: 'monaco'
4-
}
5-
</script>
6-
71
<script setup lang="ts">
82
import Monaco from '../monaco/Monaco.vue'
9-
import type { PreviewMode } from '../types';
3+
import type { PreviewMode } from '../types'
104
115
defineProps<{
12-
value: string;
13-
filename: string;
6+
value: string
7+
filename: string
148
readonly?: boolean
159
mode?: PreviewMode
1610
}>()
1711
1812
const emits = defineEmits<{
19-
(e: 'change', code: string): void;
13+
(e: 'change', code: string): void
2014
}>()
2115
16+
defineOptions({
17+
editorType: 'monaco',
18+
})
19+
2220
const onChange = (code: string) => {
2321
emits('change', code)
2422
}

src/monaco/Monaco.vue

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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,

0 commit comments

Comments
 (0)