md-editor-v3 3.0.0 → 4.0.0-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +131 -95
- package/lib/cjs/DropdownToolbar.cjs +1 -0
- package/lib/cjs/MdCatalog.cjs +1 -0
- package/lib/cjs/MdEditor.cjs +60 -0
- package/lib/cjs/MdPreview.cjs +1 -0
- package/lib/cjs/ModalToolbar.cjs +1 -0
- package/lib/cjs/NormalToolbar.cjs +1 -0
- package/lib/cjs/chunks/config.cjs +1 -0
- package/lib/cjs/chunks/dom.cjs +1 -0
- package/lib/cjs/chunks/event-bus.cjs +1 -0
- package/lib/cjs/chunks/index.cjs +8 -0
- package/lib/cjs/chunks/index2.cjs +1 -0
- package/lib/cjs/chunks/index3.cjs +1 -0
- package/lib/cjs/chunks/index4.cjs +2 -0
- package/lib/cjs/chunks/vue-tsx.cjs +1 -0
- package/lib/cjs/config.cjs +1 -0
- package/lib/cjs/index.cjs +1 -0
- package/lib/es/DropdownToolbar.mjs +7 -0
- package/lib/es/MdCatalog.mjs +215 -0
- package/lib/es/MdEditor.mjs +2286 -0
- package/lib/es/MdPreview.mjs +15 -0
- package/lib/es/ModalToolbar.mjs +9 -0
- package/lib/es/NormalToolbar.mjs +39 -0
- package/lib/es/chunks/config.mjs +271 -0
- package/lib/es/chunks/dom.mjs +32 -0
- package/lib/es/chunks/event-bus.mjs +38 -0
- package/lib/es/chunks/index.mjs +1061 -0
- package/lib/es/chunks/index2.mjs +135 -0
- package/lib/es/chunks/index3.mjs +229 -0
- package/lib/es/chunks/index4.mjs +57 -0
- package/lib/es/chunks/vue-tsx.mjs +11 -0
- package/lib/es/config.mjs +4 -0
- package/lib/es/index.mjs +35 -0
- package/lib/preview.css +1 -0
- package/lib/style.css +1 -1
- package/lib/types/DropdownToolbar/index.d.ts +129 -0
- package/lib/{MdEditor/extensions → types}/MdCatalog/CatalogLink.d.ts +4 -4
- package/lib/{MdEditor/extensions/MdCatalog/index.d.ts → types/MdCatalog/MdCatalog.d.ts} +3 -3
- package/lib/types/MdCatalog/index.d.ts +193 -0
- package/lib/{MdEditor → types/MdEditor}/Editor.d.ts +153 -162
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +24 -0
- package/lib/types/MdEditor/components/Divider/index.d.ts +2 -0
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +53 -0
- package/lib/types/MdEditor/components/Modal/index.d.ts +84 -0
- package/lib/types/MdEditor/composition.d.ts +66 -0
- package/lib/{MdEditor → types/MdEditor}/index.d.ts +343 -388
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +154 -0
- package/lib/types/MdEditor/layouts/Content/codemirror/commands.d.ts +4 -0
- package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +56 -0
- package/lib/types/MdEditor/layouts/Content/codemirror/themeLight.d.ts +23 -0
- package/lib/types/MdEditor/layouts/Content/codemirror/themeOneDark.d.ts +26 -0
- package/lib/types/MdEditor/layouts/Content/composition/index.d.ts +6 -0
- package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +7 -0
- package/lib/types/MdEditor/layouts/Content/composition/useAutoScroll.d.ts +5 -0
- package/lib/types/MdEditor/layouts/Content/composition/useCodeMirror.d.ts +13 -0
- package/lib/types/MdEditor/layouts/Content/composition/useCopyCode.d.ts +4 -0
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +8 -0
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +8 -0
- package/lib/types/MdEditor/layouts/Content/composition/useMarkdownIt.d.ts +5 -0
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +11 -0
- package/lib/types/MdEditor/layouts/Content/composition/usePasteUpload.d.ts +6 -0
- package/lib/types/MdEditor/layouts/Content/composition/userZoom.d.ts +10 -0
- package/lib/types/MdEditor/layouts/Content/index.d.ts +173 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +5 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +14 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +9 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +10 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +6 -0
- package/lib/types/MdEditor/layouts/Content/props.d.ts +89 -0
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +15 -0
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +21 -0
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +50 -0
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +33 -0
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +42 -0
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +51 -0
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +28 -0
- package/lib/types/MdEditor/layouts/Toolbar/composition.d.ts +4 -0
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +91 -0
- package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +45 -0
- package/lib/types/MdEditor/props.d.ts +546 -0
- package/lib/types/MdEditor/static/event-name.d.ts +9 -0
- package/lib/{MdEditor → types/MdEditor}/type.d.ts +2 -1
- package/lib/types/MdEditor/utils/content-help.d.ts +19 -0
- package/lib/types/MdEditor/utils/dom.d.ts +22 -0
- package/lib/types/MdEditor/utils/event-bus.d.ts +17 -0
- package/lib/types/MdEditor/utils/index.d.ts +66 -0
- package/lib/types/MdEditor/utils/scroll-auto.d.ts +18 -0
- package/lib/types/MdEditor/utils/smooth-scroll.d.ts +8 -0
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +23 -0
- package/lib/types/MdPreview/MdPreview.d.ts +186 -0
- package/lib/types/MdPreview/index.d.ts +453 -0
- package/lib/types/ModalToolbar/index.d.ts +244 -0
- package/lib/types/NormalToolbar/index.d.ts +105 -0
- package/lib/types/config.d.ts +1 -0
- package/lib/types/index.d.ts +8 -0
- package/lib/{md-editor-v3.umd.js → umd/index.js} +38 -38
- package/package.json +16 -20
- package/lib/md-editor-v3.cjs +0 -63
- package/lib/md-editor-v3.mjs +0 -4146
- /package/lib/{MdEditor/extensions → types/DropdownToolbar}/DropdownToolbar.d.ts +0 -0
- /package/lib/{MdEditor → types/MdEditor}/config.d.ts +0 -0
- /package/lib/{MdEditor/extensions → types/ModalToolbar}/ModalToolbar.d.ts +0 -0
- /package/lib/{MdEditor/extensions → types/NormalToolbar}/NormalToolbar.d.ts +0 -0
|
@@ -1,56 +1,38 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
import NormalToolbar from './extensions/NormalToolbar';
|
|
3
|
-
import DropdownToolbar from './extensions/DropdownToolbar';
|
|
4
|
-
import MdCatalog from './extensions/MdCatalog';
|
|
5
|
-
import ModalToolbar from './extensions/ModalToolbar';
|
|
6
|
-
import { config } from './config';
|
|
7
2
|
declare const _default: {
|
|
8
3
|
new (...args: any[]): {
|
|
9
4
|
$: import("vue").ComponentInternalInstance;
|
|
10
5
|
$data: {};
|
|
11
6
|
$props: Partial<{
|
|
7
|
+
editorId: string;
|
|
8
|
+
class: string;
|
|
9
|
+
style: string | import("vue").CSSProperties;
|
|
10
|
+
mdHeadingId: import("./type").MdHeadingId;
|
|
11
|
+
theme: import("./type").Themes;
|
|
12
12
|
pageFullscreen: boolean;
|
|
13
13
|
preview: boolean;
|
|
14
14
|
htmlPreview: boolean;
|
|
15
|
-
modelValue: string;
|
|
16
|
-
theme: import("./type").Themes;
|
|
17
|
-
class: string;
|
|
18
|
-
previewOnly: boolean;
|
|
19
|
-
language: string;
|
|
20
15
|
toolbars: import("./type").ToolbarNames[];
|
|
21
16
|
toolbarsExclude: import("./type").ToolbarNames[];
|
|
22
17
|
noPrettier: boolean;
|
|
23
|
-
editorId: string;
|
|
24
18
|
tabWidth: number;
|
|
19
|
+
tableShape: number[];
|
|
20
|
+
placeholder: string;
|
|
21
|
+
footers: import("./type").Footers[];
|
|
22
|
+
scrollAuto: boolean;
|
|
23
|
+
modelValue: string;
|
|
24
|
+
language: string;
|
|
25
25
|
showCodeRowNumber: boolean;
|
|
26
26
|
previewTheme: string;
|
|
27
|
-
style: string | import("vue").CSSProperties;
|
|
28
|
-
mdHeadingId: import("./type").MdHeadingId;
|
|
29
|
-
tableShape: number[];
|
|
30
|
-
noMermaid: boolean;
|
|
31
27
|
sanitize: (html: string) => string;
|
|
32
|
-
|
|
28
|
+
noMermaid: boolean;
|
|
33
29
|
noKatex: boolean;
|
|
34
30
|
codeTheme: string;
|
|
35
|
-
footers: import("./type").Footers[];
|
|
36
|
-
scrollAuto: boolean;
|
|
37
31
|
formatCopiedText: (text: string) => string;
|
|
38
32
|
codeStyleReverse: boolean;
|
|
39
33
|
codeStyleReverseList: string[];
|
|
40
34
|
noHighlight: boolean;
|
|
41
35
|
}> & Omit<Readonly<import("vue").ExtractPropTypes<{
|
|
42
|
-
modelValue: {
|
|
43
|
-
type: import("vue").PropType<string>;
|
|
44
|
-
default: string;
|
|
45
|
-
};
|
|
46
|
-
theme: {
|
|
47
|
-
type: import("vue").PropType<import("./type").Themes>;
|
|
48
|
-
default: string;
|
|
49
|
-
};
|
|
50
|
-
class: {
|
|
51
|
-
type: StringConstructor;
|
|
52
|
-
default: string;
|
|
53
|
-
};
|
|
54
36
|
onChange: {
|
|
55
37
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
56
38
|
};
|
|
@@ -72,14 +54,6 @@ declare const _default: {
|
|
|
72
54
|
type: import("vue").PropType<boolean>;
|
|
73
55
|
default: boolean;
|
|
74
56
|
};
|
|
75
|
-
previewOnly: {
|
|
76
|
-
type: import("vue").PropType<boolean>;
|
|
77
|
-
default: boolean;
|
|
78
|
-
};
|
|
79
|
-
language: {
|
|
80
|
-
type: import("vue").PropType<string>;
|
|
81
|
-
default: string;
|
|
82
|
-
};
|
|
83
57
|
toolbars: {
|
|
84
58
|
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
85
59
|
default: string[];
|
|
@@ -92,6 +66,75 @@ declare const _default: {
|
|
|
92
66
|
type: import("vue").PropType<boolean>;
|
|
93
67
|
default: boolean;
|
|
94
68
|
};
|
|
69
|
+
tabWidth: {
|
|
70
|
+
type: import("vue").PropType<number>;
|
|
71
|
+
default: number;
|
|
72
|
+
};
|
|
73
|
+
tableShape: {
|
|
74
|
+
type: import("vue").PropType<number[]>;
|
|
75
|
+
default: () => number[];
|
|
76
|
+
};
|
|
77
|
+
placeholder: {
|
|
78
|
+
type: import("vue").PropType<string>;
|
|
79
|
+
default: string;
|
|
80
|
+
};
|
|
81
|
+
defToolbars: {
|
|
82
|
+
type: import("vue").PropType<string | JSX.Element>;
|
|
83
|
+
};
|
|
84
|
+
onError: {
|
|
85
|
+
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
86
|
+
};
|
|
87
|
+
footers: {
|
|
88
|
+
type: import("vue").PropType<import("./type").Footers[]>;
|
|
89
|
+
default: import("./type").Footers[];
|
|
90
|
+
};
|
|
91
|
+
scrollAuto: {
|
|
92
|
+
type: import("vue").PropType<boolean>;
|
|
93
|
+
default: boolean;
|
|
94
|
+
};
|
|
95
|
+
defFooters: {
|
|
96
|
+
type: import("vue").PropType<string | JSX.Element>;
|
|
97
|
+
};
|
|
98
|
+
noUploadImg: {
|
|
99
|
+
type: import("vue").PropType<boolean>;
|
|
100
|
+
};
|
|
101
|
+
autoFocus: {
|
|
102
|
+
type: import("vue").PropType<boolean>;
|
|
103
|
+
};
|
|
104
|
+
disabled: {
|
|
105
|
+
type: import("vue").PropType<boolean>;
|
|
106
|
+
};
|
|
107
|
+
readOnly: {
|
|
108
|
+
type: import("vue").PropType<boolean>;
|
|
109
|
+
};
|
|
110
|
+
maxLength: {
|
|
111
|
+
type: import("vue").PropType<number>;
|
|
112
|
+
};
|
|
113
|
+
autoDetectCode: {
|
|
114
|
+
type: import("vue").PropType<boolean>;
|
|
115
|
+
};
|
|
116
|
+
onBlur: {
|
|
117
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
118
|
+
};
|
|
119
|
+
onFocus: {
|
|
120
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
121
|
+
};
|
|
122
|
+
modelValue: {
|
|
123
|
+
type: import("vue").PropType<string>;
|
|
124
|
+
default: string;
|
|
125
|
+
};
|
|
126
|
+
theme: {
|
|
127
|
+
type: import("vue").PropType<import("./type").Themes>;
|
|
128
|
+
default: string;
|
|
129
|
+
};
|
|
130
|
+
class: {
|
|
131
|
+
type: StringConstructor;
|
|
132
|
+
default: string;
|
|
133
|
+
};
|
|
134
|
+
language: {
|
|
135
|
+
type: import("vue").PropType<string>;
|
|
136
|
+
default: string;
|
|
137
|
+
};
|
|
95
138
|
onHtmlChanged: {
|
|
96
139
|
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
97
140
|
};
|
|
@@ -102,10 +145,6 @@ declare const _default: {
|
|
|
102
145
|
type: import("vue").PropType<string>;
|
|
103
146
|
default: string;
|
|
104
147
|
};
|
|
105
|
-
tabWidth: {
|
|
106
|
-
type: import("vue").PropType<number>;
|
|
107
|
-
default: number;
|
|
108
|
-
};
|
|
109
148
|
showCodeRowNumber: {
|
|
110
149
|
type: import("vue").PropType<boolean>;
|
|
111
150
|
default: boolean;
|
|
@@ -122,47 +161,22 @@ declare const _default: {
|
|
|
122
161
|
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
123
162
|
default: import("./type").MdHeadingId;
|
|
124
163
|
};
|
|
125
|
-
tableShape: {
|
|
126
|
-
type: import("vue").PropType<number[]>;
|
|
127
|
-
default: () => number[];
|
|
128
|
-
};
|
|
129
|
-
noMermaid: {
|
|
130
|
-
type: import("vue").PropType<boolean>;
|
|
131
|
-
default: boolean;
|
|
132
|
-
};
|
|
133
164
|
sanitize: {
|
|
134
165
|
type: import("vue").PropType<(html: string) => string>;
|
|
135
166
|
default: (html: string) => string;
|
|
136
167
|
};
|
|
137
|
-
|
|
138
|
-
type: import("vue").PropType<
|
|
139
|
-
default:
|
|
168
|
+
noMermaid: {
|
|
169
|
+
type: import("vue").PropType<boolean>;
|
|
170
|
+
default: boolean;
|
|
140
171
|
};
|
|
141
172
|
noKatex: {
|
|
142
173
|
type: import("vue").PropType<boolean>;
|
|
143
174
|
default: boolean;
|
|
144
175
|
};
|
|
145
|
-
defToolbars: {
|
|
146
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
147
|
-
};
|
|
148
|
-
onError: {
|
|
149
|
-
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
150
|
-
};
|
|
151
176
|
codeTheme: {
|
|
152
177
|
type: import("vue").PropType<string>;
|
|
153
178
|
default: string;
|
|
154
179
|
};
|
|
155
|
-
footers: {
|
|
156
|
-
type: import("vue").PropType<import("./type").Footers[]>;
|
|
157
|
-
default: import("./type").Footers[];
|
|
158
|
-
};
|
|
159
|
-
scrollAuto: {
|
|
160
|
-
type: import("vue").PropType<boolean>;
|
|
161
|
-
default: boolean;
|
|
162
|
-
};
|
|
163
|
-
defFooters: {
|
|
164
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
165
|
-
};
|
|
166
180
|
noIconfont: {
|
|
167
181
|
type: import("vue").PropType<boolean>;
|
|
168
182
|
};
|
|
@@ -170,9 +184,6 @@ declare const _default: {
|
|
|
170
184
|
type: import("vue").PropType<(text: string) => string>;
|
|
171
185
|
default: (text: string) => string;
|
|
172
186
|
};
|
|
173
|
-
noUploadImg: {
|
|
174
|
-
type: import("vue").PropType<boolean>;
|
|
175
|
-
};
|
|
176
187
|
codeStyleReverse: {
|
|
177
188
|
type: import("vue").PropType<boolean>;
|
|
178
189
|
default: boolean;
|
|
@@ -181,42 +192,21 @@ declare const _default: {
|
|
|
181
192
|
type: import("vue").PropType<string[]>;
|
|
182
193
|
default: string[];
|
|
183
194
|
};
|
|
184
|
-
autoFocus: {
|
|
185
|
-
type: import("vue").PropType<boolean>;
|
|
186
|
-
};
|
|
187
|
-
disabled: {
|
|
188
|
-
type: import("vue").PropType<boolean>;
|
|
189
|
-
};
|
|
190
|
-
readOnly: {
|
|
191
|
-
type: import("vue").PropType<boolean>;
|
|
192
|
-
};
|
|
193
|
-
maxLength: {
|
|
194
|
-
type: import("vue").PropType<number>;
|
|
195
|
-
};
|
|
196
|
-
autoDetectCode: {
|
|
197
|
-
type: import("vue").PropType<boolean>;
|
|
198
|
-
};
|
|
199
|
-
onBlur: {
|
|
200
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
201
|
-
};
|
|
202
|
-
onFocus: {
|
|
203
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
204
|
-
};
|
|
205
195
|
noHighlight: {
|
|
206
196
|
type: import("vue").PropType<boolean>;
|
|
207
197
|
default: boolean;
|
|
208
198
|
};
|
|
209
199
|
}>> & {
|
|
210
200
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
201
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
202
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
203
|
+
onOnError?: ((...args: any[]) => any) | undefined;
|
|
211
204
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
212
205
|
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
213
206
|
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
214
207
|
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
215
|
-
onOnError?: ((...args: any[]) => any) | undefined;
|
|
216
|
-
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
217
|
-
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
218
208
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
219
|
-
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "
|
|
209
|
+
} & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, "editorId" | "class" | "style" | "mdHeadingId" | "theme" | "pageFullscreen" | "preview" | "htmlPreview" | "toolbars" | "toolbarsExclude" | "noPrettier" | "tabWidth" | "tableShape" | "placeholder" | "footers" | "scrollAuto" | "modelValue" | "language" | "showCodeRowNumber" | "previewTheme" | "sanitize" | "noMermaid" | "noKatex" | "codeTheme" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "noHighlight">;
|
|
220
210
|
$attrs: {
|
|
221
211
|
[x: string]: unknown;
|
|
222
212
|
};
|
|
@@ -228,21 +218,9 @@ declare const _default: {
|
|
|
228
218
|
}>;
|
|
229
219
|
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
230
220
|
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
231
|
-
$emit: (event: "onChange" | "
|
|
221
|
+
$emit: (event: "onChange" | "onFocus" | "onBlur" | "onError" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "update:modelValue", ...args: any[]) => void;
|
|
232
222
|
$el: any;
|
|
233
223
|
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
234
|
-
modelValue: {
|
|
235
|
-
type: import("vue").PropType<string>;
|
|
236
|
-
default: string;
|
|
237
|
-
};
|
|
238
|
-
theme: {
|
|
239
|
-
type: import("vue").PropType<import("./type").Themes>;
|
|
240
|
-
default: string;
|
|
241
|
-
};
|
|
242
|
-
class: {
|
|
243
|
-
type: StringConstructor;
|
|
244
|
-
default: string;
|
|
245
|
-
};
|
|
246
224
|
onChange: {
|
|
247
225
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
248
226
|
};
|
|
@@ -264,14 +242,6 @@ declare const _default: {
|
|
|
264
242
|
type: import("vue").PropType<boolean>;
|
|
265
243
|
default: boolean;
|
|
266
244
|
};
|
|
267
|
-
previewOnly: {
|
|
268
|
-
type: import("vue").PropType<boolean>;
|
|
269
|
-
default: boolean;
|
|
270
|
-
};
|
|
271
|
-
language: {
|
|
272
|
-
type: import("vue").PropType<string>;
|
|
273
|
-
default: string;
|
|
274
|
-
};
|
|
275
245
|
toolbars: {
|
|
276
246
|
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
277
247
|
default: string[];
|
|
@@ -284,66 +254,24 @@ declare const _default: {
|
|
|
284
254
|
type: import("vue").PropType<boolean>;
|
|
285
255
|
default: boolean;
|
|
286
256
|
};
|
|
287
|
-
onHtmlChanged: {
|
|
288
|
-
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
289
|
-
};
|
|
290
|
-
onGetCatalog: {
|
|
291
|
-
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
292
|
-
};
|
|
293
|
-
editorId: {
|
|
294
|
-
type: import("vue").PropType<string>;
|
|
295
|
-
default: string;
|
|
296
|
-
};
|
|
297
257
|
tabWidth: {
|
|
298
258
|
type: import("vue").PropType<number>;
|
|
299
259
|
default: number;
|
|
300
260
|
};
|
|
301
|
-
showCodeRowNumber: {
|
|
302
|
-
type: import("vue").PropType<boolean>;
|
|
303
|
-
default: boolean;
|
|
304
|
-
};
|
|
305
|
-
previewTheme: {
|
|
306
|
-
type: import("vue").PropType<string>;
|
|
307
|
-
default: string;
|
|
308
|
-
};
|
|
309
|
-
style: {
|
|
310
|
-
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
311
|
-
default: () => {};
|
|
312
|
-
};
|
|
313
|
-
mdHeadingId: {
|
|
314
|
-
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
315
|
-
default: import("./type").MdHeadingId;
|
|
316
|
-
};
|
|
317
261
|
tableShape: {
|
|
318
262
|
type: import("vue").PropType<number[]>;
|
|
319
263
|
default: () => number[];
|
|
320
264
|
};
|
|
321
|
-
noMermaid: {
|
|
322
|
-
type: import("vue").PropType<boolean>;
|
|
323
|
-
default: boolean;
|
|
324
|
-
};
|
|
325
|
-
sanitize: {
|
|
326
|
-
type: import("vue").PropType<(html: string) => string>;
|
|
327
|
-
default: (html: string) => string;
|
|
328
|
-
};
|
|
329
265
|
placeholder: {
|
|
330
266
|
type: import("vue").PropType<string>;
|
|
331
267
|
default: string;
|
|
332
268
|
};
|
|
333
|
-
noKatex: {
|
|
334
|
-
type: import("vue").PropType<boolean>;
|
|
335
|
-
default: boolean;
|
|
336
|
-
};
|
|
337
269
|
defToolbars: {
|
|
338
270
|
type: import("vue").PropType<string | JSX.Element>;
|
|
339
271
|
};
|
|
340
272
|
onError: {
|
|
341
273
|
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
342
274
|
};
|
|
343
|
-
codeTheme: {
|
|
344
|
-
type: import("vue").PropType<string>;
|
|
345
|
-
default: string;
|
|
346
|
-
};
|
|
347
275
|
footers: {
|
|
348
276
|
type: import("vue").PropType<import("./type").Footers[]>;
|
|
349
277
|
default: import("./type").Footers[];
|
|
@@ -355,24 +283,9 @@ declare const _default: {
|
|
|
355
283
|
defFooters: {
|
|
356
284
|
type: import("vue").PropType<string | JSX.Element>;
|
|
357
285
|
};
|
|
358
|
-
noIconfont: {
|
|
359
|
-
type: import("vue").PropType<boolean>;
|
|
360
|
-
};
|
|
361
|
-
formatCopiedText: {
|
|
362
|
-
type: import("vue").PropType<(text: string) => string>;
|
|
363
|
-
default: (text: string) => string;
|
|
364
|
-
};
|
|
365
286
|
noUploadImg: {
|
|
366
287
|
type: import("vue").PropType<boolean>;
|
|
367
288
|
};
|
|
368
|
-
codeStyleReverse: {
|
|
369
|
-
type: import("vue").PropType<boolean>;
|
|
370
|
-
default: boolean;
|
|
371
|
-
};
|
|
372
|
-
codeStyleReverseList: {
|
|
373
|
-
type: import("vue").PropType<string[]>;
|
|
374
|
-
default: string[];
|
|
375
|
-
};
|
|
376
289
|
autoFocus: {
|
|
377
290
|
type: import("vue").PropType<boolean>;
|
|
378
291
|
};
|
|
@@ -394,46 +307,118 @@ declare const _default: {
|
|
|
394
307
|
onFocus: {
|
|
395
308
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
396
309
|
};
|
|
397
|
-
|
|
398
|
-
type: import("vue").PropType<
|
|
399
|
-
default:
|
|
310
|
+
modelValue: {
|
|
311
|
+
type: import("vue").PropType<string>;
|
|
312
|
+
default: string;
|
|
313
|
+
};
|
|
314
|
+
theme: {
|
|
315
|
+
type: import("vue").PropType<import("./type").Themes>;
|
|
316
|
+
default: string;
|
|
317
|
+
};
|
|
318
|
+
class: {
|
|
319
|
+
type: StringConstructor;
|
|
320
|
+
default: string;
|
|
321
|
+
};
|
|
322
|
+
language: {
|
|
323
|
+
type: import("vue").PropType<string>;
|
|
324
|
+
default: string;
|
|
325
|
+
};
|
|
326
|
+
onHtmlChanged: {
|
|
327
|
+
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
328
|
+
};
|
|
329
|
+
onGetCatalog: {
|
|
330
|
+
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
331
|
+
};
|
|
332
|
+
editorId: {
|
|
333
|
+
type: import("vue").PropType<string>;
|
|
334
|
+
default: string;
|
|
335
|
+
};
|
|
336
|
+
showCodeRowNumber: {
|
|
337
|
+
type: import("vue").PropType<boolean>;
|
|
338
|
+
default: boolean;
|
|
339
|
+
};
|
|
340
|
+
previewTheme: {
|
|
341
|
+
type: import("vue").PropType<string>;
|
|
342
|
+
default: string;
|
|
343
|
+
};
|
|
344
|
+
style: {
|
|
345
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
346
|
+
default: () => {};
|
|
347
|
+
};
|
|
348
|
+
mdHeadingId: {
|
|
349
|
+
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
350
|
+
default: import("./type").MdHeadingId;
|
|
351
|
+
};
|
|
352
|
+
sanitize: {
|
|
353
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
354
|
+
default: (html: string) => string;
|
|
355
|
+
};
|
|
356
|
+
noMermaid: {
|
|
357
|
+
type: import("vue").PropType<boolean>;
|
|
358
|
+
default: boolean;
|
|
359
|
+
};
|
|
360
|
+
noKatex: {
|
|
361
|
+
type: import("vue").PropType<boolean>;
|
|
362
|
+
default: boolean;
|
|
363
|
+
};
|
|
364
|
+
codeTheme: {
|
|
365
|
+
type: import("vue").PropType<string>;
|
|
366
|
+
default: string;
|
|
367
|
+
};
|
|
368
|
+
noIconfont: {
|
|
369
|
+
type: import("vue").PropType<boolean>;
|
|
370
|
+
};
|
|
371
|
+
formatCopiedText: {
|
|
372
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
373
|
+
default: (text: string) => string;
|
|
374
|
+
};
|
|
375
|
+
codeStyleReverse: {
|
|
376
|
+
type: import("vue").PropType<boolean>;
|
|
377
|
+
default: boolean;
|
|
378
|
+
};
|
|
379
|
+
codeStyleReverseList: {
|
|
380
|
+
type: import("vue").PropType<string[]>;
|
|
381
|
+
default: string[];
|
|
382
|
+
};
|
|
383
|
+
noHighlight: {
|
|
384
|
+
type: import("vue").PropType<boolean>;
|
|
385
|
+
default: boolean;
|
|
400
386
|
};
|
|
401
387
|
}>> & {
|
|
402
388
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
389
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
390
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
391
|
+
onOnError?: ((...args: any[]) => any) | undefined;
|
|
403
392
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
404
393
|
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
405
394
|
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
406
395
|
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
407
|
-
onOnError?: ((...args: any[]) => any) | undefined;
|
|
408
|
-
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
409
|
-
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
410
396
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
411
397
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, string, {
|
|
398
|
+
editorId: string;
|
|
399
|
+
class: string;
|
|
400
|
+
style: string | import("vue").CSSProperties;
|
|
401
|
+
mdHeadingId: import("./type").MdHeadingId;
|
|
402
|
+
theme: import("./type").Themes;
|
|
412
403
|
pageFullscreen: boolean;
|
|
413
404
|
preview: boolean;
|
|
414
405
|
htmlPreview: boolean;
|
|
415
|
-
modelValue: string;
|
|
416
|
-
theme: import("./type").Themes;
|
|
417
|
-
class: string;
|
|
418
|
-
previewOnly: boolean;
|
|
419
|
-
language: string;
|
|
420
406
|
toolbars: import("./type").ToolbarNames[];
|
|
421
407
|
toolbarsExclude: import("./type").ToolbarNames[];
|
|
422
408
|
noPrettier: boolean;
|
|
423
|
-
editorId: string;
|
|
424
409
|
tabWidth: number;
|
|
410
|
+
tableShape: number[];
|
|
411
|
+
placeholder: string;
|
|
412
|
+
footers: import("./type").Footers[];
|
|
413
|
+
scrollAuto: boolean;
|
|
414
|
+
modelValue: string;
|
|
415
|
+
language: string;
|
|
425
416
|
showCodeRowNumber: boolean;
|
|
426
417
|
previewTheme: string;
|
|
427
|
-
style: string | import("vue").CSSProperties;
|
|
428
|
-
mdHeadingId: import("./type").MdHeadingId;
|
|
429
|
-
tableShape: number[];
|
|
430
|
-
noMermaid: boolean;
|
|
431
418
|
sanitize: (html: string) => string;
|
|
432
|
-
|
|
419
|
+
noMermaid: boolean;
|
|
433
420
|
noKatex: boolean;
|
|
434
421
|
codeTheme: string;
|
|
435
|
-
footers: import("./type").Footers[];
|
|
436
|
-
scrollAuto: boolean;
|
|
437
422
|
formatCopiedText: (text: string) => string;
|
|
438
423
|
codeStyleReverse: boolean;
|
|
439
424
|
codeStyleReverseList: string[];
|
|
@@ -459,18 +444,6 @@ declare const _default: {
|
|
|
459
444
|
$nextTick: typeof import("vue").nextTick;
|
|
460
445
|
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
461
446
|
} & Readonly<import("vue").ExtractPropTypes<{
|
|
462
|
-
modelValue: {
|
|
463
|
-
type: import("vue").PropType<string>;
|
|
464
|
-
default: string;
|
|
465
|
-
};
|
|
466
|
-
theme: {
|
|
467
|
-
type: import("vue").PropType<import("./type").Themes>;
|
|
468
|
-
default: string;
|
|
469
|
-
};
|
|
470
|
-
class: {
|
|
471
|
-
type: StringConstructor;
|
|
472
|
-
default: string;
|
|
473
|
-
};
|
|
474
447
|
onChange: {
|
|
475
448
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
476
449
|
};
|
|
@@ -492,14 +465,6 @@ declare const _default: {
|
|
|
492
465
|
type: import("vue").PropType<boolean>;
|
|
493
466
|
default: boolean;
|
|
494
467
|
};
|
|
495
|
-
previewOnly: {
|
|
496
|
-
type: import("vue").PropType<boolean>;
|
|
497
|
-
default: boolean;
|
|
498
|
-
};
|
|
499
|
-
language: {
|
|
500
|
-
type: import("vue").PropType<string>;
|
|
501
|
-
default: string;
|
|
502
|
-
};
|
|
503
468
|
toolbars: {
|
|
504
469
|
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
505
470
|
default: string[];
|
|
@@ -512,6 +477,75 @@ declare const _default: {
|
|
|
512
477
|
type: import("vue").PropType<boolean>;
|
|
513
478
|
default: boolean;
|
|
514
479
|
};
|
|
480
|
+
tabWidth: {
|
|
481
|
+
type: import("vue").PropType<number>;
|
|
482
|
+
default: number;
|
|
483
|
+
};
|
|
484
|
+
tableShape: {
|
|
485
|
+
type: import("vue").PropType<number[]>;
|
|
486
|
+
default: () => number[];
|
|
487
|
+
};
|
|
488
|
+
placeholder: {
|
|
489
|
+
type: import("vue").PropType<string>;
|
|
490
|
+
default: string;
|
|
491
|
+
};
|
|
492
|
+
defToolbars: {
|
|
493
|
+
type: import("vue").PropType<string | JSX.Element>;
|
|
494
|
+
};
|
|
495
|
+
onError: {
|
|
496
|
+
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
497
|
+
};
|
|
498
|
+
footers: {
|
|
499
|
+
type: import("vue").PropType<import("./type").Footers[]>;
|
|
500
|
+
default: import("./type").Footers[];
|
|
501
|
+
};
|
|
502
|
+
scrollAuto: {
|
|
503
|
+
type: import("vue").PropType<boolean>;
|
|
504
|
+
default: boolean;
|
|
505
|
+
};
|
|
506
|
+
defFooters: {
|
|
507
|
+
type: import("vue").PropType<string | JSX.Element>;
|
|
508
|
+
};
|
|
509
|
+
noUploadImg: {
|
|
510
|
+
type: import("vue").PropType<boolean>;
|
|
511
|
+
};
|
|
512
|
+
autoFocus: {
|
|
513
|
+
type: import("vue").PropType<boolean>;
|
|
514
|
+
};
|
|
515
|
+
disabled: {
|
|
516
|
+
type: import("vue").PropType<boolean>;
|
|
517
|
+
};
|
|
518
|
+
readOnly: {
|
|
519
|
+
type: import("vue").PropType<boolean>;
|
|
520
|
+
};
|
|
521
|
+
maxLength: {
|
|
522
|
+
type: import("vue").PropType<number>;
|
|
523
|
+
};
|
|
524
|
+
autoDetectCode: {
|
|
525
|
+
type: import("vue").PropType<boolean>;
|
|
526
|
+
};
|
|
527
|
+
onBlur: {
|
|
528
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
529
|
+
};
|
|
530
|
+
onFocus: {
|
|
531
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
532
|
+
};
|
|
533
|
+
modelValue: {
|
|
534
|
+
type: import("vue").PropType<string>;
|
|
535
|
+
default: string;
|
|
536
|
+
};
|
|
537
|
+
theme: {
|
|
538
|
+
type: import("vue").PropType<import("./type").Themes>;
|
|
539
|
+
default: string;
|
|
540
|
+
};
|
|
541
|
+
class: {
|
|
542
|
+
type: StringConstructor;
|
|
543
|
+
default: string;
|
|
544
|
+
};
|
|
545
|
+
language: {
|
|
546
|
+
type: import("vue").PropType<string>;
|
|
547
|
+
default: string;
|
|
548
|
+
};
|
|
515
549
|
onHtmlChanged: {
|
|
516
550
|
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
517
551
|
};
|
|
@@ -522,10 +556,6 @@ declare const _default: {
|
|
|
522
556
|
type: import("vue").PropType<string>;
|
|
523
557
|
default: string;
|
|
524
558
|
};
|
|
525
|
-
tabWidth: {
|
|
526
|
-
type: import("vue").PropType<number>;
|
|
527
|
-
default: number;
|
|
528
|
-
};
|
|
529
559
|
showCodeRowNumber: {
|
|
530
560
|
type: import("vue").PropType<boolean>;
|
|
531
561
|
default: boolean;
|
|
@@ -542,47 +572,22 @@ declare const _default: {
|
|
|
542
572
|
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
543
573
|
default: import("./type").MdHeadingId;
|
|
544
574
|
};
|
|
545
|
-
tableShape: {
|
|
546
|
-
type: import("vue").PropType<number[]>;
|
|
547
|
-
default: () => number[];
|
|
548
|
-
};
|
|
549
|
-
noMermaid: {
|
|
550
|
-
type: import("vue").PropType<boolean>;
|
|
551
|
-
default: boolean;
|
|
552
|
-
};
|
|
553
575
|
sanitize: {
|
|
554
576
|
type: import("vue").PropType<(html: string) => string>;
|
|
555
577
|
default: (html: string) => string;
|
|
556
578
|
};
|
|
557
|
-
|
|
558
|
-
type: import("vue").PropType<
|
|
559
|
-
default:
|
|
579
|
+
noMermaid: {
|
|
580
|
+
type: import("vue").PropType<boolean>;
|
|
581
|
+
default: boolean;
|
|
560
582
|
};
|
|
561
583
|
noKatex: {
|
|
562
584
|
type: import("vue").PropType<boolean>;
|
|
563
585
|
default: boolean;
|
|
564
586
|
};
|
|
565
|
-
defToolbars: {
|
|
566
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
567
|
-
};
|
|
568
|
-
onError: {
|
|
569
|
-
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
570
|
-
};
|
|
571
587
|
codeTheme: {
|
|
572
588
|
type: import("vue").PropType<string>;
|
|
573
589
|
default: string;
|
|
574
590
|
};
|
|
575
|
-
footers: {
|
|
576
|
-
type: import("vue").PropType<import("./type").Footers[]>;
|
|
577
|
-
default: import("./type").Footers[];
|
|
578
|
-
};
|
|
579
|
-
scrollAuto: {
|
|
580
|
-
type: import("vue").PropType<boolean>;
|
|
581
|
-
default: boolean;
|
|
582
|
-
};
|
|
583
|
-
defFooters: {
|
|
584
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
585
|
-
};
|
|
586
591
|
noIconfont: {
|
|
587
592
|
type: import("vue").PropType<boolean>;
|
|
588
593
|
};
|
|
@@ -590,9 +595,6 @@ declare const _default: {
|
|
|
590
595
|
type: import("vue").PropType<(text: string) => string>;
|
|
591
596
|
default: (text: string) => string;
|
|
592
597
|
};
|
|
593
|
-
noUploadImg: {
|
|
594
|
-
type: import("vue").PropType<boolean>;
|
|
595
|
-
};
|
|
596
598
|
codeStyleReverse: {
|
|
597
599
|
type: import("vue").PropType<boolean>;
|
|
598
600
|
default: boolean;
|
|
@@ -601,58 +603,25 @@ declare const _default: {
|
|
|
601
603
|
type: import("vue").PropType<string[]>;
|
|
602
604
|
default: string[];
|
|
603
605
|
};
|
|
604
|
-
autoFocus: {
|
|
605
|
-
type: import("vue").PropType<boolean>;
|
|
606
|
-
};
|
|
607
|
-
disabled: {
|
|
608
|
-
type: import("vue").PropType<boolean>;
|
|
609
|
-
};
|
|
610
|
-
readOnly: {
|
|
611
|
-
type: import("vue").PropType<boolean>;
|
|
612
|
-
};
|
|
613
|
-
maxLength: {
|
|
614
|
-
type: import("vue").PropType<number>;
|
|
615
|
-
};
|
|
616
|
-
autoDetectCode: {
|
|
617
|
-
type: import("vue").PropType<boolean>;
|
|
618
|
-
};
|
|
619
|
-
onBlur: {
|
|
620
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
621
|
-
};
|
|
622
|
-
onFocus: {
|
|
623
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
624
|
-
};
|
|
625
606
|
noHighlight: {
|
|
626
607
|
type: import("vue").PropType<boolean>;
|
|
627
608
|
default: boolean;
|
|
628
609
|
};
|
|
629
610
|
}>> & {
|
|
630
611
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
612
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
613
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
614
|
+
onOnError?: ((...args: any[]) => any) | undefined;
|
|
631
615
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
632
616
|
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
633
617
|
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
634
618
|
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
635
|
-
onOnError?: ((...args: any[]) => any) | undefined;
|
|
636
|
-
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
637
|
-
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
638
619
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
639
620
|
} & import("vue").ShallowUnwrapRef<() => JSX.Element> & {} & import("vue").ComponentCustomProperties & {};
|
|
640
621
|
__isFragment?: undefined;
|
|
641
622
|
__isTeleport?: undefined;
|
|
642
623
|
__isSuspense?: undefined;
|
|
643
624
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
644
|
-
modelValue: {
|
|
645
|
-
type: import("vue").PropType<string>;
|
|
646
|
-
default: string;
|
|
647
|
-
};
|
|
648
|
-
theme: {
|
|
649
|
-
type: import("vue").PropType<import("./type").Themes>;
|
|
650
|
-
default: string;
|
|
651
|
-
};
|
|
652
|
-
class: {
|
|
653
|
-
type: StringConstructor;
|
|
654
|
-
default: string;
|
|
655
|
-
};
|
|
656
625
|
onChange: {
|
|
657
626
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
658
627
|
};
|
|
@@ -674,14 +643,6 @@ declare const _default: {
|
|
|
674
643
|
type: import("vue").PropType<boolean>;
|
|
675
644
|
default: boolean;
|
|
676
645
|
};
|
|
677
|
-
previewOnly: {
|
|
678
|
-
type: import("vue").PropType<boolean>;
|
|
679
|
-
default: boolean;
|
|
680
|
-
};
|
|
681
|
-
language: {
|
|
682
|
-
type: import("vue").PropType<string>;
|
|
683
|
-
default: string;
|
|
684
|
-
};
|
|
685
646
|
toolbars: {
|
|
686
647
|
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
687
648
|
default: string[];
|
|
@@ -694,6 +655,75 @@ declare const _default: {
|
|
|
694
655
|
type: import("vue").PropType<boolean>;
|
|
695
656
|
default: boolean;
|
|
696
657
|
};
|
|
658
|
+
tabWidth: {
|
|
659
|
+
type: import("vue").PropType<number>;
|
|
660
|
+
default: number;
|
|
661
|
+
};
|
|
662
|
+
tableShape: {
|
|
663
|
+
type: import("vue").PropType<number[]>;
|
|
664
|
+
default: () => number[];
|
|
665
|
+
};
|
|
666
|
+
placeholder: {
|
|
667
|
+
type: import("vue").PropType<string>;
|
|
668
|
+
default: string;
|
|
669
|
+
};
|
|
670
|
+
defToolbars: {
|
|
671
|
+
type: import("vue").PropType<string | JSX.Element>;
|
|
672
|
+
};
|
|
673
|
+
onError: {
|
|
674
|
+
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
675
|
+
};
|
|
676
|
+
footers: {
|
|
677
|
+
type: import("vue").PropType<import("./type").Footers[]>;
|
|
678
|
+
default: import("./type").Footers[];
|
|
679
|
+
};
|
|
680
|
+
scrollAuto: {
|
|
681
|
+
type: import("vue").PropType<boolean>;
|
|
682
|
+
default: boolean;
|
|
683
|
+
};
|
|
684
|
+
defFooters: {
|
|
685
|
+
type: import("vue").PropType<string | JSX.Element>;
|
|
686
|
+
};
|
|
687
|
+
noUploadImg: {
|
|
688
|
+
type: import("vue").PropType<boolean>;
|
|
689
|
+
};
|
|
690
|
+
autoFocus: {
|
|
691
|
+
type: import("vue").PropType<boolean>;
|
|
692
|
+
};
|
|
693
|
+
disabled: {
|
|
694
|
+
type: import("vue").PropType<boolean>;
|
|
695
|
+
};
|
|
696
|
+
readOnly: {
|
|
697
|
+
type: import("vue").PropType<boolean>;
|
|
698
|
+
};
|
|
699
|
+
maxLength: {
|
|
700
|
+
type: import("vue").PropType<number>;
|
|
701
|
+
};
|
|
702
|
+
autoDetectCode: {
|
|
703
|
+
type: import("vue").PropType<boolean>;
|
|
704
|
+
};
|
|
705
|
+
onBlur: {
|
|
706
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
707
|
+
};
|
|
708
|
+
onFocus: {
|
|
709
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
710
|
+
};
|
|
711
|
+
modelValue: {
|
|
712
|
+
type: import("vue").PropType<string>;
|
|
713
|
+
default: string;
|
|
714
|
+
};
|
|
715
|
+
theme: {
|
|
716
|
+
type: import("vue").PropType<import("./type").Themes>;
|
|
717
|
+
default: string;
|
|
718
|
+
};
|
|
719
|
+
class: {
|
|
720
|
+
type: StringConstructor;
|
|
721
|
+
default: string;
|
|
722
|
+
};
|
|
723
|
+
language: {
|
|
724
|
+
type: import("vue").PropType<string>;
|
|
725
|
+
default: string;
|
|
726
|
+
};
|
|
697
727
|
onHtmlChanged: {
|
|
698
728
|
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
699
729
|
};
|
|
@@ -704,10 +734,6 @@ declare const _default: {
|
|
|
704
734
|
type: import("vue").PropType<string>;
|
|
705
735
|
default: string;
|
|
706
736
|
};
|
|
707
|
-
tabWidth: {
|
|
708
|
-
type: import("vue").PropType<number>;
|
|
709
|
-
default: number;
|
|
710
|
-
};
|
|
711
737
|
showCodeRowNumber: {
|
|
712
738
|
type: import("vue").PropType<boolean>;
|
|
713
739
|
default: boolean;
|
|
@@ -724,47 +750,22 @@ declare const _default: {
|
|
|
724
750
|
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
725
751
|
default: import("./type").MdHeadingId;
|
|
726
752
|
};
|
|
727
|
-
tableShape: {
|
|
728
|
-
type: import("vue").PropType<number[]>;
|
|
729
|
-
default: () => number[];
|
|
730
|
-
};
|
|
731
|
-
noMermaid: {
|
|
732
|
-
type: import("vue").PropType<boolean>;
|
|
733
|
-
default: boolean;
|
|
734
|
-
};
|
|
735
753
|
sanitize: {
|
|
736
754
|
type: import("vue").PropType<(html: string) => string>;
|
|
737
755
|
default: (html: string) => string;
|
|
738
756
|
};
|
|
739
|
-
|
|
740
|
-
type: import("vue").PropType<
|
|
741
|
-
default:
|
|
757
|
+
noMermaid: {
|
|
758
|
+
type: import("vue").PropType<boolean>;
|
|
759
|
+
default: boolean;
|
|
742
760
|
};
|
|
743
761
|
noKatex: {
|
|
744
762
|
type: import("vue").PropType<boolean>;
|
|
745
763
|
default: boolean;
|
|
746
764
|
};
|
|
747
|
-
defToolbars: {
|
|
748
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
749
|
-
};
|
|
750
|
-
onError: {
|
|
751
|
-
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
752
|
-
};
|
|
753
765
|
codeTheme: {
|
|
754
766
|
type: import("vue").PropType<string>;
|
|
755
767
|
default: string;
|
|
756
768
|
};
|
|
757
|
-
footers: {
|
|
758
|
-
type: import("vue").PropType<import("./type").Footers[]>;
|
|
759
|
-
default: import("./type").Footers[];
|
|
760
|
-
};
|
|
761
|
-
scrollAuto: {
|
|
762
|
-
type: import("vue").PropType<boolean>;
|
|
763
|
-
default: boolean;
|
|
764
|
-
};
|
|
765
|
-
defFooters: {
|
|
766
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
767
|
-
};
|
|
768
769
|
noIconfont: {
|
|
769
770
|
type: import("vue").PropType<boolean>;
|
|
770
771
|
};
|
|
@@ -772,9 +773,6 @@ declare const _default: {
|
|
|
772
773
|
type: import("vue").PropType<(text: string) => string>;
|
|
773
774
|
default: (text: string) => string;
|
|
774
775
|
};
|
|
775
|
-
noUploadImg: {
|
|
776
|
-
type: import("vue").PropType<boolean>;
|
|
777
|
-
};
|
|
778
776
|
codeStyleReverse: {
|
|
779
777
|
type: import("vue").PropType<boolean>;
|
|
780
778
|
default: boolean;
|
|
@@ -783,93 +781,50 @@ declare const _default: {
|
|
|
783
781
|
type: import("vue").PropType<string[]>;
|
|
784
782
|
default: string[];
|
|
785
783
|
};
|
|
786
|
-
autoFocus: {
|
|
787
|
-
type: import("vue").PropType<boolean>;
|
|
788
|
-
};
|
|
789
|
-
disabled: {
|
|
790
|
-
type: import("vue").PropType<boolean>;
|
|
791
|
-
};
|
|
792
|
-
readOnly: {
|
|
793
|
-
type: import("vue").PropType<boolean>;
|
|
794
|
-
};
|
|
795
|
-
maxLength: {
|
|
796
|
-
type: import("vue").PropType<number>;
|
|
797
|
-
};
|
|
798
|
-
autoDetectCode: {
|
|
799
|
-
type: import("vue").PropType<boolean>;
|
|
800
|
-
};
|
|
801
|
-
onBlur: {
|
|
802
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
803
|
-
};
|
|
804
|
-
onFocus: {
|
|
805
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
806
|
-
};
|
|
807
784
|
noHighlight: {
|
|
808
785
|
type: import("vue").PropType<boolean>;
|
|
809
786
|
default: boolean;
|
|
810
787
|
};
|
|
811
788
|
}>> & {
|
|
812
789
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
790
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
791
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
792
|
+
onOnError?: ((...args: any[]) => any) | undefined;
|
|
813
793
|
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
814
794
|
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
815
795
|
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
816
796
|
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
817
|
-
onOnError?: ((...args: any[]) => any) | undefined;
|
|
818
|
-
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
819
|
-
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
820
797
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
821
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, "onChange" | "
|
|
798
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, "onChange" | "onFocus" | "onBlur" | "onError" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "update:modelValue", {
|
|
799
|
+
editorId: string;
|
|
800
|
+
class: string;
|
|
801
|
+
style: string | import("vue").CSSProperties;
|
|
802
|
+
mdHeadingId: import("./type").MdHeadingId;
|
|
803
|
+
theme: import("./type").Themes;
|
|
822
804
|
pageFullscreen: boolean;
|
|
823
805
|
preview: boolean;
|
|
824
806
|
htmlPreview: boolean;
|
|
825
|
-
modelValue: string;
|
|
826
|
-
theme: import("./type").Themes;
|
|
827
|
-
class: string;
|
|
828
|
-
previewOnly: boolean;
|
|
829
|
-
language: string;
|
|
830
807
|
toolbars: import("./type").ToolbarNames[];
|
|
831
808
|
toolbarsExclude: import("./type").ToolbarNames[];
|
|
832
809
|
noPrettier: boolean;
|
|
833
|
-
editorId: string;
|
|
834
810
|
tabWidth: number;
|
|
811
|
+
tableShape: number[];
|
|
812
|
+
placeholder: string;
|
|
813
|
+
footers: import("./type").Footers[];
|
|
814
|
+
scrollAuto: boolean;
|
|
815
|
+
modelValue: string;
|
|
816
|
+
language: string;
|
|
835
817
|
showCodeRowNumber: boolean;
|
|
836
818
|
previewTheme: string;
|
|
837
|
-
style: string | import("vue").CSSProperties;
|
|
838
|
-
mdHeadingId: import("./type").MdHeadingId;
|
|
839
|
-
tableShape: number[];
|
|
840
|
-
noMermaid: boolean;
|
|
841
819
|
sanitize: (html: string) => string;
|
|
842
|
-
|
|
820
|
+
noMermaid: boolean;
|
|
843
821
|
noKatex: boolean;
|
|
844
822
|
codeTheme: string;
|
|
845
|
-
footers: import("./type").Footers[];
|
|
846
|
-
scrollAuto: boolean;
|
|
847
823
|
formatCopiedText: (text: string) => string;
|
|
848
824
|
codeStyleReverse: boolean;
|
|
849
825
|
codeStyleReverseList: string[];
|
|
850
826
|
noHighlight: boolean;
|
|
851
827
|
}, {}, string> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
852
|
-
/**
|
|
853
|
-
* 默认工具栏组件
|
|
854
|
-
*/
|
|
855
|
-
readonly NormalToolbar: typeof NormalToolbar;
|
|
856
|
-
/**
|
|
857
|
-
* 下拉菜单工具栏组件
|
|
858
|
-
*/
|
|
859
|
-
readonly DropdownToolbar: typeof DropdownToolbar;
|
|
860
|
-
/**
|
|
861
|
-
* 目录组件
|
|
862
|
-
*/
|
|
863
|
-
readonly MdCatalog: typeof MdCatalog;
|
|
864
|
-
/**
|
|
865
|
-
* 弹窗工具栏组件
|
|
866
|
-
*/
|
|
867
|
-
readonly ModalToolbar: typeof ModalToolbar;
|
|
868
|
-
/**
|
|
869
|
-
* 配置编辑器全局内容
|
|
870
|
-
*/
|
|
871
|
-
readonly config: typeof config;
|
|
872
828
|
install: (app: App) => App;
|
|
873
829
|
};
|
|
874
830
|
export default _default;
|
|
875
|
-
export * from './type';
|