md-editor-v3 4.21.1 → 4.21.3
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 +14 -8
- package/lib/cjs/ModalToolbar.cjs +26 -11
- package/lib/cjs/NormalToolbar.cjs +18 -5
- package/lib/cjs/chunks/config.cjs +178 -186
- package/lib/cjs/chunks/dom.cjs +64 -52
- package/lib/cjs/chunks/index.cjs +66 -42
- package/lib/cjs/chunks/index2.cjs +22 -9
- package/lib/cjs/chunks/index3.cjs +8 -4
- package/lib/cjs/index.cjs +2 -1
- package/lib/es/MdEditor.mjs +14 -8
- package/lib/es/ModalToolbar.mjs +26 -11
- package/lib/es/NormalToolbar.mjs +18 -5
- package/lib/es/chunks/config.mjs +178 -186
- package/lib/es/chunks/dom.mjs +64 -52
- package/lib/es/chunks/index.mjs +66 -42
- package/lib/es/chunks/index2.mjs +22 -9
- package/lib/es/chunks/index3.mjs +8 -4
- package/lib/es/index.mjs +2 -1
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +40 -0
- package/lib/types/DropdownToolbar/index.d.ts +94 -0
- package/lib/types/MdCatalog/MdCatalog.d.ts +12 -0
- package/lib/types/MdCatalog/index.d.ts +28 -0
- package/lib/types/MdEditor/Editor.d.ts +70 -0
- package/lib/types/MdEditor/config.d.ts +7 -7
- package/lib/types/MdEditor/index.d.ts +166 -0
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +6 -0
- package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +3 -0
- package/lib/types/MdEditor/props.d.ts +26 -0
- package/lib/types/MdPreview/MdPreview.d.ts +12 -0
- package/lib/types/MdPreview/index.d.ts +28 -0
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +44 -0
- package/lib/types/ModalToolbar/index.d.ts +102 -0
- package/lib/types/NormalFooterToolbar/NormalFooterToolbar.d.ts +5 -1
- package/lib/types/NormalFooterToolbar/index.d.ts +13 -3
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +35 -0
- package/lib/types/NormalToolbar/index.d.ts +79 -0
- package/lib/umd/index.js +42 -42
- package/package.json +1 -1
|
@@ -3,9 +3,11 @@ declare const _default: {
|
|
|
3
3
|
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
4
4
|
onSave: {
|
|
5
5
|
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
6
|
+
default: undefined;
|
|
6
7
|
};
|
|
7
8
|
onUploadImg: {
|
|
8
9
|
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
10
|
+
default: undefined;
|
|
9
11
|
};
|
|
10
12
|
pageFullscreen: {
|
|
11
13
|
type: import("vue").PropType<boolean>;
|
|
@@ -37,6 +39,7 @@ declare const _default: {
|
|
|
37
39
|
};
|
|
38
40
|
tableShape: {
|
|
39
41
|
type: import("vue").PropType<number[]>;
|
|
42
|
+
default: number[];
|
|
40
43
|
};
|
|
41
44
|
placeholder: {
|
|
42
45
|
type: import("vue").PropType<string>;
|
|
@@ -46,9 +49,11 @@ declare const _default: {
|
|
|
46
49
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
50
|
[key: string]: any;
|
|
48
51
|
}>>;
|
|
52
|
+
default: undefined;
|
|
49
53
|
};
|
|
50
54
|
onError: {
|
|
51
55
|
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
56
|
+
default: undefined;
|
|
52
57
|
};
|
|
53
58
|
footers: {
|
|
54
59
|
type: import("vue").PropType<import("./type").Footers[]>;
|
|
@@ -62,33 +67,43 @@ declare const _default: {
|
|
|
62
67
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
63
68
|
[key: string]: any;
|
|
64
69
|
}>>;
|
|
70
|
+
default: undefined;
|
|
65
71
|
};
|
|
66
72
|
noUploadImg: {
|
|
67
73
|
type: import("vue").PropType<boolean>;
|
|
74
|
+
default: boolean;
|
|
68
75
|
};
|
|
69
76
|
autoFocus: {
|
|
70
77
|
type: import("vue").PropType<boolean>;
|
|
78
|
+
default: boolean;
|
|
71
79
|
};
|
|
72
80
|
disabled: {
|
|
73
81
|
type: import("vue").PropType<boolean>;
|
|
82
|
+
default: boolean;
|
|
74
83
|
};
|
|
75
84
|
readOnly: {
|
|
76
85
|
type: import("vue").PropType<boolean>;
|
|
86
|
+
default: boolean;
|
|
77
87
|
};
|
|
78
88
|
maxLength: {
|
|
79
89
|
type: import("vue").PropType<number>;
|
|
90
|
+
default: undefined;
|
|
80
91
|
};
|
|
81
92
|
autoDetectCode: {
|
|
82
93
|
type: import("vue").PropType<boolean>;
|
|
94
|
+
default: boolean;
|
|
83
95
|
};
|
|
84
96
|
onBlur: {
|
|
85
97
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
98
|
+
default: undefined;
|
|
86
99
|
};
|
|
87
100
|
onFocus: {
|
|
88
101
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
102
|
+
default: undefined;
|
|
89
103
|
};
|
|
90
104
|
completions: {
|
|
91
105
|
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
106
|
+
default: undefined;
|
|
92
107
|
};
|
|
93
108
|
showToolbarName: {
|
|
94
109
|
type: import("vue").PropType<boolean>;
|
|
@@ -96,9 +111,11 @@ declare const _default: {
|
|
|
96
111
|
};
|
|
97
112
|
onInput: {
|
|
98
113
|
type: import("vue").PropType<(event: Event) => void>;
|
|
114
|
+
default: undefined;
|
|
99
115
|
};
|
|
100
116
|
onDrop: {
|
|
101
117
|
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
118
|
+
default: undefined;
|
|
102
119
|
};
|
|
103
120
|
inputBoxWitdh: {
|
|
104
121
|
type: import("vue").PropType<string>;
|
|
@@ -106,6 +123,7 @@ declare const _default: {
|
|
|
106
123
|
};
|
|
107
124
|
onInputBoxWitdhChange: {
|
|
108
125
|
type: import("vue").PropType<(width: string) => void>;
|
|
126
|
+
default: undefined;
|
|
109
127
|
};
|
|
110
128
|
transformImgUrl: {
|
|
111
129
|
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
@@ -117,6 +135,7 @@ declare const _default: {
|
|
|
117
135
|
};
|
|
118
136
|
onChange: {
|
|
119
137
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
138
|
+
default: undefined;
|
|
120
139
|
};
|
|
121
140
|
theme: {
|
|
122
141
|
type: import("vue").PropType<import("./type").Themes>;
|
|
@@ -132,9 +151,11 @@ declare const _default: {
|
|
|
132
151
|
};
|
|
133
152
|
onHtmlChanged: {
|
|
134
153
|
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
154
|
+
default: undefined;
|
|
135
155
|
};
|
|
136
156
|
onGetCatalog: {
|
|
137
157
|
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
158
|
+
default: undefined;
|
|
138
159
|
};
|
|
139
160
|
editorId: {
|
|
140
161
|
type: import("vue").PropType<string>;
|
|
@@ -174,6 +195,7 @@ declare const _default: {
|
|
|
174
195
|
};
|
|
175
196
|
noIconfont: {
|
|
176
197
|
type: import("vue").PropType<boolean>;
|
|
198
|
+
default: undefined;
|
|
177
199
|
};
|
|
178
200
|
formatCopiedText: {
|
|
179
201
|
type: import("vue").PropType<(text: string) => string>;
|
|
@@ -227,9 +249,11 @@ declare const _default: {
|
|
|
227
249
|
}, () => 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<{
|
|
228
250
|
onSave: {
|
|
229
251
|
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
252
|
+
default: undefined;
|
|
230
253
|
};
|
|
231
254
|
onUploadImg: {
|
|
232
255
|
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
256
|
+
default: undefined;
|
|
233
257
|
};
|
|
234
258
|
pageFullscreen: {
|
|
235
259
|
type: import("vue").PropType<boolean>;
|
|
@@ -261,6 +285,7 @@ declare const _default: {
|
|
|
261
285
|
};
|
|
262
286
|
tableShape: {
|
|
263
287
|
type: import("vue").PropType<number[]>;
|
|
288
|
+
default: number[];
|
|
264
289
|
};
|
|
265
290
|
placeholder: {
|
|
266
291
|
type: import("vue").PropType<string>;
|
|
@@ -270,9 +295,11 @@ declare const _default: {
|
|
|
270
295
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
271
296
|
[key: string]: any;
|
|
272
297
|
}>>;
|
|
298
|
+
default: undefined;
|
|
273
299
|
};
|
|
274
300
|
onError: {
|
|
275
301
|
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
302
|
+
default: undefined;
|
|
276
303
|
};
|
|
277
304
|
footers: {
|
|
278
305
|
type: import("vue").PropType<import("./type").Footers[]>;
|
|
@@ -286,33 +313,43 @@ declare const _default: {
|
|
|
286
313
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
287
314
|
[key: string]: any;
|
|
288
315
|
}>>;
|
|
316
|
+
default: undefined;
|
|
289
317
|
};
|
|
290
318
|
noUploadImg: {
|
|
291
319
|
type: import("vue").PropType<boolean>;
|
|
320
|
+
default: boolean;
|
|
292
321
|
};
|
|
293
322
|
autoFocus: {
|
|
294
323
|
type: import("vue").PropType<boolean>;
|
|
324
|
+
default: boolean;
|
|
295
325
|
};
|
|
296
326
|
disabled: {
|
|
297
327
|
type: import("vue").PropType<boolean>;
|
|
328
|
+
default: boolean;
|
|
298
329
|
};
|
|
299
330
|
readOnly: {
|
|
300
331
|
type: import("vue").PropType<boolean>;
|
|
332
|
+
default: boolean;
|
|
301
333
|
};
|
|
302
334
|
maxLength: {
|
|
303
335
|
type: import("vue").PropType<number>;
|
|
336
|
+
default: undefined;
|
|
304
337
|
};
|
|
305
338
|
autoDetectCode: {
|
|
306
339
|
type: import("vue").PropType<boolean>;
|
|
340
|
+
default: boolean;
|
|
307
341
|
};
|
|
308
342
|
onBlur: {
|
|
309
343
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
344
|
+
default: undefined;
|
|
310
345
|
};
|
|
311
346
|
onFocus: {
|
|
312
347
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
348
|
+
default: undefined;
|
|
313
349
|
};
|
|
314
350
|
completions: {
|
|
315
351
|
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
352
|
+
default: undefined;
|
|
316
353
|
};
|
|
317
354
|
showToolbarName: {
|
|
318
355
|
type: import("vue").PropType<boolean>;
|
|
@@ -320,9 +357,11 @@ declare const _default: {
|
|
|
320
357
|
};
|
|
321
358
|
onInput: {
|
|
322
359
|
type: import("vue").PropType<(event: Event) => void>;
|
|
360
|
+
default: undefined;
|
|
323
361
|
};
|
|
324
362
|
onDrop: {
|
|
325
363
|
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
364
|
+
default: undefined;
|
|
326
365
|
};
|
|
327
366
|
inputBoxWitdh: {
|
|
328
367
|
type: import("vue").PropType<string>;
|
|
@@ -330,6 +369,7 @@ declare const _default: {
|
|
|
330
369
|
};
|
|
331
370
|
onInputBoxWitdhChange: {
|
|
332
371
|
type: import("vue").PropType<(width: string) => void>;
|
|
372
|
+
default: undefined;
|
|
333
373
|
};
|
|
334
374
|
transformImgUrl: {
|
|
335
375
|
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
@@ -341,6 +381,7 @@ declare const _default: {
|
|
|
341
381
|
};
|
|
342
382
|
onChange: {
|
|
343
383
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
384
|
+
default: undefined;
|
|
344
385
|
};
|
|
345
386
|
theme: {
|
|
346
387
|
type: import("vue").PropType<import("./type").Themes>;
|
|
@@ -356,9 +397,11 @@ declare const _default: {
|
|
|
356
397
|
};
|
|
357
398
|
onHtmlChanged: {
|
|
358
399
|
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
400
|
+
default: undefined;
|
|
359
401
|
};
|
|
360
402
|
onGetCatalog: {
|
|
361
403
|
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
404
|
+
default: undefined;
|
|
362
405
|
};
|
|
363
406
|
editorId: {
|
|
364
407
|
type: import("vue").PropType<string>;
|
|
@@ -398,6 +441,7 @@ declare const _default: {
|
|
|
398
441
|
};
|
|
399
442
|
noIconfont: {
|
|
400
443
|
type: import("vue").PropType<boolean>;
|
|
444
|
+
default: undefined;
|
|
401
445
|
};
|
|
402
446
|
formatCopiedText: {
|
|
403
447
|
type: import("vue").PropType<(text: string) => string>;
|
|
@@ -452,6 +496,17 @@ declare const _default: {
|
|
|
452
496
|
preview: boolean;
|
|
453
497
|
pageFullscreen: boolean;
|
|
454
498
|
htmlPreview: boolean;
|
|
499
|
+
onChange: import("./type").ChangeEvent;
|
|
500
|
+
onSave: import("./type").SaveEvent;
|
|
501
|
+
onUploadImg: import("./type").UploadImgEvent;
|
|
502
|
+
onHtmlChanged: import("./type").HtmlChangedEvent;
|
|
503
|
+
onGetCatalog: import("./type").GetCatalogEvent;
|
|
504
|
+
onError: import("./type").ErrorEvent;
|
|
505
|
+
onBlur: (event: FocusEvent) => void;
|
|
506
|
+
onFocus: (event: FocusEvent) => void;
|
|
507
|
+
onInput: (event: Event) => void;
|
|
508
|
+
onDrop: (event: DragEvent) => void;
|
|
509
|
+
onInputBoxWitdhChange: (width: string) => void;
|
|
455
510
|
class: string;
|
|
456
511
|
style: string | import("vue").CSSProperties;
|
|
457
512
|
language: string;
|
|
@@ -459,9 +514,23 @@ declare const _default: {
|
|
|
459
514
|
toolbarsExclude: import("./type").ToolbarNames[];
|
|
460
515
|
noPrettier: boolean;
|
|
461
516
|
tabWidth: number;
|
|
517
|
+
tableShape: number[];
|
|
462
518
|
placeholder: string;
|
|
519
|
+
defToolbars: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
520
|
+
[key: string]: any;
|
|
521
|
+
}>;
|
|
463
522
|
footers: import("./type").Footers[];
|
|
464
523
|
scrollAuto: boolean;
|
|
524
|
+
defFooters: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
525
|
+
[key: string]: any;
|
|
526
|
+
}>;
|
|
527
|
+
noUploadImg: boolean;
|
|
528
|
+
autoFocus: boolean;
|
|
529
|
+
disabled: boolean;
|
|
530
|
+
readOnly: boolean;
|
|
531
|
+
maxLength: number;
|
|
532
|
+
autoDetectCode: boolean;
|
|
533
|
+
completions: import("@codemirror/autocomplete").CompletionSource[];
|
|
465
534
|
showToolbarName: boolean;
|
|
466
535
|
inputBoxWitdh: string;
|
|
467
536
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
@@ -475,6 +544,7 @@ declare const _default: {
|
|
|
475
544
|
noMermaid: boolean;
|
|
476
545
|
noKatex: boolean;
|
|
477
546
|
codeTheme: string;
|
|
547
|
+
noIconfont: boolean;
|
|
478
548
|
formatCopiedText: (text: string) => string;
|
|
479
549
|
codeStyleReverse: boolean;
|
|
480
550
|
codeStyleReverseList: string[];
|
|
@@ -494,9 +564,11 @@ declare const _default: {
|
|
|
494
564
|
}, Readonly<import("vue").ExtractPropTypes<{
|
|
495
565
|
onSave: {
|
|
496
566
|
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
567
|
+
default: undefined;
|
|
497
568
|
};
|
|
498
569
|
onUploadImg: {
|
|
499
570
|
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
571
|
+
default: undefined;
|
|
500
572
|
};
|
|
501
573
|
pageFullscreen: {
|
|
502
574
|
type: import("vue").PropType<boolean>;
|
|
@@ -528,6 +600,7 @@ declare const _default: {
|
|
|
528
600
|
};
|
|
529
601
|
tableShape: {
|
|
530
602
|
type: import("vue").PropType<number[]>;
|
|
603
|
+
default: number[];
|
|
531
604
|
};
|
|
532
605
|
placeholder: {
|
|
533
606
|
type: import("vue").PropType<string>;
|
|
@@ -537,9 +610,11 @@ declare const _default: {
|
|
|
537
610
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
538
611
|
[key: string]: any;
|
|
539
612
|
}>>;
|
|
613
|
+
default: undefined;
|
|
540
614
|
};
|
|
541
615
|
onError: {
|
|
542
616
|
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
617
|
+
default: undefined;
|
|
543
618
|
};
|
|
544
619
|
footers: {
|
|
545
620
|
type: import("vue").PropType<import("./type").Footers[]>;
|
|
@@ -553,33 +628,43 @@ declare const _default: {
|
|
|
553
628
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
554
629
|
[key: string]: any;
|
|
555
630
|
}>>;
|
|
631
|
+
default: undefined;
|
|
556
632
|
};
|
|
557
633
|
noUploadImg: {
|
|
558
634
|
type: import("vue").PropType<boolean>;
|
|
635
|
+
default: boolean;
|
|
559
636
|
};
|
|
560
637
|
autoFocus: {
|
|
561
638
|
type: import("vue").PropType<boolean>;
|
|
639
|
+
default: boolean;
|
|
562
640
|
};
|
|
563
641
|
disabled: {
|
|
564
642
|
type: import("vue").PropType<boolean>;
|
|
643
|
+
default: boolean;
|
|
565
644
|
};
|
|
566
645
|
readOnly: {
|
|
567
646
|
type: import("vue").PropType<boolean>;
|
|
647
|
+
default: boolean;
|
|
568
648
|
};
|
|
569
649
|
maxLength: {
|
|
570
650
|
type: import("vue").PropType<number>;
|
|
651
|
+
default: undefined;
|
|
571
652
|
};
|
|
572
653
|
autoDetectCode: {
|
|
573
654
|
type: import("vue").PropType<boolean>;
|
|
655
|
+
default: boolean;
|
|
574
656
|
};
|
|
575
657
|
onBlur: {
|
|
576
658
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
659
|
+
default: undefined;
|
|
577
660
|
};
|
|
578
661
|
onFocus: {
|
|
579
662
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
663
|
+
default: undefined;
|
|
580
664
|
};
|
|
581
665
|
completions: {
|
|
582
666
|
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
667
|
+
default: undefined;
|
|
583
668
|
};
|
|
584
669
|
showToolbarName: {
|
|
585
670
|
type: import("vue").PropType<boolean>;
|
|
@@ -587,9 +672,11 @@ declare const _default: {
|
|
|
587
672
|
};
|
|
588
673
|
onInput: {
|
|
589
674
|
type: import("vue").PropType<(event: Event) => void>;
|
|
675
|
+
default: undefined;
|
|
590
676
|
};
|
|
591
677
|
onDrop: {
|
|
592
678
|
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
679
|
+
default: undefined;
|
|
593
680
|
};
|
|
594
681
|
inputBoxWitdh: {
|
|
595
682
|
type: import("vue").PropType<string>;
|
|
@@ -597,6 +684,7 @@ declare const _default: {
|
|
|
597
684
|
};
|
|
598
685
|
onInputBoxWitdhChange: {
|
|
599
686
|
type: import("vue").PropType<(width: string) => void>;
|
|
687
|
+
default: undefined;
|
|
600
688
|
};
|
|
601
689
|
transformImgUrl: {
|
|
602
690
|
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
@@ -608,6 +696,7 @@ declare const _default: {
|
|
|
608
696
|
};
|
|
609
697
|
onChange: {
|
|
610
698
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
699
|
+
default: undefined;
|
|
611
700
|
};
|
|
612
701
|
theme: {
|
|
613
702
|
type: import("vue").PropType<import("./type").Themes>;
|
|
@@ -623,9 +712,11 @@ declare const _default: {
|
|
|
623
712
|
};
|
|
624
713
|
onHtmlChanged: {
|
|
625
714
|
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
715
|
+
default: undefined;
|
|
626
716
|
};
|
|
627
717
|
onGetCatalog: {
|
|
628
718
|
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
719
|
+
default: undefined;
|
|
629
720
|
};
|
|
630
721
|
editorId: {
|
|
631
722
|
type: import("vue").PropType<string>;
|
|
@@ -665,6 +756,7 @@ declare const _default: {
|
|
|
665
756
|
};
|
|
666
757
|
noIconfont: {
|
|
667
758
|
type: import("vue").PropType<boolean>;
|
|
759
|
+
default: undefined;
|
|
668
760
|
};
|
|
669
761
|
formatCopiedText: {
|
|
670
762
|
type: import("vue").PropType<(text: string) => string>;
|
|
@@ -719,6 +811,17 @@ declare const _default: {
|
|
|
719
811
|
preview: boolean;
|
|
720
812
|
pageFullscreen: boolean;
|
|
721
813
|
htmlPreview: boolean;
|
|
814
|
+
onChange: import("./type").ChangeEvent;
|
|
815
|
+
onSave: import("./type").SaveEvent;
|
|
816
|
+
onUploadImg: import("./type").UploadImgEvent;
|
|
817
|
+
onHtmlChanged: import("./type").HtmlChangedEvent;
|
|
818
|
+
onGetCatalog: import("./type").GetCatalogEvent;
|
|
819
|
+
onError: import("./type").ErrorEvent;
|
|
820
|
+
onBlur: (event: FocusEvent) => void;
|
|
821
|
+
onFocus: (event: FocusEvent) => void;
|
|
822
|
+
onInput: (event: Event) => void;
|
|
823
|
+
onDrop: (event: DragEvent) => void;
|
|
824
|
+
onInputBoxWitdhChange: (width: string) => void;
|
|
722
825
|
class: string;
|
|
723
826
|
style: string | import("vue").CSSProperties;
|
|
724
827
|
language: string;
|
|
@@ -726,9 +829,23 @@ declare const _default: {
|
|
|
726
829
|
toolbarsExclude: import("./type").ToolbarNames[];
|
|
727
830
|
noPrettier: boolean;
|
|
728
831
|
tabWidth: number;
|
|
832
|
+
tableShape: number[];
|
|
729
833
|
placeholder: string;
|
|
834
|
+
defToolbars: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
835
|
+
[key: string]: any;
|
|
836
|
+
}>;
|
|
730
837
|
footers: import("./type").Footers[];
|
|
731
838
|
scrollAuto: boolean;
|
|
839
|
+
defFooters: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
840
|
+
[key: string]: any;
|
|
841
|
+
}>;
|
|
842
|
+
noUploadImg: boolean;
|
|
843
|
+
autoFocus: boolean;
|
|
844
|
+
disabled: boolean;
|
|
845
|
+
readOnly: boolean;
|
|
846
|
+
maxLength: number;
|
|
847
|
+
autoDetectCode: boolean;
|
|
848
|
+
completions: import("@codemirror/autocomplete").CompletionSource[];
|
|
732
849
|
showToolbarName: boolean;
|
|
733
850
|
inputBoxWitdh: string;
|
|
734
851
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
@@ -742,6 +859,7 @@ declare const _default: {
|
|
|
742
859
|
noMermaid: boolean;
|
|
743
860
|
noKatex: boolean;
|
|
744
861
|
codeTheme: string;
|
|
862
|
+
noIconfont: boolean;
|
|
745
863
|
formatCopiedText: (text: string) => string;
|
|
746
864
|
codeStyleReverse: boolean;
|
|
747
865
|
codeStyleReverseList: string[];
|
|
@@ -758,9 +876,11 @@ declare const _default: {
|
|
|
758
876
|
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
759
877
|
onSave: {
|
|
760
878
|
type: import("vue").PropType<import("./type").SaveEvent>;
|
|
879
|
+
default: undefined;
|
|
761
880
|
};
|
|
762
881
|
onUploadImg: {
|
|
763
882
|
type: import("vue").PropType<import("./type").UploadImgEvent>;
|
|
883
|
+
default: undefined;
|
|
764
884
|
};
|
|
765
885
|
pageFullscreen: {
|
|
766
886
|
type: import("vue").PropType<boolean>;
|
|
@@ -792,6 +912,7 @@ declare const _default: {
|
|
|
792
912
|
};
|
|
793
913
|
tableShape: {
|
|
794
914
|
type: import("vue").PropType<number[]>;
|
|
915
|
+
default: number[];
|
|
795
916
|
};
|
|
796
917
|
placeholder: {
|
|
797
918
|
type: import("vue").PropType<string>;
|
|
@@ -801,9 +922,11 @@ declare const _default: {
|
|
|
801
922
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
802
923
|
[key: string]: any;
|
|
803
924
|
}>>;
|
|
925
|
+
default: undefined;
|
|
804
926
|
};
|
|
805
927
|
onError: {
|
|
806
928
|
type: import("vue").PropType<import("./type").ErrorEvent>;
|
|
929
|
+
default: undefined;
|
|
807
930
|
};
|
|
808
931
|
footers: {
|
|
809
932
|
type: import("vue").PropType<import("./type").Footers[]>;
|
|
@@ -817,33 +940,43 @@ declare const _default: {
|
|
|
817
940
|
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
818
941
|
[key: string]: any;
|
|
819
942
|
}>>;
|
|
943
|
+
default: undefined;
|
|
820
944
|
};
|
|
821
945
|
noUploadImg: {
|
|
822
946
|
type: import("vue").PropType<boolean>;
|
|
947
|
+
default: boolean;
|
|
823
948
|
};
|
|
824
949
|
autoFocus: {
|
|
825
950
|
type: import("vue").PropType<boolean>;
|
|
951
|
+
default: boolean;
|
|
826
952
|
};
|
|
827
953
|
disabled: {
|
|
828
954
|
type: import("vue").PropType<boolean>;
|
|
955
|
+
default: boolean;
|
|
829
956
|
};
|
|
830
957
|
readOnly: {
|
|
831
958
|
type: import("vue").PropType<boolean>;
|
|
959
|
+
default: boolean;
|
|
832
960
|
};
|
|
833
961
|
maxLength: {
|
|
834
962
|
type: import("vue").PropType<number>;
|
|
963
|
+
default: undefined;
|
|
835
964
|
};
|
|
836
965
|
autoDetectCode: {
|
|
837
966
|
type: import("vue").PropType<boolean>;
|
|
967
|
+
default: boolean;
|
|
838
968
|
};
|
|
839
969
|
onBlur: {
|
|
840
970
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
971
|
+
default: undefined;
|
|
841
972
|
};
|
|
842
973
|
onFocus: {
|
|
843
974
|
type: import("vue").PropType<(event: FocusEvent) => void>;
|
|
975
|
+
default: undefined;
|
|
844
976
|
};
|
|
845
977
|
completions: {
|
|
846
978
|
type: import("vue").PropType<import("@codemirror/autocomplete").CompletionSource[]>;
|
|
979
|
+
default: undefined;
|
|
847
980
|
};
|
|
848
981
|
showToolbarName: {
|
|
849
982
|
type: import("vue").PropType<boolean>;
|
|
@@ -851,9 +984,11 @@ declare const _default: {
|
|
|
851
984
|
};
|
|
852
985
|
onInput: {
|
|
853
986
|
type: import("vue").PropType<(event: Event) => void>;
|
|
987
|
+
default: undefined;
|
|
854
988
|
};
|
|
855
989
|
onDrop: {
|
|
856
990
|
type: import("vue").PropType<(event: DragEvent) => void>;
|
|
991
|
+
default: undefined;
|
|
857
992
|
};
|
|
858
993
|
inputBoxWitdh: {
|
|
859
994
|
type: import("vue").PropType<string>;
|
|
@@ -861,6 +996,7 @@ declare const _default: {
|
|
|
861
996
|
};
|
|
862
997
|
onInputBoxWitdhChange: {
|
|
863
998
|
type: import("vue").PropType<(width: string) => void>;
|
|
999
|
+
default: undefined;
|
|
864
1000
|
};
|
|
865
1001
|
transformImgUrl: {
|
|
866
1002
|
type: import("vue").PropType<(t: string) => string | Promise<string>>;
|
|
@@ -872,6 +1008,7 @@ declare const _default: {
|
|
|
872
1008
|
};
|
|
873
1009
|
onChange: {
|
|
874
1010
|
type: import("vue").PropType<import("./type").ChangeEvent>;
|
|
1011
|
+
default: undefined;
|
|
875
1012
|
};
|
|
876
1013
|
theme: {
|
|
877
1014
|
type: import("vue").PropType<import("./type").Themes>;
|
|
@@ -887,9 +1024,11 @@ declare const _default: {
|
|
|
887
1024
|
};
|
|
888
1025
|
onHtmlChanged: {
|
|
889
1026
|
type: import("vue").PropType<import("./type").HtmlChangedEvent>;
|
|
1027
|
+
default: undefined;
|
|
890
1028
|
};
|
|
891
1029
|
onGetCatalog: {
|
|
892
1030
|
type: import("vue").PropType<import("./type").GetCatalogEvent>;
|
|
1031
|
+
default: undefined;
|
|
893
1032
|
};
|
|
894
1033
|
editorId: {
|
|
895
1034
|
type: import("vue").PropType<string>;
|
|
@@ -929,6 +1068,7 @@ declare const _default: {
|
|
|
929
1068
|
};
|
|
930
1069
|
noIconfont: {
|
|
931
1070
|
type: import("vue").PropType<boolean>;
|
|
1071
|
+
default: undefined;
|
|
932
1072
|
};
|
|
933
1073
|
formatCopiedText: {
|
|
934
1074
|
type: import("vue").PropType<(text: string) => string>;
|
|
@@ -983,6 +1123,17 @@ declare const _default: {
|
|
|
983
1123
|
preview: boolean;
|
|
984
1124
|
pageFullscreen: boolean;
|
|
985
1125
|
htmlPreview: boolean;
|
|
1126
|
+
onChange: import("./type").ChangeEvent;
|
|
1127
|
+
onSave: import("./type").SaveEvent;
|
|
1128
|
+
onUploadImg: import("./type").UploadImgEvent;
|
|
1129
|
+
onHtmlChanged: import("./type").HtmlChangedEvent;
|
|
1130
|
+
onGetCatalog: import("./type").GetCatalogEvent;
|
|
1131
|
+
onError: import("./type").ErrorEvent;
|
|
1132
|
+
onBlur: (event: FocusEvent) => void;
|
|
1133
|
+
onFocus: (event: FocusEvent) => void;
|
|
1134
|
+
onInput: (event: Event) => void;
|
|
1135
|
+
onDrop: (event: DragEvent) => void;
|
|
1136
|
+
onInputBoxWitdhChange: (width: string) => void;
|
|
986
1137
|
class: string;
|
|
987
1138
|
style: string | import("vue").CSSProperties;
|
|
988
1139
|
language: string;
|
|
@@ -990,9 +1141,23 @@ declare const _default: {
|
|
|
990
1141
|
toolbarsExclude: import("./type").ToolbarNames[];
|
|
991
1142
|
noPrettier: boolean;
|
|
992
1143
|
tabWidth: number;
|
|
1144
|
+
tableShape: number[];
|
|
993
1145
|
placeholder: string;
|
|
1146
|
+
defToolbars: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1147
|
+
[key: string]: any;
|
|
1148
|
+
}>;
|
|
994
1149
|
footers: import("./type").Footers[];
|
|
995
1150
|
scrollAuto: boolean;
|
|
1151
|
+
defFooters: string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
1152
|
+
[key: string]: any;
|
|
1153
|
+
}>;
|
|
1154
|
+
noUploadImg: boolean;
|
|
1155
|
+
autoFocus: boolean;
|
|
1156
|
+
disabled: boolean;
|
|
1157
|
+
readOnly: boolean;
|
|
1158
|
+
maxLength: number;
|
|
1159
|
+
autoDetectCode: boolean;
|
|
1160
|
+
completions: import("@codemirror/autocomplete").CompletionSource[];
|
|
996
1161
|
showToolbarName: boolean;
|
|
997
1162
|
inputBoxWitdh: string;
|
|
998
1163
|
transformImgUrl: (t: string) => string | Promise<string>;
|
|
@@ -1006,6 +1171,7 @@ declare const _default: {
|
|
|
1006
1171
|
noMermaid: boolean;
|
|
1007
1172
|
noKatex: boolean;
|
|
1008
1173
|
codeTheme: string;
|
|
1174
|
+
noIconfont: boolean;
|
|
1009
1175
|
formatCopiedText: (text: string) => string;
|
|
1010
1176
|
codeStyleReverse: boolean;
|
|
1011
1177
|
codeStyleReverseList: string[];
|
|
@@ -46,6 +46,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
46
46
|
catalogVisible: {
|
|
47
47
|
type: import("vue").PropType<boolean>;
|
|
48
48
|
};
|
|
49
|
+
codeTheme: {
|
|
50
|
+
type: import("vue").PropType<string>;
|
|
51
|
+
};
|
|
49
52
|
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
50
53
|
noPrettier: {
|
|
51
54
|
type: import("vue").PropType<boolean>;
|
|
@@ -92,6 +95,9 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
92
95
|
catalogVisible: {
|
|
93
96
|
type: import("vue").PropType<boolean>;
|
|
94
97
|
};
|
|
98
|
+
codeTheme: {
|
|
99
|
+
type: import("vue").PropType<string>;
|
|
100
|
+
};
|
|
95
101
|
}>>, {
|
|
96
102
|
toolbars: ToolbarNames[];
|
|
97
103
|
toolbarsExclude: ToolbarNames[];
|