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