umoteam-editor.d.ts
1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
declare module "@umoteam/editor" {
import { DefineComponent } from "vue";
export interface UmoEditorOptions {
editorKey?: string;
locale?: string;
dicts?: any[];
toolbar?: {
defaultMode?: "classic" | "ribbon" | "source";
menus?: string[];
[key: string]: any;
};
page?: {
defaultOrientation?: "portrait" | "landscape";
defaultBackground?: string;
[key: string]: any;
};
document?: {
title?: string;
content?: string;
placeholder?: string;
enableMarkdown?: boolean;
enableBubbleMenu?: boolean;
enableBlockMenu?: boolean;
readOnly?: boolean;
[key: string]: any;
};
assistant?: {
enabled?: boolean;
[key: string]: any;
};
[key: string]: any;
}
export const UmoEditor: DefineComponent<{
modelValue?: string;
options?: UmoEditorOptions;
height?: string | number;
[key: string]: any;
}>;
}
declare module "@umoteam/editor/style" {
const content: any;
export default content;
}