Skip to content

Commit 5939158

Browse files
authored
refactor: use defineOptions (#106)
1 parent 1079c0d commit 5939158

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

src/editor/CodeMirrorEditor.vue

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,12 @@
1-
<script lang="ts">
2-
export default {
3-
editorType: 'monaco'
4-
}
5-
</script>
6-
71
<script setup lang="ts">
82
import CodeMirror, { type Props } from '../codemirror/CodeMirror.vue'
93
import { computed } from 'vue'
104
import type { PreviewMode } from './types'
115
6+
defineOptions({
7+
editorType: 'monaco'
8+
})
9+
1210
const props = defineProps<{
1311
value: string
1412
filename: string

0 commit comments

Comments
 (0)