mirror of
https://github.com/Tencent/tmagic-editor.git
synced 2025-04-06 03:57:56 +08:00
refactor(editor): 明确CodeEditor type的定义
This commit is contained in:
parent
4c94fa0a8f
commit
8de58a2101
@ -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: () => ({
|
||||
|
Loading…
x
Reference in New Issue
Block a user