Skip to content

Commit

Permalink
refactor(editor): 明确CodeEditor type的定义
Browse files Browse the repository at this point in the history
  • Loading branch information
roymondchen committed Nov 15, 2022
1 parent 4c94fa0 commit 8de58a2
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions packages/editor/src/layouts/CodeEditor.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,14 @@ const props = withDefaults(
defineProps<{
initValues?: string | Object;
modifiedValues?: string | Object;
type?: string;
type?: 'diff';
language?: string;
options?: {
[key: string]: any;
};
autoSave?: boolean;
}>(),
{
type: '',
autoSave: true,
language: 'javascript',
options: () => ({
Expand Down

0 comments on commit 8de58a2

Please sign in to comment.