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