md-editor-v3 4.16.6 → 4.16.8-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 +3 -2
- package/lib/es/MdEditor.mjs +3 -2
- 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 +2 -3
- package/lib/types/MdEditor/components/Modal/index.d.ts +49 -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 +5 -6
- package/lib/types/ModalToolbar/index.d.ts +66 -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 +2 -2
- package/package.json +4 -5
|
@@ -1,123 +1,123 @@
|
|
|
1
|
-
declare const Editor: import(
|
|
1
|
+
declare const Editor: import("vue").DefineComponent<{
|
|
2
2
|
onChange: {
|
|
3
|
-
type: import(
|
|
3
|
+
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
4
4
|
};
|
|
5
5
|
onSave: {
|
|
6
|
-
type: import(
|
|
6
|
+
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
7
7
|
};
|
|
8
8
|
onUploadImg: {
|
|
9
|
-
type: import(
|
|
9
|
+
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
10
10
|
};
|
|
11
11
|
pageFullscreen: {
|
|
12
|
-
type: import(
|
|
12
|
+
type: import("vue").PropType<boolean>;
|
|
13
13
|
default: boolean;
|
|
14
14
|
};
|
|
15
15
|
preview: {
|
|
16
|
-
type: import(
|
|
16
|
+
type: import("vue").PropType<boolean>;
|
|
17
17
|
default: boolean;
|
|
18
18
|
};
|
|
19
19
|
htmlPreview: {
|
|
20
|
-
type: import(
|
|
20
|
+
type: import("vue").PropType<boolean>;
|
|
21
21
|
default: boolean;
|
|
22
22
|
};
|
|
23
23
|
toolbars: {
|
|
24
|
-
type: import(
|
|
24
|
+
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
25
25
|
default: string[];
|
|
26
26
|
};
|
|
27
27
|
toolbarsExclude: {
|
|
28
|
-
type: import(
|
|
28
|
+
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
29
29
|
default: never[];
|
|
30
30
|
};
|
|
31
31
|
noPrettier: {
|
|
32
|
-
type: import(
|
|
32
|
+
type: import("vue").PropType<boolean>;
|
|
33
33
|
default: boolean;
|
|
34
34
|
};
|
|
35
35
|
tabWidth: {
|
|
36
|
-
type: import(
|
|
36
|
+
type: import("vue").PropType<number>;
|
|
37
37
|
default: number;
|
|
38
38
|
};
|
|
39
39
|
tableShape: {
|
|
40
|
-
type: import(
|
|
40
|
+
type: import("vue").PropType<number[]>;
|
|
41
41
|
};
|
|
42
42
|
placeholder: {
|
|
43
|
-
type: import(
|
|
43
|
+
type: import("vue").PropType<string>;
|
|
44
44
|
default: string;
|
|
45
45
|
};
|
|
46
46
|
defToolbars: {
|
|
47
|
-
type: import(
|
|
47
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
48
48
|
[key: string]: any;
|
|
49
49
|
}>>;
|
|
50
50
|
};
|
|
51
51
|
onError: {
|
|
52
|
-
type: import(
|
|
52
|
+
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
53
53
|
};
|
|
54
54
|
footers: {
|
|
55
|
-
type: import(
|
|
56
|
-
default: import(
|
|
55
|
+
type: import("vue").PropType<import("./type").Footers[]>;
|
|
56
|
+
default: import("./type").Footers[];
|
|
57
57
|
};
|
|
58
58
|
scrollAuto: {
|
|
59
|
-
type: import(
|
|
59
|
+
type: import("vue").PropType<boolean>;
|
|
60
60
|
default: boolean;
|
|
61
61
|
};
|
|
62
62
|
defFooters: {
|
|
63
|
-
type: import(
|
|
63
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
64
|
[key: string]: any;
|
|
65
65
|
}>>;
|
|
66
66
|
};
|
|
67
67
|
noUploadImg: {
|
|
68
|
-
type: import(
|
|
68
|
+
type: import("vue").PropType<boolean>;
|
|
69
69
|
};
|
|
70
70
|
autoFocus: {
|
|
71
|
-
type: import(
|
|
71
|
+
type: import("vue").PropType<boolean>;
|
|
72
72
|
};
|
|
73
73
|
disabled: {
|
|
74
|
-
type: import(
|
|
74
|
+
type: import("vue").PropType<boolean>;
|
|
75
75
|
};
|
|
76
76
|
readOnly: {
|
|
77
|
-
type: import(
|
|
77
|
+
type: import("vue").PropType<boolean>;
|
|
78
78
|
};
|
|
79
79
|
maxLength: {
|
|
80
|
-
type: import(
|
|
80
|
+
type: import("vue").PropType<number>;
|
|
81
81
|
};
|
|
82
82
|
autoDetectCode: {
|
|
83
|
-
type: import(
|
|
83
|
+
type: import("vue").PropType<boolean>;
|
|
84
84
|
};
|
|
85
85
|
onBlur: {
|
|
86
|
-
type: import(
|
|
86
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
87
87
|
};
|
|
88
88
|
onFocus: {
|
|
89
|
-
type: import(
|
|
89
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
90
90
|
};
|
|
91
91
|
completions: {
|
|
92
|
-
type: import(
|
|
92
|
+
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
93
93
|
};
|
|
94
94
|
showToolbarName: {
|
|
95
|
-
type: import(
|
|
95
|
+
type: import("vue").PropType<boolean>;
|
|
96
96
|
default: boolean;
|
|
97
97
|
};
|
|
98
98
|
onInput: {
|
|
99
|
-
type: import(
|
|
99
|
+
type: import("vue").PropType<(event: Event) => void>;
|
|
100
100
|
};
|
|
101
101
|
onDrop: {
|
|
102
|
-
type: import(
|
|
102
|
+
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
103
103
|
};
|
|
104
104
|
inputBoxWitdh: {
|
|
105
|
-
type: import(
|
|
105
|
+
type: import("vue").PropType<string>;
|
|
106
106
|
default: string;
|
|
107
107
|
};
|
|
108
108
|
onInputBoxWitdhChange: {
|
|
109
|
-
type: import(
|
|
109
|
+
type: import("vue").PropType<(width: string) => void>;
|
|
110
110
|
};
|
|
111
111
|
transformImgUrl: {
|
|
112
|
-
type: import(
|
|
112
|
+
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
113
113
|
default: (t: string) => string;
|
|
114
114
|
};
|
|
115
115
|
modelValue: {
|
|
116
|
-
type: import(
|
|
116
|
+
type: import("vue").PropType<string>;
|
|
117
117
|
default: string;
|
|
118
118
|
};
|
|
119
119
|
theme: {
|
|
120
|
-
type: import(
|
|
120
|
+
type: import("vue").PropType<import("./type").Themes>;
|
|
121
121
|
default: string;
|
|
122
122
|
};
|
|
123
123
|
class: {
|
|
@@ -125,210 +125,210 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
125
125
|
default: string;
|
|
126
126
|
};
|
|
127
127
|
language: {
|
|
128
|
-
type: import(
|
|
128
|
+
type: import("vue").PropType<string>;
|
|
129
129
|
default: string;
|
|
130
130
|
};
|
|
131
131
|
onHtmlChanged: {
|
|
132
|
-
type: import(
|
|
132
|
+
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
133
133
|
};
|
|
134
134
|
onGetCatalog: {
|
|
135
|
-
type: import(
|
|
135
|
+
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
136
136
|
};
|
|
137
137
|
editorId: {
|
|
138
|
-
type: import(
|
|
138
|
+
type: import("vue").PropType<string>;
|
|
139
139
|
default: () => string;
|
|
140
140
|
};
|
|
141
141
|
showCodeRowNumber: {
|
|
142
|
-
type: import(
|
|
142
|
+
type: import("vue").PropType<boolean>;
|
|
143
143
|
default: boolean;
|
|
144
144
|
};
|
|
145
145
|
previewTheme: {
|
|
146
|
-
type: import(
|
|
146
|
+
type: import("vue").PropType<string>;
|
|
147
147
|
default: string;
|
|
148
148
|
};
|
|
149
149
|
style: {
|
|
150
|
-
type: import(
|
|
150
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
151
151
|
default: () => {};
|
|
152
152
|
};
|
|
153
153
|
mdHeadingId: {
|
|
154
|
-
type: import(
|
|
155
|
-
default: import(
|
|
154
|
+
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
155
|
+
default: import("./type").MdHeadingId;
|
|
156
156
|
};
|
|
157
157
|
sanitize: {
|
|
158
|
-
type: import(
|
|
158
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
159
159
|
default: (html: string) => string;
|
|
160
160
|
};
|
|
161
161
|
noMermaid: {
|
|
162
|
-
type: import(
|
|
162
|
+
type: import("vue").PropType<boolean>;
|
|
163
163
|
default: boolean;
|
|
164
164
|
};
|
|
165
165
|
noKatex: {
|
|
166
|
-
type: import(
|
|
166
|
+
type: import("vue").PropType<boolean>;
|
|
167
167
|
default: boolean;
|
|
168
168
|
};
|
|
169
169
|
codeTheme: {
|
|
170
|
-
type: import(
|
|
170
|
+
type: import("vue").PropType<string>;
|
|
171
171
|
default: string;
|
|
172
172
|
};
|
|
173
173
|
noIconfont: {
|
|
174
|
-
type: import(
|
|
174
|
+
type: import("vue").PropType<boolean>;
|
|
175
175
|
};
|
|
176
176
|
formatCopiedText: {
|
|
177
|
-
type: import(
|
|
177
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
178
178
|
default: (text: string) => string;
|
|
179
179
|
};
|
|
180
180
|
codeStyleReverse: {
|
|
181
|
-
type: import(
|
|
181
|
+
type: import("vue").PropType<boolean>;
|
|
182
182
|
default: boolean;
|
|
183
183
|
};
|
|
184
184
|
codeStyleReverseList: {
|
|
185
|
-
type: import(
|
|
185
|
+
type: import("vue").PropType<string[]>;
|
|
186
186
|
default: string[];
|
|
187
187
|
};
|
|
188
188
|
noHighlight: {
|
|
189
|
-
type: import(
|
|
189
|
+
type: import("vue").PropType<boolean>;
|
|
190
190
|
default: boolean;
|
|
191
191
|
};
|
|
192
192
|
noImgZoomIn: {
|
|
193
|
-
type: import(
|
|
193
|
+
type: import("vue").PropType<boolean>;
|
|
194
194
|
default: boolean;
|
|
195
195
|
};
|
|
196
196
|
customIcon: {
|
|
197
|
-
type: import(
|
|
197
|
+
type: import("vue").PropType<import("./type").CustomIcon>;
|
|
198
198
|
default: {};
|
|
199
199
|
};
|
|
200
200
|
sanitizeMermaid: {
|
|
201
|
-
type: import(
|
|
201
|
+
type: import("vue").PropType<(h: string) => Promise<string>>;
|
|
202
202
|
default: (h: string) => Promise<string>;
|
|
203
203
|
};
|
|
204
204
|
codeFoldable: {
|
|
205
|
-
type: import(
|
|
205
|
+
type: import("vue").PropType<boolean>;
|
|
206
206
|
default: boolean;
|
|
207
207
|
};
|
|
208
208
|
autoFoldThreshold: {
|
|
209
|
-
type: import(
|
|
209
|
+
type: import("vue").PropType<number>;
|
|
210
210
|
default: number;
|
|
211
211
|
};
|
|
212
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
212
|
+
}, () => 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", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
213
213
|
onChange: {
|
|
214
|
-
type: import(
|
|
214
|
+
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
215
215
|
};
|
|
216
216
|
onSave: {
|
|
217
|
-
type: import(
|
|
217
|
+
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
218
218
|
};
|
|
219
219
|
onUploadImg: {
|
|
220
|
-
type: import(
|
|
220
|
+
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
221
221
|
};
|
|
222
222
|
pageFullscreen: {
|
|
223
|
-
type: import(
|
|
223
|
+
type: import("vue").PropType<boolean>;
|
|
224
224
|
default: boolean;
|
|
225
225
|
};
|
|
226
226
|
preview: {
|
|
227
|
-
type: import(
|
|
227
|
+
type: import("vue").PropType<boolean>;
|
|
228
228
|
default: boolean;
|
|
229
229
|
};
|
|
230
230
|
htmlPreview: {
|
|
231
|
-
type: import(
|
|
231
|
+
type: import("vue").PropType<boolean>;
|
|
232
232
|
default: boolean;
|
|
233
233
|
};
|
|
234
234
|
toolbars: {
|
|
235
|
-
type: import(
|
|
235
|
+
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
236
236
|
default: string[];
|
|
237
237
|
};
|
|
238
238
|
toolbarsExclude: {
|
|
239
|
-
type: import(
|
|
239
|
+
type: import("vue").PropType<import("./type").ToolbarNames[]>;
|
|
240
240
|
default: never[];
|
|
241
241
|
};
|
|
242
242
|
noPrettier: {
|
|
243
|
-
type: import(
|
|
243
|
+
type: import("vue").PropType<boolean>;
|
|
244
244
|
default: boolean;
|
|
245
245
|
};
|
|
246
246
|
tabWidth: {
|
|
247
|
-
type: import(
|
|
247
|
+
type: import("vue").PropType<number>;
|
|
248
248
|
default: number;
|
|
249
249
|
};
|
|
250
250
|
tableShape: {
|
|
251
|
-
type: import(
|
|
251
|
+
type: import("vue").PropType<number[]>;
|
|
252
252
|
};
|
|
253
253
|
placeholder: {
|
|
254
|
-
type: import(
|
|
254
|
+
type: import("vue").PropType<string>;
|
|
255
255
|
default: string;
|
|
256
256
|
};
|
|
257
257
|
defToolbars: {
|
|
258
|
-
type: import(
|
|
258
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
259
259
|
[key: string]: any;
|
|
260
260
|
}>>;
|
|
261
261
|
};
|
|
262
262
|
onError: {
|
|
263
|
-
type: import(
|
|
263
|
+
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
264
264
|
};
|
|
265
265
|
footers: {
|
|
266
|
-
type: import(
|
|
267
|
-
default: import(
|
|
266
|
+
type: import("vue").PropType<import("./type").Footers[]>;
|
|
267
|
+
default: import("./type").Footers[];
|
|
268
268
|
};
|
|
269
269
|
scrollAuto: {
|
|
270
|
-
type: import(
|
|
270
|
+
type: import("vue").PropType<boolean>;
|
|
271
271
|
default: boolean;
|
|
272
272
|
};
|
|
273
273
|
defFooters: {
|
|
274
|
-
type: import(
|
|
274
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
275
275
|
[key: string]: any;
|
|
276
276
|
}>>;
|
|
277
277
|
};
|
|
278
278
|
noUploadImg: {
|
|
279
|
-
type: import(
|
|
279
|
+
type: import("vue").PropType<boolean>;
|
|
280
280
|
};
|
|
281
281
|
autoFocus: {
|
|
282
|
-
type: import(
|
|
282
|
+
type: import("vue").PropType<boolean>;
|
|
283
283
|
};
|
|
284
284
|
disabled: {
|
|
285
|
-
type: import(
|
|
285
|
+
type: import("vue").PropType<boolean>;
|
|
286
286
|
};
|
|
287
287
|
readOnly: {
|
|
288
|
-
type: import(
|
|
288
|
+
type: import("vue").PropType<boolean>;
|
|
289
289
|
};
|
|
290
290
|
maxLength: {
|
|
291
|
-
type: import(
|
|
291
|
+
type: import("vue").PropType<number>;
|
|
292
292
|
};
|
|
293
293
|
autoDetectCode: {
|
|
294
|
-
type: import(
|
|
294
|
+
type: import("vue").PropType<boolean>;
|
|
295
295
|
};
|
|
296
296
|
onBlur: {
|
|
297
|
-
type: import(
|
|
297
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
298
298
|
};
|
|
299
299
|
onFocus: {
|
|
300
|
-
type: import(
|
|
300
|
+
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
301
301
|
};
|
|
302
302
|
completions: {
|
|
303
|
-
type: import(
|
|
303
|
+
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
304
304
|
};
|
|
305
305
|
showToolbarName: {
|
|
306
|
-
type: import(
|
|
306
|
+
type: import("vue").PropType<boolean>;
|
|
307
307
|
default: boolean;
|
|
308
308
|
};
|
|
309
309
|
onInput: {
|
|
310
|
-
type: import(
|
|
310
|
+
type: import("vue").PropType<(event: Event) => void>;
|
|
311
311
|
};
|
|
312
312
|
onDrop: {
|
|
313
|
-
type: import(
|
|
313
|
+
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
314
314
|
};
|
|
315
315
|
inputBoxWitdh: {
|
|
316
|
-
type: import(
|
|
316
|
+
type: import("vue").PropType<string>;
|
|
317
317
|
default: string;
|
|
318
318
|
};
|
|
319
319
|
onInputBoxWitdhChange: {
|
|
320
|
-
type: import(
|
|
320
|
+
type: import("vue").PropType<(width: string) => void>;
|
|
321
321
|
};
|
|
322
322
|
transformImgUrl: {
|
|
323
|
-
type: import(
|
|
323
|
+
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
324
324
|
default: (t: string) => string;
|
|
325
325
|
};
|
|
326
326
|
modelValue: {
|
|
327
|
-
type: import(
|
|
327
|
+
type: import("vue").PropType<string>;
|
|
328
328
|
default: string;
|
|
329
329
|
};
|
|
330
330
|
theme: {
|
|
331
|
-
type: import(
|
|
331
|
+
type: import("vue").PropType<import("./type").Themes>;
|
|
332
332
|
default: string;
|
|
333
333
|
};
|
|
334
334
|
class: {
|
|
@@ -336,88 +336,88 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
336
336
|
default: string;
|
|
337
337
|
};
|
|
338
338
|
language: {
|
|
339
|
-
type: import(
|
|
339
|
+
type: import("vue").PropType<string>;
|
|
340
340
|
default: string;
|
|
341
341
|
};
|
|
342
342
|
onHtmlChanged: {
|
|
343
|
-
type: import(
|
|
343
|
+
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
344
344
|
};
|
|
345
345
|
onGetCatalog: {
|
|
346
|
-
type: import(
|
|
346
|
+
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
347
347
|
};
|
|
348
348
|
editorId: {
|
|
349
|
-
type: import(
|
|
349
|
+
type: import("vue").PropType<string>;
|
|
350
350
|
default: () => string;
|
|
351
351
|
};
|
|
352
352
|
showCodeRowNumber: {
|
|
353
|
-
type: import(
|
|
353
|
+
type: import("vue").PropType<boolean>;
|
|
354
354
|
default: boolean;
|
|
355
355
|
};
|
|
356
356
|
previewTheme: {
|
|
357
|
-
type: import(
|
|
357
|
+
type: import("vue").PropType<string>;
|
|
358
358
|
default: string;
|
|
359
359
|
};
|
|
360
360
|
style: {
|
|
361
|
-
type: import(
|
|
361
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
362
362
|
default: () => {};
|
|
363
363
|
};
|
|
364
364
|
mdHeadingId: {
|
|
365
|
-
type: import(
|
|
366
|
-
default: import(
|
|
365
|
+
type: import("vue").PropType<import("./type").MdHeadingId>;
|
|
366
|
+
default: import("./type").MdHeadingId;
|
|
367
367
|
};
|
|
368
368
|
sanitize: {
|
|
369
|
-
type: import(
|
|
369
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
370
370
|
default: (html: string) => string;
|
|
371
371
|
};
|
|
372
372
|
noMermaid: {
|
|
373
|
-
type: import(
|
|
373
|
+
type: import("vue").PropType<boolean>;
|
|
374
374
|
default: boolean;
|
|
375
375
|
};
|
|
376
376
|
noKatex: {
|
|
377
|
-
type: import(
|
|
377
|
+
type: import("vue").PropType<boolean>;
|
|
378
378
|
default: boolean;
|
|
379
379
|
};
|
|
380
380
|
codeTheme: {
|
|
381
|
-
type: import(
|
|
381
|
+
type: import("vue").PropType<string>;
|
|
382
382
|
default: string;
|
|
383
383
|
};
|
|
384
384
|
noIconfont: {
|
|
385
|
-
type: import(
|
|
385
|
+
type: import("vue").PropType<boolean>;
|
|
386
386
|
};
|
|
387
387
|
formatCopiedText: {
|
|
388
|
-
type: import(
|
|
388
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
389
389
|
default: (text: string) => string;
|
|
390
390
|
};
|
|
391
391
|
codeStyleReverse: {
|
|
392
|
-
type: import(
|
|
392
|
+
type: import("vue").PropType<boolean>;
|
|
393
393
|
default: boolean;
|
|
394
394
|
};
|
|
395
395
|
codeStyleReverseList: {
|
|
396
|
-
type: import(
|
|
396
|
+
type: import("vue").PropType<string[]>;
|
|
397
397
|
default: string[];
|
|
398
398
|
};
|
|
399
399
|
noHighlight: {
|
|
400
|
-
type: import(
|
|
400
|
+
type: import("vue").PropType<boolean>;
|
|
401
401
|
default: boolean;
|
|
402
402
|
};
|
|
403
403
|
noImgZoomIn: {
|
|
404
|
-
type: import(
|
|
404
|
+
type: import("vue").PropType<boolean>;
|
|
405
405
|
default: boolean;
|
|
406
406
|
};
|
|
407
407
|
customIcon: {
|
|
408
|
-
type: import(
|
|
408
|
+
type: import("vue").PropType<import("./type").CustomIcon>;
|
|
409
409
|
default: {};
|
|
410
410
|
};
|
|
411
411
|
sanitizeMermaid: {
|
|
412
|
-
type: import(
|
|
412
|
+
type: import("vue").PropType<(h: string) => Promise<string>>;
|
|
413
413
|
default: (h: string) => Promise<string>;
|
|
414
414
|
};
|
|
415
415
|
codeFoldable: {
|
|
416
|
-
type: import(
|
|
416
|
+
type: import("vue").PropType<boolean>;
|
|
417
417
|
default: boolean;
|
|
418
418
|
};
|
|
419
419
|
autoFoldThreshold: {
|
|
420
|
-
type: import(
|
|
420
|
+
type: import("vue").PropType<number>;
|
|
421
421
|
default: number;
|
|
422
422
|
};
|
|
423
423
|
}>> & {
|
|
@@ -438,24 +438,24 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
438
438
|
pageFullscreen: boolean;
|
|
439
439
|
htmlPreview: boolean;
|
|
440
440
|
class: string;
|
|
441
|
-
style: string | import(
|
|
441
|
+
style: string | import("vue").CSSProperties;
|
|
442
442
|
language: string;
|
|
443
|
-
toolbars: import(
|
|
444
|
-
toolbarsExclude: import(
|
|
443
|
+
toolbars: import("./type").ToolbarNames[];
|
|
444
|
+
toolbarsExclude: import("./type").ToolbarNames[];
|
|
445
445
|
noPrettier: boolean;
|
|
446
446
|
tabWidth: number;
|
|
447
447
|
placeholder: string;
|
|
448
|
-
footers: import(
|
|
448
|
+
footers: import("./type").Footers[];
|
|
449
449
|
scrollAuto: boolean;
|
|
450
450
|
showToolbarName: boolean;
|
|
451
451
|
inputBoxWitdh: string;
|
|
452
452
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
453
453
|
modelValue: string;
|
|
454
|
-
theme: import(
|
|
454
|
+
theme: import("./type").Themes;
|
|
455
455
|
editorId: string;
|
|
456
456
|
showCodeRowNumber: boolean;
|
|
457
457
|
previewTheme: string;
|
|
458
|
-
mdHeadingId: import(
|
|
458
|
+
mdHeadingId: import("./type").MdHeadingId;
|
|
459
459
|
sanitize: (html: string) => string;
|
|
460
460
|
noMermaid: boolean;
|
|
461
461
|
noKatex: boolean;
|
|
@@ -465,7 +465,7 @@ declare const Editor: import('vue').DefineComponent<{
|
|
|
465
465
|
codeStyleReverseList: string[];
|
|
466
466
|
noHighlight: boolean;
|
|
467
467
|
noImgZoomIn: boolean;
|
|
468
|
-
customIcon: import(
|
|
468
|
+
customIcon: import("./type").CustomIcon;
|
|
469
469
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
470
470
|
codeFoldable: boolean;
|
|
471
471
|
autoFoldThreshold: number;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
checked: {
|
|
5
4
|
type: PropType<boolean>;
|
|
6
5
|
default: boolean;
|
|
@@ -9,7 +8,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
9
8
|
type: PropType<(checked: boolean) => void>;
|
|
10
9
|
default: () => void;
|
|
11
10
|
};
|
|
12
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
11
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
13
12
|
checked: {
|
|
14
13
|
type: PropType<boolean>;
|
|
15
14
|
default: boolean;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
declare const _default: import(
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => import("vue/jsx-runtime").JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}, {}>;
|
|
2
2
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
import { PropType, EmitsOptions, ExtractPropTypes, VNode } from 'vue';
|
|
2
|
-
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
3
|
overlay: {
|
|
5
|
-
type: PropType<string | VNode<import(
|
|
4
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
6
5
|
[key: string]: any;
|
|
7
6
|
}>>;
|
|
8
7
|
default: string;
|
|
@@ -21,9 +20,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
21
20
|
};
|
|
22
21
|
}, () => VNode<unknown, unknown, {
|
|
23
22
|
[key: string]: any;
|
|
24
|
-
}>[], unknown, {}, {}, import(
|
|
23
|
+
}>[], unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, EmitsOptions, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
25
24
|
overlay: {
|
|
26
|
-
type: PropType<string | VNode<import(
|
|
25
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
27
26
|
[key: string]: any;
|
|
28
27
|
}>>;
|
|
29
28
|
default: string;
|
|
@@ -42,7 +41,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
42
41
|
};
|
|
43
42
|
}>>, {
|
|
44
43
|
onChange: (v: boolean) => void;
|
|
45
|
-
overlay: string | VNode<import(
|
|
44
|
+
overlay: string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
46
45
|
[key: string]: any;
|
|
47
46
|
}>;
|
|
48
47
|
visible: boolean;
|