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<{
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: () => ({