refactor(editor): 明确CodeEditor type的定义

This commit is contained in:
roymondchen 2022-11-15 16:01:52 +08:00
parent 4c94fa0a8f
commit 8de58a2101

View File

@ -12,7 +12,7 @@ const props = withDefaults(
defineProps<{ defineProps<{
initValues?: string | Object; initValues?: string | Object;
modifiedValues?: string | Object; modifiedValues?: string | Object;
type?: string; type?: 'diff';
language?: string; language?: string;
options?: { options?: {
[key: string]: any; [key: string]: any;
@ -20,7 +20,6 @@ const props = withDefaults(
autoSave?: boolean; autoSave?: boolean;
}>(), }>(),
{ {
type: '',
autoSave: true, autoSave: true,
language: 'javascript', language: 'javascript',
options: () => ({ options: () => ({