md-editor-v3 4.13.2 → 4.13.3-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/lib/cjs/MdEditor.cjs +17 -4
- package/lib/cjs/chunks/index2.cjs +10 -2
- package/lib/es/MdEditor.mjs +17 -4
- package/lib/es/chunks/index2.mjs +10 -2
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +17 -9
- package/lib/types/DropdownToolbar/index.d.ts +112 -126
- package/lib/types/MdCatalog/CatalogLink.d.ts +2 -2
- package/lib/types/MdCatalog/MdCatalog.d.ts +2 -2
- package/lib/types/MdCatalog/index.d.ts +114 -144
- package/lib/types/MdEditor/Editor.d.ts +129 -121
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -2
- package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +13 -7
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -2
- package/lib/types/MdEditor/components/Icon/index.d.ts +4 -2
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -2
- package/lib/types/MdEditor/components/Modal/index.d.ts +133 -163
- package/lib/types/MdEditor/components/Popper/index.d.ts +2 -2
- package/lib/types/MdEditor/index.d.ts +643 -657
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +31 -31
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/index.d.ts +72 -72
- package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +2 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +4 -4
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +24 -24
- package/lib/types/MdEditor/props.d.ts +7 -3
- package/lib/types/MdEditor/type.d.ts +3 -3
- package/lib/types/MdEditor/utils/dom.d.ts +1 -1
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +2 -11
- package/lib/types/MdPreview/MdPreview.d.ts +52 -52
- package/lib/types/MdPreview/index.d.ts +310 -340
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +9 -5
- package/lib/types/ModalToolbar/index.d.ts +168 -190
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +9 -5
- package/lib/types/NormalToolbar/index.d.ts +80 -102
- package/lib/umd/index.js +48 -42
- package/package.json +18 -18
|
@@ -1,656 +1,127 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
2
|
|
|
3
3
|
declare const _default: {
|
|
4
|
-
new (...args: any[]): {
|
|
5
|
-
$: import('vue').ComponentInternalInstance;
|
|
6
|
-
$data: {};
|
|
7
|
-
$props: Partial<{
|
|
8
|
-
preview: boolean;
|
|
9
|
-
pageFullscreen: boolean;
|
|
10
|
-
htmlPreview: boolean;
|
|
11
|
-
class: string;
|
|
12
|
-
style: string | import('vue').CSSProperties;
|
|
13
|
-
language: string;
|
|
14
|
-
toolbars: import('./type').ToolbarNames[];
|
|
15
|
-
toolbarsExclude: import('./type').ToolbarNames[];
|
|
16
|
-
noPrettier: boolean;
|
|
17
|
-
tabWidth: number;
|
|
18
|
-
tableShape: number[];
|
|
19
|
-
placeholder: string;
|
|
20
|
-
footers: import('./type').Footers[];
|
|
21
|
-
scrollAuto: boolean;
|
|
22
|
-
showToolbarName: boolean;
|
|
23
|
-
inputBoxWitdh: string;
|
|
24
|
-
transformImgUrl: (t: string) => string | Promise<string>;
|
|
25
|
-
modelValue: string;
|
|
26
|
-
theme: import('./type').Themes;
|
|
27
|
-
editorId: string;
|
|
28
|
-
showCodeRowNumber: boolean;
|
|
29
|
-
previewTheme: string;
|
|
30
|
-
mdHeadingId: import('./type').MdHeadingId;
|
|
31
|
-
sanitize: (html: string) => string;
|
|
32
|
-
noMermaid: boolean;
|
|
33
|
-
noKatex: boolean;
|
|
34
|
-
codeTheme: string;
|
|
35
|
-
formatCopiedText: (text: string) => string;
|
|
36
|
-
codeStyleReverse: boolean;
|
|
37
|
-
codeStyleReverseList: string[];
|
|
38
|
-
noHighlight: boolean;
|
|
39
|
-
noImgZoomIn: boolean;
|
|
40
|
-
customIcon: import('./type').CustomIcon;
|
|
41
|
-
sanitizeMermaid: (h: string) => Promise<string>;
|
|
42
|
-
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
43
|
-
onChange: {
|
|
44
|
-
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
45
|
-
};
|
|
46
|
-
onSave: {
|
|
47
|
-
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
48
|
-
};
|
|
49
|
-
onUploadImg: {
|
|
50
|
-
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
51
|
-
};
|
|
52
|
-
pageFullscreen: {
|
|
53
|
-
type: import("vue").PropType<boolean>;
|
|
54
|
-
default: boolean;
|
|
55
|
-
};
|
|
56
|
-
preview: {
|
|
57
|
-
type: import("vue").PropType<boolean>;
|
|
58
|
-
default: boolean;
|
|
59
|
-
};
|
|
60
|
-
htmlPreview: {
|
|
61
|
-
type: import("vue").PropType<boolean>;
|
|
62
|
-
default: boolean;
|
|
63
|
-
};
|
|
64
|
-
toolbars: {
|
|
65
|
-
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
66
|
-
default: string[];
|
|
67
|
-
};
|
|
68
|
-
toolbarsExclude: {
|
|
69
|
-
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
70
|
-
default: never[];
|
|
71
|
-
};
|
|
72
|
-
noPrettier: {
|
|
73
|
-
type: import("vue").PropType<boolean>;
|
|
74
|
-
default: boolean;
|
|
75
|
-
};
|
|
76
|
-
tabWidth: {
|
|
77
|
-
type: import("vue").PropType<number>;
|
|
78
|
-
default: number;
|
|
79
|
-
};
|
|
80
|
-
tableShape: {
|
|
81
|
-
type: import("vue").PropType<number[]>;
|
|
82
|
-
default: () => number[];
|
|
83
|
-
};
|
|
84
|
-
placeholder: {
|
|
85
|
-
type: import("vue").PropType<string>;
|
|
86
|
-
default: string;
|
|
87
|
-
};
|
|
88
|
-
defToolbars: {
|
|
89
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
90
|
-
};
|
|
91
|
-
onError: {
|
|
92
|
-
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
93
|
-
};
|
|
94
|
-
footers: {
|
|
95
|
-
type: import("vue").PropType<import("./type").Footers[]>;
|
|
96
|
-
default: import("./type").Footers[];
|
|
97
|
-
};
|
|
98
|
-
scrollAuto: {
|
|
99
|
-
type: import("vue").PropType<boolean>;
|
|
100
|
-
default: boolean;
|
|
101
|
-
};
|
|
102
|
-
defFooters: {
|
|
103
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
104
|
-
};
|
|
105
|
-
noUploadImg: {
|
|
106
|
-
type: import("vue").PropType<boolean>;
|
|
107
|
-
};
|
|
108
|
-
autoFocus: {
|
|
109
|
-
type: import("vue").PropType<boolean>;
|
|
110
|
-
};
|
|
111
|
-
disabled: {
|
|
112
|
-
type: import("vue").PropType<boolean>;
|
|
113
|
-
};
|
|
114
|
-
readOnly: {
|
|
115
|
-
type: import("vue").PropType<boolean>;
|
|
116
|
-
};
|
|
117
|
-
maxLength: {
|
|
118
|
-
type: import("vue").PropType<number>;
|
|
119
|
-
};
|
|
120
|
-
autoDetectCode: {
|
|
121
|
-
type: import("vue").PropType<boolean>;
|
|
122
|
-
};
|
|
123
|
-
onBlur: {
|
|
124
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
125
|
-
};
|
|
126
|
-
onFocus: {
|
|
127
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
128
|
-
};
|
|
129
|
-
completions: {
|
|
130
|
-
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
131
|
-
};
|
|
132
|
-
showToolbarName: {
|
|
133
|
-
type: import("vue").PropType<boolean>;
|
|
134
|
-
default: boolean;
|
|
135
|
-
};
|
|
136
|
-
onInput: {
|
|
137
|
-
type: import("vue").PropType<(event: Event) => void>;
|
|
138
|
-
};
|
|
139
|
-
onDrop: {
|
|
140
|
-
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
141
|
-
};
|
|
142
|
-
inputBoxWitdh: {
|
|
143
|
-
type: import("vue").PropType<string>;
|
|
144
|
-
default: string;
|
|
145
|
-
};
|
|
146
|
-
onInputBoxWitdhChange: {
|
|
147
|
-
type: import("vue").PropType<(width: string) => void>;
|
|
148
|
-
};
|
|
149
|
-
transformImgUrl: {
|
|
150
|
-
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
151
|
-
default: (t: string) => string;
|
|
152
|
-
};
|
|
153
|
-
modelValue: {
|
|
154
|
-
type: import("vue").PropType<string>;
|
|
155
|
-
default: string;
|
|
156
|
-
};
|
|
157
|
-
theme: {
|
|
158
|
-
type: import("vue").PropType<import("./type").Themes>;
|
|
159
|
-
default: string;
|
|
160
|
-
};
|
|
161
|
-
class: {
|
|
162
|
-
type: StringConstructor;
|
|
163
|
-
default: string;
|
|
164
|
-
};
|
|
165
|
-
language: {
|
|
166
|
-
type: import("vue").PropType<string>;
|
|
167
|
-
default: string;
|
|
168
|
-
};
|
|
169
|
-
onHtmlChanged: {
|
|
170
|
-
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
171
|
-
};
|
|
172
|
-
onGetCatalog: {
|
|
173
|
-
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
174
|
-
};
|
|
175
|
-
editorId: {
|
|
176
|
-
type: import("vue").PropType<string>;
|
|
177
|
-
default: () => string;
|
|
178
|
-
};
|
|
179
|
-
showCodeRowNumber: {
|
|
180
|
-
type: import("vue").PropType<boolean>;
|
|
181
|
-
default: boolean;
|
|
182
|
-
};
|
|
183
|
-
previewTheme: {
|
|
184
|
-
type: import("vue").PropType<string>;
|
|
185
|
-
default: string;
|
|
186
|
-
};
|
|
187
|
-
style: {
|
|
188
|
-
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
189
|
-
default: () => {};
|
|
190
|
-
};
|
|
191
|
-
mdHeadingId: {
|
|
192
|
-
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
193
|
-
default: import("./type").MdHeadingId;
|
|
194
|
-
};
|
|
195
|
-
sanitize: {
|
|
196
|
-
type: import("vue").PropType<(html: string) => string>;
|
|
197
|
-
default: (html: string) => string;
|
|
198
|
-
};
|
|
199
|
-
noMermaid: {
|
|
200
|
-
type: import("vue").PropType<boolean>;
|
|
201
|
-
default: boolean;
|
|
202
|
-
};
|
|
203
|
-
noKatex: {
|
|
204
|
-
type: import("vue").PropType<boolean>;
|
|
205
|
-
default: boolean;
|
|
206
|
-
};
|
|
207
|
-
codeTheme: {
|
|
208
|
-
type: import("vue").PropType<string>;
|
|
209
|
-
default: string;
|
|
210
|
-
};
|
|
211
|
-
noIconfont: {
|
|
212
|
-
type: import("vue").PropType<boolean>;
|
|
213
|
-
};
|
|
214
|
-
formatCopiedText: {
|
|
215
|
-
type: import("vue").PropType<(text: string) => string>;
|
|
216
|
-
default: (text: string) => string;
|
|
217
|
-
};
|
|
218
|
-
codeStyleReverse: {
|
|
219
|
-
type: import("vue").PropType<boolean>;
|
|
220
|
-
default: boolean;
|
|
221
|
-
};
|
|
222
|
-
codeStyleReverseList: {
|
|
223
|
-
type: import("vue").PropType<string[]>;
|
|
224
|
-
default: string[];
|
|
225
|
-
};
|
|
226
|
-
noHighlight: {
|
|
227
|
-
type: import("vue").PropType<boolean>;
|
|
228
|
-
default: boolean;
|
|
229
|
-
};
|
|
230
|
-
noImgZoomIn: {
|
|
231
|
-
type: import("vue").PropType<boolean>;
|
|
232
|
-
default: boolean;
|
|
233
|
-
};
|
|
234
|
-
customIcon: {
|
|
235
|
-
type: import("vue").PropType<import("./type").CustomIcon>;
|
|
236
|
-
default: {};
|
|
237
|
-
};
|
|
238
|
-
sanitizeMermaid: {
|
|
239
|
-
type: import("vue").PropType<(h: string) => Promise<string>>;
|
|
240
|
-
default: (h: string) => Promise<string>;
|
|
241
|
-
};
|
|
242
|
-
}>> & {
|
|
243
|
-
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
244
|
-
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
245
|
-
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
246
|
-
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
247
|
-
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
248
|
-
onOnError?: ((...args: any[]) => any) | undefined;
|
|
249
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
250
|
-
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
251
|
-
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
252
|
-
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
253
|
-
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
254
|
-
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
255
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "preview" | "pageFullscreen" | "htmlPreview" | "class" | "style" | "language" | "toolbars" | "toolbarsExclude" | "noPrettier" | "tabWidth" | "tableShape" | "placeholder" | "footers" | "scrollAuto" | "showToolbarName" | "inputBoxWitdh" | "transformImgUrl" | "modelValue" | "theme" | "editorId" | "showCodeRowNumber" | "previewTheme" | "mdHeadingId" | "sanitize" | "noMermaid" | "noKatex" | "codeTheme" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "noHighlight" | "noImgZoomIn" | "customIcon" | "sanitizeMermaid">;
|
|
256
|
-
$attrs: {
|
|
257
|
-
[x: string]: unknown;
|
|
258
|
-
};
|
|
259
|
-
$refs: {
|
|
260
|
-
[x: string]: unknown;
|
|
261
|
-
};
|
|
262
|
-
$slots: Readonly<{
|
|
263
|
-
[name: string]: import('vue').Slot | undefined;
|
|
264
|
-
}>;
|
|
265
|
-
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
266
|
-
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
267
|
-
$emit: (event: "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", ...args: any[]) => void;
|
|
268
|
-
$el: any;
|
|
269
|
-
$options: import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
270
|
-
onChange: {
|
|
271
|
-
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
272
|
-
};
|
|
273
|
-
onSave: {
|
|
274
|
-
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
275
|
-
};
|
|
276
|
-
onUploadImg: {
|
|
277
|
-
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
278
|
-
};
|
|
279
|
-
pageFullscreen: {
|
|
280
|
-
type: import("vue").PropType<boolean>;
|
|
281
|
-
default: boolean;
|
|
282
|
-
};
|
|
283
|
-
preview: {
|
|
284
|
-
type: import("vue").PropType<boolean>;
|
|
285
|
-
default: boolean;
|
|
286
|
-
};
|
|
287
|
-
htmlPreview: {
|
|
288
|
-
type: import("vue").PropType<boolean>;
|
|
289
|
-
default: boolean;
|
|
290
|
-
};
|
|
291
|
-
toolbars: {
|
|
292
|
-
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
293
|
-
default: string[];
|
|
294
|
-
};
|
|
295
|
-
toolbarsExclude: {
|
|
296
|
-
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
297
|
-
default: never[];
|
|
298
|
-
};
|
|
299
|
-
noPrettier: {
|
|
300
|
-
type: import("vue").PropType<boolean>;
|
|
301
|
-
default: boolean;
|
|
302
|
-
};
|
|
303
|
-
tabWidth: {
|
|
304
|
-
type: import("vue").PropType<number>;
|
|
305
|
-
default: number;
|
|
306
|
-
};
|
|
307
|
-
tableShape: {
|
|
308
|
-
type: import("vue").PropType<number[]>;
|
|
309
|
-
default: () => number[];
|
|
310
|
-
};
|
|
311
|
-
placeholder: {
|
|
312
|
-
type: import("vue").PropType<string>;
|
|
313
|
-
default: string;
|
|
314
|
-
};
|
|
315
|
-
defToolbars: {
|
|
316
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
317
|
-
};
|
|
318
|
-
onError: {
|
|
319
|
-
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
320
|
-
};
|
|
321
|
-
footers: {
|
|
322
|
-
type: import("vue").PropType<import("./type").Footers[]>;
|
|
323
|
-
default: import("./type").Footers[];
|
|
324
|
-
};
|
|
325
|
-
scrollAuto: {
|
|
326
|
-
type: import("vue").PropType<boolean>;
|
|
327
|
-
default: boolean;
|
|
328
|
-
};
|
|
329
|
-
defFooters: {
|
|
330
|
-
type: import("vue").PropType<string | JSX.Element>;
|
|
331
|
-
};
|
|
332
|
-
noUploadImg: {
|
|
333
|
-
type: import("vue").PropType<boolean>;
|
|
334
|
-
};
|
|
335
|
-
autoFocus: {
|
|
336
|
-
type: import("vue").PropType<boolean>;
|
|
337
|
-
};
|
|
338
|
-
disabled: {
|
|
339
|
-
type: import("vue").PropType<boolean>;
|
|
340
|
-
};
|
|
341
|
-
readOnly: {
|
|
342
|
-
type: import("vue").PropType<boolean>;
|
|
343
|
-
};
|
|
344
|
-
maxLength: {
|
|
345
|
-
type: import("vue").PropType<number>;
|
|
346
|
-
};
|
|
347
|
-
autoDetectCode: {
|
|
348
|
-
type: import("vue").PropType<boolean>;
|
|
349
|
-
};
|
|
350
|
-
onBlur: {
|
|
351
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
352
|
-
};
|
|
353
|
-
onFocus: {
|
|
354
|
-
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
355
|
-
};
|
|
356
|
-
completions: {
|
|
357
|
-
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
358
|
-
};
|
|
359
|
-
showToolbarName: {
|
|
360
|
-
type: import("vue").PropType<boolean>;
|
|
361
|
-
default: boolean;
|
|
362
|
-
};
|
|
363
|
-
onInput: {
|
|
364
|
-
type: import("vue").PropType<(event: Event) => void>;
|
|
365
|
-
};
|
|
366
|
-
onDrop: {
|
|
367
|
-
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
368
|
-
};
|
|
369
|
-
inputBoxWitdh: {
|
|
370
|
-
type: import("vue").PropType<string>;
|
|
371
|
-
default: string;
|
|
372
|
-
};
|
|
373
|
-
onInputBoxWitdhChange: {
|
|
374
|
-
type: import("vue").PropType<(width: string) => void>;
|
|
375
|
-
};
|
|
376
|
-
transformImgUrl: {
|
|
377
|
-
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
378
|
-
default: (t: string) => string;
|
|
379
|
-
};
|
|
380
|
-
modelValue: {
|
|
381
|
-
type: import("vue").PropType<string>;
|
|
382
|
-
default: string;
|
|
383
|
-
};
|
|
384
|
-
theme: {
|
|
385
|
-
type: import("vue").PropType<import("./type").Themes>;
|
|
386
|
-
default: string;
|
|
387
|
-
};
|
|
388
|
-
class: {
|
|
389
|
-
type: StringConstructor;
|
|
390
|
-
default: string;
|
|
391
|
-
};
|
|
392
|
-
language: {
|
|
393
|
-
type: import("vue").PropType<string>;
|
|
394
|
-
default: string;
|
|
395
|
-
};
|
|
396
|
-
onHtmlChanged: {
|
|
397
|
-
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
398
|
-
};
|
|
399
|
-
onGetCatalog: {
|
|
400
|
-
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
401
|
-
};
|
|
402
|
-
editorId: {
|
|
403
|
-
type: import("vue").PropType<string>;
|
|
404
|
-
default: () => string;
|
|
405
|
-
};
|
|
406
|
-
showCodeRowNumber: {
|
|
407
|
-
type: import("vue").PropType<boolean>;
|
|
408
|
-
default: boolean;
|
|
409
|
-
};
|
|
410
|
-
previewTheme: {
|
|
411
|
-
type: import("vue").PropType<string>;
|
|
412
|
-
default: string;
|
|
413
|
-
};
|
|
414
|
-
style: {
|
|
415
|
-
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
416
|
-
default: () => {};
|
|
417
|
-
};
|
|
418
|
-
mdHeadingId: {
|
|
419
|
-
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
420
|
-
default: import("./type").MdHeadingId;
|
|
421
|
-
};
|
|
422
|
-
sanitize: {
|
|
423
|
-
type: import("vue").PropType<(html: string) => string>;
|
|
424
|
-
default: (html: string) => string;
|
|
425
|
-
};
|
|
426
|
-
noMermaid: {
|
|
427
|
-
type: import("vue").PropType<boolean>;
|
|
428
|
-
default: boolean;
|
|
429
|
-
};
|
|
430
|
-
noKatex: {
|
|
431
|
-
type: import("vue").PropType<boolean>;
|
|
432
|
-
default: boolean;
|
|
433
|
-
};
|
|
434
|
-
codeTheme: {
|
|
435
|
-
type: import("vue").PropType<string>;
|
|
436
|
-
default: string;
|
|
437
|
-
};
|
|
438
|
-
noIconfont: {
|
|
439
|
-
type: import("vue").PropType<boolean>;
|
|
440
|
-
};
|
|
441
|
-
formatCopiedText: {
|
|
442
|
-
type: import("vue").PropType<(text: string) => string>;
|
|
443
|
-
default: (text: string) => string;
|
|
444
|
-
};
|
|
445
|
-
codeStyleReverse: {
|
|
446
|
-
type: import("vue").PropType<boolean>;
|
|
447
|
-
default: boolean;
|
|
448
|
-
};
|
|
449
|
-
codeStyleReverseList: {
|
|
450
|
-
type: import("vue").PropType<string[]>;
|
|
451
|
-
default: string[];
|
|
452
|
-
};
|
|
453
|
-
noHighlight: {
|
|
454
|
-
type: import("vue").PropType<boolean>;
|
|
455
|
-
default: boolean;
|
|
456
|
-
};
|
|
457
|
-
noImgZoomIn: {
|
|
458
|
-
type: import("vue").PropType<boolean>;
|
|
459
|
-
default: boolean;
|
|
460
|
-
};
|
|
461
|
-
customIcon: {
|
|
462
|
-
type: import("vue").PropType<import("./type").CustomIcon>;
|
|
463
|
-
default: {};
|
|
464
|
-
};
|
|
465
|
-
sanitizeMermaid: {
|
|
466
|
-
type: import("vue").PropType<(h: string) => Promise<string>>;
|
|
467
|
-
default: (h: string) => Promise<string>;
|
|
468
|
-
};
|
|
469
|
-
}>> & {
|
|
470
|
-
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
471
|
-
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
472
|
-
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
473
|
-
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
474
|
-
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
475
|
-
onOnError?: ((...args: any[]) => any) | undefined;
|
|
476
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
477
|
-
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
478
|
-
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
479
|
-
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
480
|
-
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
481
|
-
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
482
|
-
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("./type").EditorEmits, string, {
|
|
483
|
-
preview: boolean;
|
|
484
|
-
pageFullscreen: boolean;
|
|
485
|
-
htmlPreview: boolean;
|
|
486
|
-
class: string;
|
|
487
|
-
style: string | import("vue").CSSProperties;
|
|
488
|
-
language: string;
|
|
489
|
-
toolbars: import("./type").ToolbarNames[];
|
|
490
|
-
toolbarsExclude: import("./type").ToolbarNames[];
|
|
491
|
-
noPrettier: boolean;
|
|
492
|
-
tabWidth: number;
|
|
493
|
-
tableShape: number[];
|
|
494
|
-
placeholder: string;
|
|
495
|
-
footers: import("./type").Footers[];
|
|
496
|
-
scrollAuto: boolean;
|
|
497
|
-
showToolbarName: boolean;
|
|
498
|
-
inputBoxWitdh: string;
|
|
499
|
-
transformImgUrl: (t: string) => string | Promise<string>;
|
|
500
|
-
modelValue: string;
|
|
501
|
-
theme: import("./type").Themes;
|
|
502
|
-
editorId: string;
|
|
503
|
-
showCodeRowNumber: boolean;
|
|
504
|
-
previewTheme: string;
|
|
505
|
-
mdHeadingId: import("./type").MdHeadingId;
|
|
506
|
-
sanitize: (html: string) => string;
|
|
507
|
-
noMermaid: boolean;
|
|
508
|
-
noKatex: boolean;
|
|
509
|
-
codeTheme: string;
|
|
510
|
-
formatCopiedText: (text: string) => string;
|
|
511
|
-
codeStyleReverse: boolean;
|
|
512
|
-
codeStyleReverseList: string[];
|
|
513
|
-
noHighlight: boolean;
|
|
514
|
-
noImgZoomIn: boolean;
|
|
515
|
-
customIcon: import("./type").CustomIcon;
|
|
516
|
-
sanitizeMermaid: (h: string) => Promise<string>;
|
|
517
|
-
}, {}, string> & {
|
|
518
|
-
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
519
|
-
created?: ((() => void) | (() => void)[]) | undefined;
|
|
520
|
-
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
521
|
-
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
522
|
-
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
523
|
-
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
524
|
-
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
525
|
-
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
526
|
-
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
527
|
-
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
528
|
-
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
529
|
-
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
530
|
-
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
531
|
-
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
532
|
-
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
533
|
-
};
|
|
534
|
-
$forceUpdate: () => void;
|
|
535
|
-
$nextTick: typeof import('vue').nextTick;
|
|
536
|
-
$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;
|
|
537
|
-
} & Readonly<import('vue').ExtractPropTypes<{
|
|
4
|
+
new (...args: any[]): import('vue').CreateComponentPublicInstance<Readonly<import('vue').ExtractPropTypes<{
|
|
538
5
|
onChange: {
|
|
539
|
-
type: import(
|
|
6
|
+
type: import('vue').PropType<import('./type').ChangeEvent>;
|
|
540
7
|
};
|
|
541
8
|
onSave: {
|
|
542
|
-
type: import(
|
|
9
|
+
type: import('vue').PropType<import('./type').SaveEvent>;
|
|
543
10
|
};
|
|
544
11
|
onUploadImg: {
|
|
545
|
-
type: import(
|
|
12
|
+
type: import('vue').PropType<import('./type').UploadImgEvent>;
|
|
546
13
|
};
|
|
547
14
|
pageFullscreen: {
|
|
548
|
-
type: import(
|
|
15
|
+
type: import('vue').PropType<boolean>;
|
|
549
16
|
default: boolean;
|
|
550
17
|
};
|
|
551
18
|
preview: {
|
|
552
|
-
type: import(
|
|
19
|
+
type: import('vue').PropType<boolean>;
|
|
553
20
|
default: boolean;
|
|
554
21
|
};
|
|
555
22
|
htmlPreview: {
|
|
556
|
-
type: import(
|
|
23
|
+
type: import('vue').PropType<boolean>;
|
|
557
24
|
default: boolean;
|
|
558
25
|
};
|
|
559
26
|
toolbars: {
|
|
560
|
-
type: import(
|
|
27
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
561
28
|
default: string[];
|
|
562
29
|
};
|
|
563
30
|
toolbarsExclude: {
|
|
564
|
-
type: import(
|
|
31
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
565
32
|
default: never[];
|
|
566
33
|
};
|
|
567
34
|
noPrettier: {
|
|
568
|
-
type: import(
|
|
35
|
+
type: import('vue').PropType<boolean>;
|
|
569
36
|
default: boolean;
|
|
570
37
|
};
|
|
571
38
|
tabWidth: {
|
|
572
|
-
type: import(
|
|
39
|
+
type: import('vue').PropType<number>;
|
|
573
40
|
default: number;
|
|
574
41
|
};
|
|
575
42
|
tableShape: {
|
|
576
|
-
type: import(
|
|
43
|
+
type: import('vue').PropType<number[]>;
|
|
577
44
|
default: () => number[];
|
|
578
45
|
};
|
|
579
46
|
placeholder: {
|
|
580
|
-
type: import(
|
|
47
|
+
type: import('vue').PropType<string>;
|
|
581
48
|
default: string;
|
|
582
49
|
};
|
|
583
50
|
defToolbars: {
|
|
584
|
-
type: import(
|
|
51
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
52
|
+
[key: string]: any;
|
|
53
|
+
}>>;
|
|
585
54
|
};
|
|
586
55
|
onError: {
|
|
587
|
-
type: import(
|
|
56
|
+
type: import('vue').PropType<import('./type').ErrorEvent>;
|
|
588
57
|
};
|
|
589
58
|
footers: {
|
|
590
|
-
type: import(
|
|
591
|
-
default: import(
|
|
59
|
+
type: import('vue').PropType<import('./type').Footers[]>;
|
|
60
|
+
default: import('./type').Footers[];
|
|
592
61
|
};
|
|
593
62
|
scrollAuto: {
|
|
594
|
-
type: import(
|
|
63
|
+
type: import('vue').PropType<boolean>;
|
|
595
64
|
default: boolean;
|
|
596
65
|
};
|
|
597
66
|
defFooters: {
|
|
598
|
-
type: import(
|
|
67
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
68
|
+
[key: string]: any;
|
|
69
|
+
}>>;
|
|
599
70
|
};
|
|
600
71
|
noUploadImg: {
|
|
601
|
-
type: import(
|
|
72
|
+
type: import('vue').PropType<boolean>;
|
|
602
73
|
};
|
|
603
74
|
autoFocus: {
|
|
604
|
-
type: import(
|
|
75
|
+
type: import('vue').PropType<boolean>;
|
|
605
76
|
};
|
|
606
77
|
disabled: {
|
|
607
|
-
type: import(
|
|
78
|
+
type: import('vue').PropType<boolean>;
|
|
608
79
|
};
|
|
609
80
|
readOnly: {
|
|
610
|
-
type: import(
|
|
81
|
+
type: import('vue').PropType<boolean>;
|
|
611
82
|
};
|
|
612
83
|
maxLength: {
|
|
613
|
-
type: import(
|
|
84
|
+
type: import('vue').PropType<number>;
|
|
614
85
|
};
|
|
615
86
|
autoDetectCode: {
|
|
616
|
-
type: import(
|
|
87
|
+
type: import('vue').PropType<boolean>;
|
|
617
88
|
};
|
|
618
89
|
onBlur: {
|
|
619
|
-
type: import(
|
|
90
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
620
91
|
};
|
|
621
92
|
onFocus: {
|
|
622
|
-
type: import(
|
|
93
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
623
94
|
};
|
|
624
95
|
completions: {
|
|
625
|
-
type: import(
|
|
96
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
626
97
|
};
|
|
627
98
|
showToolbarName: {
|
|
628
|
-
type: import(
|
|
99
|
+
type: import('vue').PropType<boolean>;
|
|
629
100
|
default: boolean;
|
|
630
101
|
};
|
|
631
102
|
onInput: {
|
|
632
|
-
type: import(
|
|
103
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
633
104
|
};
|
|
634
105
|
onDrop: {
|
|
635
|
-
type: import(
|
|
106
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
636
107
|
};
|
|
637
108
|
inputBoxWitdh: {
|
|
638
|
-
type: import(
|
|
109
|
+
type: import('vue').PropType<string>;
|
|
639
110
|
default: string;
|
|
640
111
|
};
|
|
641
112
|
onInputBoxWitdhChange: {
|
|
642
|
-
type: import(
|
|
113
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
643
114
|
};
|
|
644
115
|
transformImgUrl: {
|
|
645
|
-
type: import(
|
|
116
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
646
117
|
default: (t: string) => string;
|
|
647
118
|
};
|
|
648
119
|
modelValue: {
|
|
649
|
-
type: import(
|
|
120
|
+
type: import('vue').PropType<string>;
|
|
650
121
|
default: string;
|
|
651
122
|
};
|
|
652
123
|
theme: {
|
|
653
|
-
type: import(
|
|
124
|
+
type: import('vue').PropType<import('./type').Themes>;
|
|
654
125
|
default: string;
|
|
655
126
|
};
|
|
656
127
|
class: {
|
|
@@ -658,80 +129,80 @@ declare const _default: {
|
|
|
658
129
|
default: string;
|
|
659
130
|
};
|
|
660
131
|
language: {
|
|
661
|
-
type: import(
|
|
132
|
+
type: import('vue').PropType<string>;
|
|
662
133
|
default: string;
|
|
663
134
|
};
|
|
664
135
|
onHtmlChanged: {
|
|
665
|
-
type: import(
|
|
136
|
+
type: import('vue').PropType<import('./type').HtmlChangedEvent>;
|
|
666
137
|
};
|
|
667
138
|
onGetCatalog: {
|
|
668
|
-
type: import(
|
|
139
|
+
type: import('vue').PropType<import('./type').GetCatalogEvent>;
|
|
669
140
|
};
|
|
670
141
|
editorId: {
|
|
671
|
-
type: import(
|
|
142
|
+
type: import('vue').PropType<string>;
|
|
672
143
|
default: () => string;
|
|
673
144
|
};
|
|
674
145
|
showCodeRowNumber: {
|
|
675
|
-
type: import(
|
|
146
|
+
type: import('vue').PropType<boolean>;
|
|
676
147
|
default: boolean;
|
|
677
148
|
};
|
|
678
149
|
previewTheme: {
|
|
679
|
-
type: import(
|
|
150
|
+
type: import('vue').PropType<string>;
|
|
680
151
|
default: string;
|
|
681
152
|
};
|
|
682
153
|
style: {
|
|
683
|
-
type: import(
|
|
154
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
684
155
|
default: () => {};
|
|
685
156
|
};
|
|
686
157
|
mdHeadingId: {
|
|
687
|
-
type: import(
|
|
688
|
-
default: import(
|
|
158
|
+
type: import('vue').PropType<import('./type').MdHeadingId>;
|
|
159
|
+
default: import('./type').MdHeadingId;
|
|
689
160
|
};
|
|
690
161
|
sanitize: {
|
|
691
|
-
type: import(
|
|
162
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
692
163
|
default: (html: string) => string;
|
|
693
164
|
};
|
|
694
165
|
noMermaid: {
|
|
695
|
-
type: import(
|
|
166
|
+
type: import('vue').PropType<boolean>;
|
|
696
167
|
default: boolean;
|
|
697
168
|
};
|
|
698
169
|
noKatex: {
|
|
699
|
-
type: import(
|
|
170
|
+
type: import('vue').PropType<boolean>;
|
|
700
171
|
default: boolean;
|
|
701
172
|
};
|
|
702
173
|
codeTheme: {
|
|
703
|
-
type: import(
|
|
174
|
+
type: import('vue').PropType<string>;
|
|
704
175
|
default: string;
|
|
705
176
|
};
|
|
706
177
|
noIconfont: {
|
|
707
|
-
type: import(
|
|
178
|
+
type: import('vue').PropType<boolean>;
|
|
708
179
|
};
|
|
709
180
|
formatCopiedText: {
|
|
710
|
-
type: import(
|
|
181
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
711
182
|
default: (text: string) => string;
|
|
712
183
|
};
|
|
713
184
|
codeStyleReverse: {
|
|
714
|
-
type: import(
|
|
185
|
+
type: import('vue').PropType<boolean>;
|
|
715
186
|
default: boolean;
|
|
716
187
|
};
|
|
717
188
|
codeStyleReverseList: {
|
|
718
|
-
type: import(
|
|
189
|
+
type: import('vue').PropType<string[]>;
|
|
719
190
|
default: string[];
|
|
720
191
|
};
|
|
721
192
|
noHighlight: {
|
|
722
|
-
type: import(
|
|
193
|
+
type: import('vue').PropType<boolean>;
|
|
723
194
|
default: boolean;
|
|
724
195
|
};
|
|
725
196
|
noImgZoomIn: {
|
|
726
|
-
type: import(
|
|
197
|
+
type: import('vue').PropType<boolean>;
|
|
727
198
|
default: boolean;
|
|
728
199
|
};
|
|
729
200
|
customIcon: {
|
|
730
|
-
type: import(
|
|
201
|
+
type: import('vue').PropType<import('./type').CustomIcon>;
|
|
731
202
|
default: {};
|
|
732
203
|
};
|
|
733
204
|
sanitizeMermaid: {
|
|
734
|
-
type: import(
|
|
205
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
735
206
|
default: (h: string) => Promise<string>;
|
|
736
207
|
};
|
|
737
208
|
}>> & {
|
|
@@ -747,127 +218,642 @@ declare const _default: {
|
|
|
747
218
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
748
219
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
749
220
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
750
|
-
}
|
|
221
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('./type').EditorEmits, import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & Readonly<import('vue').ExtractPropTypes<{
|
|
222
|
+
onChange: {
|
|
223
|
+
type: import('vue').PropType<import('./type').ChangeEvent>;
|
|
224
|
+
};
|
|
225
|
+
onSave: {
|
|
226
|
+
type: import('vue').PropType<import('./type').SaveEvent>;
|
|
227
|
+
};
|
|
228
|
+
onUploadImg: {
|
|
229
|
+
type: import('vue').PropType<import('./type').UploadImgEvent>;
|
|
230
|
+
};
|
|
231
|
+
pageFullscreen: {
|
|
232
|
+
type: import('vue').PropType<boolean>;
|
|
233
|
+
default: boolean;
|
|
234
|
+
};
|
|
235
|
+
preview: {
|
|
236
|
+
type: import('vue').PropType<boolean>;
|
|
237
|
+
default: boolean;
|
|
238
|
+
};
|
|
239
|
+
htmlPreview: {
|
|
240
|
+
type: import('vue').PropType<boolean>;
|
|
241
|
+
default: boolean;
|
|
242
|
+
};
|
|
243
|
+
toolbars: {
|
|
244
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
245
|
+
default: string[];
|
|
246
|
+
};
|
|
247
|
+
toolbarsExclude: {
|
|
248
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
249
|
+
default: never[];
|
|
250
|
+
};
|
|
251
|
+
noPrettier: {
|
|
252
|
+
type: import('vue').PropType<boolean>;
|
|
253
|
+
default: boolean;
|
|
254
|
+
};
|
|
255
|
+
tabWidth: {
|
|
256
|
+
type: import('vue').PropType<number>;
|
|
257
|
+
default: number;
|
|
258
|
+
};
|
|
259
|
+
tableShape: {
|
|
260
|
+
type: import('vue').PropType<number[]>;
|
|
261
|
+
default: () => number[];
|
|
262
|
+
};
|
|
263
|
+
placeholder: {
|
|
264
|
+
type: import('vue').PropType<string>;
|
|
265
|
+
default: string;
|
|
266
|
+
};
|
|
267
|
+
defToolbars: {
|
|
268
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
269
|
+
[key: string]: any;
|
|
270
|
+
}>>;
|
|
271
|
+
};
|
|
272
|
+
onError: {
|
|
273
|
+
type: import('vue').PropType<import('./type').ErrorEvent>;
|
|
274
|
+
};
|
|
275
|
+
footers: {
|
|
276
|
+
type: import('vue').PropType<import('./type').Footers[]>;
|
|
277
|
+
default: import('./type').Footers[];
|
|
278
|
+
};
|
|
279
|
+
scrollAuto: {
|
|
280
|
+
type: import('vue').PropType<boolean>;
|
|
281
|
+
default: boolean;
|
|
282
|
+
};
|
|
283
|
+
defFooters: {
|
|
284
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
285
|
+
[key: string]: any;
|
|
286
|
+
}>>;
|
|
287
|
+
};
|
|
288
|
+
noUploadImg: {
|
|
289
|
+
type: import('vue').PropType<boolean>;
|
|
290
|
+
};
|
|
291
|
+
autoFocus: {
|
|
292
|
+
type: import('vue').PropType<boolean>;
|
|
293
|
+
};
|
|
294
|
+
disabled: {
|
|
295
|
+
type: import('vue').PropType<boolean>;
|
|
296
|
+
};
|
|
297
|
+
readOnly: {
|
|
298
|
+
type: import('vue').PropType<boolean>;
|
|
299
|
+
};
|
|
300
|
+
maxLength: {
|
|
301
|
+
type: import('vue').PropType<number>;
|
|
302
|
+
};
|
|
303
|
+
autoDetectCode: {
|
|
304
|
+
type: import('vue').PropType<boolean>;
|
|
305
|
+
};
|
|
306
|
+
onBlur: {
|
|
307
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
308
|
+
};
|
|
309
|
+
onFocus: {
|
|
310
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
311
|
+
};
|
|
312
|
+
completions: {
|
|
313
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
314
|
+
};
|
|
315
|
+
showToolbarName: {
|
|
316
|
+
type: import('vue').PropType<boolean>;
|
|
317
|
+
default: boolean;
|
|
318
|
+
};
|
|
319
|
+
onInput: {
|
|
320
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
321
|
+
};
|
|
322
|
+
onDrop: {
|
|
323
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
324
|
+
};
|
|
325
|
+
inputBoxWitdh: {
|
|
326
|
+
type: import('vue').PropType<string>;
|
|
327
|
+
default: string;
|
|
328
|
+
};
|
|
329
|
+
onInputBoxWitdhChange: {
|
|
330
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
331
|
+
};
|
|
332
|
+
transformImgUrl: {
|
|
333
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
334
|
+
default: (t: string) => string;
|
|
335
|
+
};
|
|
336
|
+
modelValue: {
|
|
337
|
+
type: import('vue').PropType<string>;
|
|
338
|
+
default: string;
|
|
339
|
+
};
|
|
340
|
+
theme: {
|
|
341
|
+
type: import('vue').PropType<import('./type').Themes>;
|
|
342
|
+
default: string;
|
|
343
|
+
};
|
|
344
|
+
class: {
|
|
345
|
+
type: StringConstructor;
|
|
346
|
+
default: string;
|
|
347
|
+
};
|
|
348
|
+
language: {
|
|
349
|
+
type: import('vue').PropType<string>;
|
|
350
|
+
default: string;
|
|
351
|
+
};
|
|
352
|
+
onHtmlChanged: {
|
|
353
|
+
type: import('vue').PropType<import('./type').HtmlChangedEvent>;
|
|
354
|
+
};
|
|
355
|
+
onGetCatalog: {
|
|
356
|
+
type: import('vue').PropType<import('./type').GetCatalogEvent>;
|
|
357
|
+
};
|
|
358
|
+
editorId: {
|
|
359
|
+
type: import('vue').PropType<string>;
|
|
360
|
+
default: () => string;
|
|
361
|
+
};
|
|
362
|
+
showCodeRowNumber: {
|
|
363
|
+
type: import('vue').PropType<boolean>;
|
|
364
|
+
default: boolean;
|
|
365
|
+
};
|
|
366
|
+
previewTheme: {
|
|
367
|
+
type: import('vue').PropType<string>;
|
|
368
|
+
default: string;
|
|
369
|
+
};
|
|
370
|
+
style: {
|
|
371
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
372
|
+
default: () => {};
|
|
373
|
+
};
|
|
374
|
+
mdHeadingId: {
|
|
375
|
+
type: import('vue').PropType<import('./type').MdHeadingId>;
|
|
376
|
+
default: import('./type').MdHeadingId;
|
|
377
|
+
};
|
|
378
|
+
sanitize: {
|
|
379
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
380
|
+
default: (html: string) => string;
|
|
381
|
+
};
|
|
382
|
+
noMermaid: {
|
|
383
|
+
type: import('vue').PropType<boolean>;
|
|
384
|
+
default: boolean;
|
|
385
|
+
};
|
|
386
|
+
noKatex: {
|
|
387
|
+
type: import('vue').PropType<boolean>;
|
|
388
|
+
default: boolean;
|
|
389
|
+
};
|
|
390
|
+
codeTheme: {
|
|
391
|
+
type: import('vue').PropType<string>;
|
|
392
|
+
default: string;
|
|
393
|
+
};
|
|
394
|
+
noIconfont: {
|
|
395
|
+
type: import('vue').PropType<boolean>;
|
|
396
|
+
};
|
|
397
|
+
formatCopiedText: {
|
|
398
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
399
|
+
default: (text: string) => string;
|
|
400
|
+
};
|
|
401
|
+
codeStyleReverse: {
|
|
402
|
+
type: import('vue').PropType<boolean>;
|
|
403
|
+
default: boolean;
|
|
404
|
+
};
|
|
405
|
+
codeStyleReverseList: {
|
|
406
|
+
type: import('vue').PropType<string[]>;
|
|
407
|
+
default: string[];
|
|
408
|
+
};
|
|
409
|
+
noHighlight: {
|
|
410
|
+
type: import('vue').PropType<boolean>;
|
|
411
|
+
default: boolean;
|
|
412
|
+
};
|
|
413
|
+
noImgZoomIn: {
|
|
414
|
+
type: import('vue').PropType<boolean>;
|
|
415
|
+
default: boolean;
|
|
416
|
+
};
|
|
417
|
+
customIcon: {
|
|
418
|
+
type: import('vue').PropType<import('./type').CustomIcon>;
|
|
419
|
+
default: {};
|
|
420
|
+
};
|
|
421
|
+
sanitizeMermaid: {
|
|
422
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
423
|
+
default: (h: string) => Promise<string>;
|
|
424
|
+
};
|
|
425
|
+
}>> & {
|
|
426
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
427
|
+
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
428
|
+
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
429
|
+
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
430
|
+
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
431
|
+
onOnError?: ((...args: any[]) => any) | undefined;
|
|
432
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
433
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
434
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
435
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
436
|
+
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
437
|
+
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
438
|
+
}, {
|
|
439
|
+
preview: boolean;
|
|
440
|
+
pageFullscreen: boolean;
|
|
441
|
+
htmlPreview: boolean;
|
|
442
|
+
class: string;
|
|
443
|
+
style: string | import('vue').CSSProperties;
|
|
444
|
+
language: string;
|
|
445
|
+
toolbars: import('./type').ToolbarNames[];
|
|
446
|
+
toolbarsExclude: import('./type').ToolbarNames[];
|
|
447
|
+
noPrettier: boolean;
|
|
448
|
+
tabWidth: number;
|
|
449
|
+
tableShape: number[];
|
|
450
|
+
placeholder: string;
|
|
451
|
+
footers: import('./type').Footers[];
|
|
452
|
+
scrollAuto: boolean;
|
|
453
|
+
showToolbarName: boolean;
|
|
454
|
+
inputBoxWitdh: string;
|
|
455
|
+
transformImgUrl: (t: string) => string | Promise<string>;
|
|
456
|
+
modelValue: string;
|
|
457
|
+
theme: import('./type').Themes;
|
|
458
|
+
editorId: string;
|
|
459
|
+
showCodeRowNumber: boolean;
|
|
460
|
+
previewTheme: string;
|
|
461
|
+
mdHeadingId: import('./type').MdHeadingId;
|
|
462
|
+
sanitize: (html: string) => string;
|
|
463
|
+
noMermaid: boolean;
|
|
464
|
+
noKatex: boolean;
|
|
465
|
+
codeTheme: string;
|
|
466
|
+
formatCopiedText: (text: string) => string;
|
|
467
|
+
codeStyleReverse: boolean;
|
|
468
|
+
codeStyleReverseList: string[];
|
|
469
|
+
noHighlight: boolean;
|
|
470
|
+
noImgZoomIn: boolean;
|
|
471
|
+
customIcon: import('./type').CustomIcon;
|
|
472
|
+
sanitizeMermaid: (h: string) => Promise<string>;
|
|
473
|
+
}, true, {}, {}, {
|
|
474
|
+
P: {};
|
|
475
|
+
B: {};
|
|
476
|
+
D: {};
|
|
477
|
+
C: {};
|
|
478
|
+
M: {};
|
|
479
|
+
Defaults: {};
|
|
480
|
+
}, Readonly<import('vue').ExtractPropTypes<{
|
|
481
|
+
onChange: {
|
|
482
|
+
type: import('vue').PropType<import('./type').ChangeEvent>;
|
|
483
|
+
};
|
|
484
|
+
onSave: {
|
|
485
|
+
type: import('vue').PropType<import('./type').SaveEvent>;
|
|
486
|
+
};
|
|
487
|
+
onUploadImg: {
|
|
488
|
+
type: import('vue').PropType<import('./type').UploadImgEvent>;
|
|
489
|
+
};
|
|
490
|
+
pageFullscreen: {
|
|
491
|
+
type: import('vue').PropType<boolean>;
|
|
492
|
+
default: boolean;
|
|
493
|
+
};
|
|
494
|
+
preview: {
|
|
495
|
+
type: import('vue').PropType<boolean>;
|
|
496
|
+
default: boolean;
|
|
497
|
+
};
|
|
498
|
+
htmlPreview: {
|
|
499
|
+
type: import('vue').PropType<boolean>;
|
|
500
|
+
default: boolean;
|
|
501
|
+
};
|
|
502
|
+
toolbars: {
|
|
503
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
504
|
+
default: string[];
|
|
505
|
+
};
|
|
506
|
+
toolbarsExclude: {
|
|
507
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
508
|
+
default: never[];
|
|
509
|
+
};
|
|
510
|
+
noPrettier: {
|
|
511
|
+
type: import('vue').PropType<boolean>;
|
|
512
|
+
default: boolean;
|
|
513
|
+
};
|
|
514
|
+
tabWidth: {
|
|
515
|
+
type: import('vue').PropType<number>;
|
|
516
|
+
default: number;
|
|
517
|
+
};
|
|
518
|
+
tableShape: {
|
|
519
|
+
type: import('vue').PropType<number[]>;
|
|
520
|
+
default: () => number[];
|
|
521
|
+
};
|
|
522
|
+
placeholder: {
|
|
523
|
+
type: import('vue').PropType<string>;
|
|
524
|
+
default: string;
|
|
525
|
+
};
|
|
526
|
+
defToolbars: {
|
|
527
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
528
|
+
[key: string]: any;
|
|
529
|
+
}>>;
|
|
530
|
+
};
|
|
531
|
+
onError: {
|
|
532
|
+
type: import('vue').PropType<import('./type').ErrorEvent>;
|
|
533
|
+
};
|
|
534
|
+
footers: {
|
|
535
|
+
type: import('vue').PropType<import('./type').Footers[]>;
|
|
536
|
+
default: import('./type').Footers[];
|
|
537
|
+
};
|
|
538
|
+
scrollAuto: {
|
|
539
|
+
type: import('vue').PropType<boolean>;
|
|
540
|
+
default: boolean;
|
|
541
|
+
};
|
|
542
|
+
defFooters: {
|
|
543
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
544
|
+
[key: string]: any;
|
|
545
|
+
}>>;
|
|
546
|
+
};
|
|
547
|
+
noUploadImg: {
|
|
548
|
+
type: import('vue').PropType<boolean>;
|
|
549
|
+
};
|
|
550
|
+
autoFocus: {
|
|
551
|
+
type: import('vue').PropType<boolean>;
|
|
552
|
+
};
|
|
553
|
+
disabled: {
|
|
554
|
+
type: import('vue').PropType<boolean>;
|
|
555
|
+
};
|
|
556
|
+
readOnly: {
|
|
557
|
+
type: import('vue').PropType<boolean>;
|
|
558
|
+
};
|
|
559
|
+
maxLength: {
|
|
560
|
+
type: import('vue').PropType<number>;
|
|
561
|
+
};
|
|
562
|
+
autoDetectCode: {
|
|
563
|
+
type: import('vue').PropType<boolean>;
|
|
564
|
+
};
|
|
565
|
+
onBlur: {
|
|
566
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
567
|
+
};
|
|
568
|
+
onFocus: {
|
|
569
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
570
|
+
};
|
|
571
|
+
completions: {
|
|
572
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
573
|
+
};
|
|
574
|
+
showToolbarName: {
|
|
575
|
+
type: import('vue').PropType<boolean>;
|
|
576
|
+
default: boolean;
|
|
577
|
+
};
|
|
578
|
+
onInput: {
|
|
579
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
580
|
+
};
|
|
581
|
+
onDrop: {
|
|
582
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
583
|
+
};
|
|
584
|
+
inputBoxWitdh: {
|
|
585
|
+
type: import('vue').PropType<string>;
|
|
586
|
+
default: string;
|
|
587
|
+
};
|
|
588
|
+
onInputBoxWitdhChange: {
|
|
589
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
590
|
+
};
|
|
591
|
+
transformImgUrl: {
|
|
592
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
593
|
+
default: (t: string) => string;
|
|
594
|
+
};
|
|
595
|
+
modelValue: {
|
|
596
|
+
type: import('vue').PropType<string>;
|
|
597
|
+
default: string;
|
|
598
|
+
};
|
|
599
|
+
theme: {
|
|
600
|
+
type: import('vue').PropType<import('./type').Themes>;
|
|
601
|
+
default: string;
|
|
602
|
+
};
|
|
603
|
+
class: {
|
|
604
|
+
type: StringConstructor;
|
|
605
|
+
default: string;
|
|
606
|
+
};
|
|
607
|
+
language: {
|
|
608
|
+
type: import('vue').PropType<string>;
|
|
609
|
+
default: string;
|
|
610
|
+
};
|
|
611
|
+
onHtmlChanged: {
|
|
612
|
+
type: import('vue').PropType<import('./type').HtmlChangedEvent>;
|
|
613
|
+
};
|
|
614
|
+
onGetCatalog: {
|
|
615
|
+
type: import('vue').PropType<import('./type').GetCatalogEvent>;
|
|
616
|
+
};
|
|
617
|
+
editorId: {
|
|
618
|
+
type: import('vue').PropType<string>;
|
|
619
|
+
default: () => string;
|
|
620
|
+
};
|
|
621
|
+
showCodeRowNumber: {
|
|
622
|
+
type: import('vue').PropType<boolean>;
|
|
623
|
+
default: boolean;
|
|
624
|
+
};
|
|
625
|
+
previewTheme: {
|
|
626
|
+
type: import('vue').PropType<string>;
|
|
627
|
+
default: string;
|
|
628
|
+
};
|
|
629
|
+
style: {
|
|
630
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
631
|
+
default: () => {};
|
|
632
|
+
};
|
|
633
|
+
mdHeadingId: {
|
|
634
|
+
type: import('vue').PropType<import('./type').MdHeadingId>;
|
|
635
|
+
default: import('./type').MdHeadingId;
|
|
636
|
+
};
|
|
637
|
+
sanitize: {
|
|
638
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
639
|
+
default: (html: string) => string;
|
|
640
|
+
};
|
|
641
|
+
noMermaid: {
|
|
642
|
+
type: import('vue').PropType<boolean>;
|
|
643
|
+
default: boolean;
|
|
644
|
+
};
|
|
645
|
+
noKatex: {
|
|
646
|
+
type: import('vue').PropType<boolean>;
|
|
647
|
+
default: boolean;
|
|
648
|
+
};
|
|
649
|
+
codeTheme: {
|
|
650
|
+
type: import('vue').PropType<string>;
|
|
651
|
+
default: string;
|
|
652
|
+
};
|
|
653
|
+
noIconfont: {
|
|
654
|
+
type: import('vue').PropType<boolean>;
|
|
655
|
+
};
|
|
656
|
+
formatCopiedText: {
|
|
657
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
658
|
+
default: (text: string) => string;
|
|
659
|
+
};
|
|
660
|
+
codeStyleReverse: {
|
|
661
|
+
type: import('vue').PropType<boolean>;
|
|
662
|
+
default: boolean;
|
|
663
|
+
};
|
|
664
|
+
codeStyleReverseList: {
|
|
665
|
+
type: import('vue').PropType<string[]>;
|
|
666
|
+
default: string[];
|
|
667
|
+
};
|
|
668
|
+
noHighlight: {
|
|
669
|
+
type: import('vue').PropType<boolean>;
|
|
670
|
+
default: boolean;
|
|
671
|
+
};
|
|
672
|
+
noImgZoomIn: {
|
|
673
|
+
type: import('vue').PropType<boolean>;
|
|
674
|
+
default: boolean;
|
|
675
|
+
};
|
|
676
|
+
customIcon: {
|
|
677
|
+
type: import('vue').PropType<import('./type').CustomIcon>;
|
|
678
|
+
default: {};
|
|
679
|
+
};
|
|
680
|
+
sanitizeMermaid: {
|
|
681
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
682
|
+
default: (h: string) => Promise<string>;
|
|
683
|
+
};
|
|
684
|
+
}>> & {
|
|
685
|
+
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
686
|
+
onOnSave?: ((...args: any[]) => any) | undefined;
|
|
687
|
+
onOnUploadImg?: ((...args: any[]) => any) | undefined;
|
|
688
|
+
onOnHtmlChanged?: ((...args: any[]) => any) | undefined;
|
|
689
|
+
onOnGetCatalog?: ((...args: any[]) => any) | undefined;
|
|
690
|
+
onOnError?: ((...args: any[]) => any) | undefined;
|
|
691
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
692
|
+
onOnBlur?: ((...args: any[]) => any) | undefined;
|
|
693
|
+
onOnFocus?: ((...args: any[]) => any) | undefined;
|
|
694
|
+
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
695
|
+
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
696
|
+
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
697
|
+
}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
698
|
+
preview: boolean;
|
|
699
|
+
pageFullscreen: boolean;
|
|
700
|
+
htmlPreview: boolean;
|
|
701
|
+
class: string;
|
|
702
|
+
style: string | import('vue').CSSProperties;
|
|
703
|
+
language: string;
|
|
704
|
+
toolbars: import('./type').ToolbarNames[];
|
|
705
|
+
toolbarsExclude: import('./type').ToolbarNames[];
|
|
706
|
+
noPrettier: boolean;
|
|
707
|
+
tabWidth: number;
|
|
708
|
+
tableShape: number[];
|
|
709
|
+
placeholder: string;
|
|
710
|
+
footers: import('./type').Footers[];
|
|
711
|
+
scrollAuto: boolean;
|
|
712
|
+
showToolbarName: boolean;
|
|
713
|
+
inputBoxWitdh: string;
|
|
714
|
+
transformImgUrl: (t: string) => string | Promise<string>;
|
|
715
|
+
modelValue: string;
|
|
716
|
+
theme: import('./type').Themes;
|
|
717
|
+
editorId: string;
|
|
718
|
+
showCodeRowNumber: boolean;
|
|
719
|
+
previewTheme: string;
|
|
720
|
+
mdHeadingId: import('./type').MdHeadingId;
|
|
721
|
+
sanitize: (html: string) => string;
|
|
722
|
+
noMermaid: boolean;
|
|
723
|
+
noKatex: boolean;
|
|
724
|
+
codeTheme: string;
|
|
725
|
+
formatCopiedText: (text: string) => string;
|
|
726
|
+
codeStyleReverse: boolean;
|
|
727
|
+
codeStyleReverseList: string[];
|
|
728
|
+
noHighlight: boolean;
|
|
729
|
+
noImgZoomIn: boolean;
|
|
730
|
+
customIcon: import('./type').CustomIcon;
|
|
731
|
+
sanitizeMermaid: (h: string) => Promise<string>;
|
|
732
|
+
}>;
|
|
751
733
|
__isFragment?: undefined;
|
|
752
734
|
__isTeleport?: undefined;
|
|
753
735
|
__isSuspense?: undefined;
|
|
754
|
-
} & import('vue').ComponentOptionsBase<Readonly<import(
|
|
736
|
+
} & import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
755
737
|
onChange: {
|
|
756
|
-
type: import(
|
|
738
|
+
type: import('vue').PropType<import('./type').ChangeEvent>;
|
|
757
739
|
};
|
|
758
740
|
onSave: {
|
|
759
|
-
type: import(
|
|
741
|
+
type: import('vue').PropType<import('./type').SaveEvent>;
|
|
760
742
|
};
|
|
761
743
|
onUploadImg: {
|
|
762
|
-
type: import(
|
|
744
|
+
type: import('vue').PropType<import('./type').UploadImgEvent>;
|
|
763
745
|
};
|
|
764
746
|
pageFullscreen: {
|
|
765
|
-
type: import(
|
|
747
|
+
type: import('vue').PropType<boolean>;
|
|
766
748
|
default: boolean;
|
|
767
749
|
};
|
|
768
750
|
preview: {
|
|
769
|
-
type: import(
|
|
751
|
+
type: import('vue').PropType<boolean>;
|
|
770
752
|
default: boolean;
|
|
771
753
|
};
|
|
772
754
|
htmlPreview: {
|
|
773
|
-
type: import(
|
|
755
|
+
type: import('vue').PropType<boolean>;
|
|
774
756
|
default: boolean;
|
|
775
757
|
};
|
|
776
758
|
toolbars: {
|
|
777
|
-
type: import(
|
|
759
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
778
760
|
default: string[];
|
|
779
761
|
};
|
|
780
762
|
toolbarsExclude: {
|
|
781
|
-
type: import(
|
|
763
|
+
type: import('vue').PropType<import('./type').ToolbarNames[]>;
|
|
782
764
|
default: never[];
|
|
783
765
|
};
|
|
784
766
|
noPrettier: {
|
|
785
|
-
type: import(
|
|
767
|
+
type: import('vue').PropType<boolean>;
|
|
786
768
|
default: boolean;
|
|
787
769
|
};
|
|
788
770
|
tabWidth: {
|
|
789
|
-
type: import(
|
|
771
|
+
type: import('vue').PropType<number>;
|
|
790
772
|
default: number;
|
|
791
773
|
};
|
|
792
774
|
tableShape: {
|
|
793
|
-
type: import(
|
|
775
|
+
type: import('vue').PropType<number[]>;
|
|
794
776
|
default: () => number[];
|
|
795
777
|
};
|
|
796
778
|
placeholder: {
|
|
797
|
-
type: import(
|
|
779
|
+
type: import('vue').PropType<string>;
|
|
798
780
|
default: string;
|
|
799
781
|
};
|
|
800
782
|
defToolbars: {
|
|
801
|
-
type: import(
|
|
783
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
784
|
+
[key: string]: any;
|
|
785
|
+
}>>;
|
|
802
786
|
};
|
|
803
787
|
onError: {
|
|
804
|
-
type: import(
|
|
788
|
+
type: import('vue').PropType<import('./type').ErrorEvent>;
|
|
805
789
|
};
|
|
806
790
|
footers: {
|
|
807
|
-
type: import(
|
|
808
|
-
default: import(
|
|
791
|
+
type: import('vue').PropType<import('./type').Footers[]>;
|
|
792
|
+
default: import('./type').Footers[];
|
|
809
793
|
};
|
|
810
794
|
scrollAuto: {
|
|
811
|
-
type: import(
|
|
795
|
+
type: import('vue').PropType<boolean>;
|
|
812
796
|
default: boolean;
|
|
813
797
|
};
|
|
814
798
|
defFooters: {
|
|
815
|
-
type: import(
|
|
799
|
+
type: import('vue').PropType<string | import('vue').VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
800
|
+
[key: string]: any;
|
|
801
|
+
}>>;
|
|
816
802
|
};
|
|
817
803
|
noUploadImg: {
|
|
818
|
-
type: import(
|
|
804
|
+
type: import('vue').PropType<boolean>;
|
|
819
805
|
};
|
|
820
806
|
autoFocus: {
|
|
821
|
-
type: import(
|
|
807
|
+
type: import('vue').PropType<boolean>;
|
|
822
808
|
};
|
|
823
809
|
disabled: {
|
|
824
|
-
type: import(
|
|
810
|
+
type: import('vue').PropType<boolean>;
|
|
825
811
|
};
|
|
826
812
|
readOnly: {
|
|
827
|
-
type: import(
|
|
813
|
+
type: import('vue').PropType<boolean>;
|
|
828
814
|
};
|
|
829
815
|
maxLength: {
|
|
830
|
-
type: import(
|
|
816
|
+
type: import('vue').PropType<number>;
|
|
831
817
|
};
|
|
832
818
|
autoDetectCode: {
|
|
833
|
-
type: import(
|
|
819
|
+
type: import('vue').PropType<boolean>;
|
|
834
820
|
};
|
|
835
821
|
onBlur: {
|
|
836
|
-
type: import(
|
|
822
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
837
823
|
};
|
|
838
824
|
onFocus: {
|
|
839
|
-
type: import(
|
|
825
|
+
type: import('vue').PropType<(event: FocusEvent) => void>;
|
|
840
826
|
};
|
|
841
827
|
completions: {
|
|
842
|
-
type: import(
|
|
828
|
+
type: import('vue').PropType<import('@codemirror/autocomplete').CompletionSource[]>;
|
|
843
829
|
};
|
|
844
830
|
showToolbarName: {
|
|
845
|
-
type: import(
|
|
831
|
+
type: import('vue').PropType<boolean>;
|
|
846
832
|
default: boolean;
|
|
847
833
|
};
|
|
848
834
|
onInput: {
|
|
849
|
-
type: import(
|
|
835
|
+
type: import('vue').PropType<(event: Event) => void>;
|
|
850
836
|
};
|
|
851
837
|
onDrop: {
|
|
852
|
-
type: import(
|
|
838
|
+
type: import('vue').PropType<(event: DragEvent) => void>;
|
|
853
839
|
};
|
|
854
840
|
inputBoxWitdh: {
|
|
855
|
-
type: import(
|
|
841
|
+
type: import('vue').PropType<string>;
|
|
856
842
|
default: string;
|
|
857
843
|
};
|
|
858
844
|
onInputBoxWitdhChange: {
|
|
859
|
-
type: import(
|
|
845
|
+
type: import('vue').PropType<(width: string) => void>;
|
|
860
846
|
};
|
|
861
847
|
transformImgUrl: {
|
|
862
|
-
type: import(
|
|
848
|
+
type: import('vue').PropType<(t: string) => string | Promise<string>>;
|
|
863
849
|
default: (t: string) => string;
|
|
864
850
|
};
|
|
865
851
|
modelValue: {
|
|
866
|
-
type: import(
|
|
852
|
+
type: import('vue').PropType<string>;
|
|
867
853
|
default: string;
|
|
868
854
|
};
|
|
869
855
|
theme: {
|
|
870
|
-
type: import(
|
|
856
|
+
type: import('vue').PropType<import('./type').Themes>;
|
|
871
857
|
default: string;
|
|
872
858
|
};
|
|
873
859
|
class: {
|
|
@@ -875,80 +861,80 @@ declare const _default: {
|
|
|
875
861
|
default: string;
|
|
876
862
|
};
|
|
877
863
|
language: {
|
|
878
|
-
type: import(
|
|
864
|
+
type: import('vue').PropType<string>;
|
|
879
865
|
default: string;
|
|
880
866
|
};
|
|
881
867
|
onHtmlChanged: {
|
|
882
|
-
type: import(
|
|
868
|
+
type: import('vue').PropType<import('./type').HtmlChangedEvent>;
|
|
883
869
|
};
|
|
884
870
|
onGetCatalog: {
|
|
885
|
-
type: import(
|
|
871
|
+
type: import('vue').PropType<import('./type').GetCatalogEvent>;
|
|
886
872
|
};
|
|
887
873
|
editorId: {
|
|
888
|
-
type: import(
|
|
874
|
+
type: import('vue').PropType<string>;
|
|
889
875
|
default: () => string;
|
|
890
876
|
};
|
|
891
877
|
showCodeRowNumber: {
|
|
892
|
-
type: import(
|
|
878
|
+
type: import('vue').PropType<boolean>;
|
|
893
879
|
default: boolean;
|
|
894
880
|
};
|
|
895
881
|
previewTheme: {
|
|
896
|
-
type: import(
|
|
882
|
+
type: import('vue').PropType<string>;
|
|
897
883
|
default: string;
|
|
898
884
|
};
|
|
899
885
|
style: {
|
|
900
|
-
type: import(
|
|
886
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
901
887
|
default: () => {};
|
|
902
888
|
};
|
|
903
889
|
mdHeadingId: {
|
|
904
|
-
type: import(
|
|
905
|
-
default: import(
|
|
890
|
+
type: import('vue').PropType<import('./type').MdHeadingId>;
|
|
891
|
+
default: import('./type').MdHeadingId;
|
|
906
892
|
};
|
|
907
893
|
sanitize: {
|
|
908
|
-
type: import(
|
|
894
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
909
895
|
default: (html: string) => string;
|
|
910
896
|
};
|
|
911
897
|
noMermaid: {
|
|
912
|
-
type: import(
|
|
898
|
+
type: import('vue').PropType<boolean>;
|
|
913
899
|
default: boolean;
|
|
914
900
|
};
|
|
915
901
|
noKatex: {
|
|
916
|
-
type: import(
|
|
902
|
+
type: import('vue').PropType<boolean>;
|
|
917
903
|
default: boolean;
|
|
918
904
|
};
|
|
919
905
|
codeTheme: {
|
|
920
|
-
type: import(
|
|
906
|
+
type: import('vue').PropType<string>;
|
|
921
907
|
default: string;
|
|
922
908
|
};
|
|
923
909
|
noIconfont: {
|
|
924
|
-
type: import(
|
|
910
|
+
type: import('vue').PropType<boolean>;
|
|
925
911
|
};
|
|
926
912
|
formatCopiedText: {
|
|
927
|
-
type: import(
|
|
913
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
928
914
|
default: (text: string) => string;
|
|
929
915
|
};
|
|
930
916
|
codeStyleReverse: {
|
|
931
|
-
type: import(
|
|
917
|
+
type: import('vue').PropType<boolean>;
|
|
932
918
|
default: boolean;
|
|
933
919
|
};
|
|
934
920
|
codeStyleReverseList: {
|
|
935
|
-
type: import(
|
|
921
|
+
type: import('vue').PropType<string[]>;
|
|
936
922
|
default: string[];
|
|
937
923
|
};
|
|
938
924
|
noHighlight: {
|
|
939
|
-
type: import(
|
|
925
|
+
type: import('vue').PropType<boolean>;
|
|
940
926
|
default: boolean;
|
|
941
927
|
};
|
|
942
928
|
noImgZoomIn: {
|
|
943
|
-
type: import(
|
|
929
|
+
type: import('vue').PropType<boolean>;
|
|
944
930
|
default: boolean;
|
|
945
931
|
};
|
|
946
932
|
customIcon: {
|
|
947
|
-
type: import(
|
|
933
|
+
type: import('vue').PropType<import('./type').CustomIcon>;
|
|
948
934
|
default: {};
|
|
949
935
|
};
|
|
950
936
|
sanitizeMermaid: {
|
|
951
|
-
type: import(
|
|
937
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
952
938
|
default: (h: string) => Promise<string>;
|
|
953
939
|
};
|
|
954
940
|
}>> & {
|
|
@@ -964,30 +950,30 @@ declare const _default: {
|
|
|
964
950
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
965
951
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
966
952
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
967
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
953
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, import('./type').EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", {
|
|
968
954
|
preview: boolean;
|
|
969
955
|
pageFullscreen: boolean;
|
|
970
956
|
htmlPreview: boolean;
|
|
971
957
|
class: string;
|
|
972
|
-
style: string | import(
|
|
958
|
+
style: string | import('vue').CSSProperties;
|
|
973
959
|
language: string;
|
|
974
|
-
toolbars: import(
|
|
975
|
-
toolbarsExclude: import(
|
|
960
|
+
toolbars: import('./type').ToolbarNames[];
|
|
961
|
+
toolbarsExclude: import('./type').ToolbarNames[];
|
|
976
962
|
noPrettier: boolean;
|
|
977
963
|
tabWidth: number;
|
|
978
964
|
tableShape: number[];
|
|
979
965
|
placeholder: string;
|
|
980
|
-
footers: import(
|
|
966
|
+
footers: import('./type').Footers[];
|
|
981
967
|
scrollAuto: boolean;
|
|
982
968
|
showToolbarName: boolean;
|
|
983
969
|
inputBoxWitdh: string;
|
|
984
970
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
985
971
|
modelValue: string;
|
|
986
|
-
theme: import(
|
|
972
|
+
theme: import('./type').Themes;
|
|
987
973
|
editorId: string;
|
|
988
974
|
showCodeRowNumber: boolean;
|
|
989
975
|
previewTheme: string;
|
|
990
|
-
mdHeadingId: import(
|
|
976
|
+
mdHeadingId: import('./type').MdHeadingId;
|
|
991
977
|
sanitize: (html: string) => string;
|
|
992
978
|
noMermaid: boolean;
|
|
993
979
|
noKatex: boolean;
|
|
@@ -997,9 +983,9 @@ declare const _default: {
|
|
|
997
983
|
codeStyleReverseList: string[];
|
|
998
984
|
noHighlight: boolean;
|
|
999
985
|
noImgZoomIn: boolean;
|
|
1000
|
-
customIcon: import(
|
|
986
|
+
customIcon: import('./type').CustomIcon;
|
|
1001
987
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
1002
|
-
}, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
988
|
+
}, {}, string, {}> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
1003
989
|
install: (app: App) => App;
|
|
1004
990
|
};
|
|
1005
991
|
export default _default;
|