From 8de58a210120185a42dc1031487c5839b35da9a8 Mon Sep 17 00:00:00 2001 From: roymondchen Date: Tue, 15 Nov 2022 16:01:52 +0800 Subject: [PATCH] =?UTF-8?q?refactor(editor):=20=E6=98=8E=E7=A1=AECodeEdito?= =?UTF-8?q?r=20type=E7=9A=84=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/editor/src/layouts/CodeEditor.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/editor/src/layouts/CodeEditor.vue b/packages/editor/src/layouts/CodeEditor.vue index 832fb17e..2f1982e0 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: () => ({