diff --git a/packages/editor/src/layouts/CodeEditor.vue b/packages/editor/src/layouts/CodeEditor.vue index 832fb17e8..2f1982e02 100644 --- a/packages/editor/src/layouts/CodeEditor.vue +++ b/packages/editor/src/layouts/CodeEditor.vue @@ -12,7 +12,7 @@ const props = withDefaults( defineProps<{ initValues?: string | Object; modifiedValues?: string | Object; - type?: string; + type?: 'diff'; language?: string; options?: { [key: string]: any; @@ -20,7 +20,6 @@ const props = withDefaults( autoSave?: boolean; }>(), { - type: '', autoSave: true, language: 'javascript', options: () => ({