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,20 +1,19 @@
|
|
|
1
|
-
import { ToolbarNames } from '../../type';
|
|
2
1
|
import { VNode } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: import(
|
|
2
|
+
import { ToolbarNames } from '../../type';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
noPrettier: {
|
|
6
|
-
type: import(
|
|
5
|
+
type: import("vue").PropType<boolean>;
|
|
7
6
|
};
|
|
8
7
|
toolbars: {
|
|
9
|
-
type: import(
|
|
8
|
+
type: import("vue").PropType<ToolbarNames[]>;
|
|
10
9
|
default: () => never[];
|
|
11
10
|
};
|
|
12
11
|
toolbarsExclude: {
|
|
13
|
-
type: import(
|
|
12
|
+
type: import("vue").PropType<ToolbarNames[]>;
|
|
14
13
|
default: () => never[];
|
|
15
14
|
};
|
|
16
15
|
setting: {
|
|
17
|
-
type: import(
|
|
16
|
+
type: import("vue").PropType<import("../../type").SettingType>;
|
|
18
17
|
default: () => {};
|
|
19
18
|
};
|
|
20
19
|
screenfull: {
|
|
@@ -22,42 +21,42 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
21
|
default: null;
|
|
23
22
|
};
|
|
24
23
|
screenfullJs: {
|
|
25
|
-
type: import(
|
|
24
|
+
type: import("vue").PropType<string>;
|
|
26
25
|
default: string;
|
|
27
26
|
};
|
|
28
27
|
updateSetting: {
|
|
29
|
-
type: import(
|
|
28
|
+
type: import("vue").PropType<import("../../type").UpdateSetting>;
|
|
30
29
|
default: () => void;
|
|
31
30
|
};
|
|
32
31
|
tableShape: {
|
|
33
|
-
type: import(
|
|
32
|
+
type: import("vue").PropType<number[]>;
|
|
34
33
|
default: () => number[];
|
|
35
34
|
};
|
|
36
35
|
defToolbars: {
|
|
37
|
-
type: import(
|
|
36
|
+
type: import("vue").PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
38
37
|
[key: string]: any;
|
|
39
38
|
}>>;
|
|
40
39
|
};
|
|
41
40
|
noUploadImg: {
|
|
42
|
-
type: import(
|
|
41
|
+
type: import("vue").PropType<boolean>;
|
|
43
42
|
};
|
|
44
43
|
showToolbarName: {
|
|
45
|
-
type: import(
|
|
44
|
+
type: import("vue").PropType<boolean>;
|
|
46
45
|
};
|
|
47
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
46
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
48
47
|
noPrettier: {
|
|
49
|
-
type: import(
|
|
48
|
+
type: import("vue").PropType<boolean>;
|
|
50
49
|
};
|
|
51
50
|
toolbars: {
|
|
52
|
-
type: import(
|
|
51
|
+
type: import("vue").PropType<ToolbarNames[]>;
|
|
53
52
|
default: () => never[];
|
|
54
53
|
};
|
|
55
54
|
toolbarsExclude: {
|
|
56
|
-
type: import(
|
|
55
|
+
type: import("vue").PropType<ToolbarNames[]>;
|
|
57
56
|
default: () => never[];
|
|
58
57
|
};
|
|
59
58
|
setting: {
|
|
60
|
-
type: import(
|
|
59
|
+
type: import("vue").PropType<import("../../type").SettingType>;
|
|
61
60
|
default: () => {};
|
|
62
61
|
};
|
|
63
62
|
screenfull: {
|
|
@@ -65,35 +64,35 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
65
64
|
default: null;
|
|
66
65
|
};
|
|
67
66
|
screenfullJs: {
|
|
68
|
-
type: import(
|
|
67
|
+
type: import("vue").PropType<string>;
|
|
69
68
|
default: string;
|
|
70
69
|
};
|
|
71
70
|
updateSetting: {
|
|
72
|
-
type: import(
|
|
71
|
+
type: import("vue").PropType<import("../../type").UpdateSetting>;
|
|
73
72
|
default: () => void;
|
|
74
73
|
};
|
|
75
74
|
tableShape: {
|
|
76
|
-
type: import(
|
|
75
|
+
type: import("vue").PropType<number[]>;
|
|
77
76
|
default: () => number[];
|
|
78
77
|
};
|
|
79
78
|
defToolbars: {
|
|
80
|
-
type: import(
|
|
79
|
+
type: import("vue").PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
81
80
|
[key: string]: any;
|
|
82
81
|
}>>;
|
|
83
82
|
};
|
|
84
83
|
noUploadImg: {
|
|
85
|
-
type: import(
|
|
84
|
+
type: import("vue").PropType<boolean>;
|
|
86
85
|
};
|
|
87
86
|
showToolbarName: {
|
|
88
|
-
type: import(
|
|
87
|
+
type: import("vue").PropType<boolean>;
|
|
89
88
|
};
|
|
90
89
|
}>>, {
|
|
91
90
|
toolbars: ToolbarNames[];
|
|
92
91
|
toolbarsExclude: ToolbarNames[];
|
|
93
92
|
tableShape: number[];
|
|
94
|
-
setting: import(
|
|
93
|
+
setting: import("../../type").SettingType;
|
|
95
94
|
screenfull: Record<string, any>;
|
|
96
95
|
screenfullJs: string;
|
|
97
|
-
updateSetting: import(
|
|
96
|
+
updateSetting: import("../../type").UpdateSetting;
|
|
98
97
|
}, {}>;
|
|
99
98
|
export default _default;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ToolbarNames, SettingType, UpdateSetting } from '../../type';
|
|
2
|
-
import { LooseRequired } from '@vue/shared';
|
|
3
1
|
import { PropType, VNode, ExtractPropTypes } from 'vue';
|
|
4
|
-
|
|
2
|
+
import { LooseRequired } from '@vue/shared';
|
|
3
|
+
import { ToolbarNames, SettingType, UpdateSetting } from '../../type';
|
|
5
4
|
export declare const toolbarProps: {
|
|
6
5
|
noPrettier: {
|
|
7
6
|
type: PropType<boolean>;
|
|
@@ -35,7 +34,7 @@ export declare const toolbarProps: {
|
|
|
35
34
|
default: () => number[];
|
|
36
35
|
};
|
|
37
36
|
defToolbars: {
|
|
38
|
-
type: PropType<VNode<import(
|
|
37
|
+
type: PropType<VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
39
38
|
[key: string]: any;
|
|
40
39
|
}>>;
|
|
41
40
|
};
|
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { ToolbarNames, MdHeadingId, Themes, Footers, ChangeEvent, SaveEvent, UploadImgEvent, HtmlChangedEvent, GetCatalogEvent, ErrorEvent, EditorEmits, CustomIcon } from './type';
|
|
2
|
-
import { CompletionSource } from '@codemirror/autocomplete';
|
|
3
1
|
import { PropType, CSSProperties, VNode } from 'vue';
|
|
4
|
-
|
|
2
|
+
import { CompletionSource } from '@codemirror/autocomplete';
|
|
3
|
+
import { ToolbarNames, MdHeadingId, Themes, Footers, ChangeEvent, SaveEvent, UploadImgEvent, HtmlChangedEvent, GetCatalogEvent, ErrorEvent, EditorEmits, CustomIcon } from './type';
|
|
5
4
|
export declare const mdHeadingId: MdHeadingId;
|
|
6
5
|
export declare const mdPreviewProps: {
|
|
7
6
|
/**
|
|
@@ -323,7 +322,7 @@ export declare const editorProps: {
|
|
|
323
322
|
* 自定义的工具栏列表
|
|
324
323
|
*/
|
|
325
324
|
defToolbars: {
|
|
326
|
-
type: PropType<string | VNode<import(
|
|
325
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
327
326
|
[key: string]: any;
|
|
328
327
|
}>>;
|
|
329
328
|
};
|
|
@@ -353,7 +352,7 @@ export declare const editorProps: {
|
|
|
353
352
|
* 自定义的也叫工具组件列表
|
|
354
353
|
*/
|
|
355
354
|
defFooters: {
|
|
356
|
-
type: PropType<string | VNode<import(
|
|
355
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
357
356
|
[key: string]: any;
|
|
358
357
|
}>>;
|
|
359
358
|
};
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { ToolDirective } from './utils/content-help';
|
|
2
|
-
import { IconName } from './components/Icon/Icon';
|
|
3
|
-
import { editorProps, mdPreviewProps } from './props';
|
|
4
|
-
import { KeyBinding, EditorView } from '@codemirror/view';
|
|
5
|
-
import { Extension } from '@codemirror/state';
|
|
6
|
-
import { Component, ExtractPropTypes, SetupContext, VNode } from 'vue';
|
|
7
|
-
import { default as markdownit } from 'markdown-it';
|
|
8
1
|
import { LooseRequired } from '@vue/shared';
|
|
9
|
-
|
|
2
|
+
import markdownit from 'markdown-it';
|
|
3
|
+
import { Component, ExtractPropTypes, SetupContext, VNode } from 'vue';
|
|
4
|
+
import { Extension } from '@codemirror/state';
|
|
5
|
+
import { KeyBinding, EditorView } from '@codemirror/view';
|
|
6
|
+
import { editorProps, mdPreviewProps } from './props';
|
|
7
|
+
import { IconName } from './components/Icon/Icon';
|
|
8
|
+
import { ToolDirective } from './utils/content-help';
|
|
10
9
|
declare global {
|
|
11
10
|
interface Window {
|
|
12
11
|
hljs: any;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
import
|
|
2
|
-
|
|
1
|
+
import CodeMirrorUt from '../layouts/Content/codemirror';
|
|
3
2
|
export type ToolDirective = 'bold' | 'underline' | 'italic' | 'strikeThrough' | 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'quote' | 'unorderedList' | 'orderedList' | 'task' | 'codeRow' | 'code' | 'link' | 'image' | 'table' | 'sub' | 'sup' | 'prettier' | 'flow' | 'sequence' | 'gantt' | 'class' | 'state' | 'pie' | 'relationship' | 'journey' | 'katexInline' | 'katexBlock' | 'universal';
|
|
4
3
|
/**
|
|
5
4
|
*
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
declare const MdPreview: import(
|
|
1
|
+
declare const MdPreview: import("vue").DefineComponent<{
|
|
2
2
|
modelValue: {
|
|
3
|
-
type: import(
|
|
3
|
+
type: import("vue").PropType<string>;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
6
|
theme: {
|
|
7
|
-
type: import(
|
|
7
|
+
type: import("vue").PropType<import("../MdEditor/type").Themes>;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
10
|
class: {
|
|
@@ -12,97 +12,97 @@ declare const MdPreview: import('vue').DefineComponent<{
|
|
|
12
12
|
default: string;
|
|
13
13
|
};
|
|
14
14
|
language: {
|
|
15
|
-
type: import(
|
|
15
|
+
type: import("vue").PropType<string>;
|
|
16
16
|
default: string;
|
|
17
17
|
};
|
|
18
18
|
onHtmlChanged: {
|
|
19
|
-
type: import(
|
|
19
|
+
type: import("vue").PropType<import("../MdEditor/type").HtmlChangedEvent>;
|
|
20
20
|
};
|
|
21
21
|
onGetCatalog: {
|
|
22
|
-
type: import(
|
|
22
|
+
type: import("vue").PropType<import("../MdEditor/type").GetCatalogEvent>;
|
|
23
23
|
};
|
|
24
24
|
editorId: {
|
|
25
|
-
type: import(
|
|
25
|
+
type: import("vue").PropType<string>;
|
|
26
26
|
default: () => string;
|
|
27
27
|
};
|
|
28
28
|
showCodeRowNumber: {
|
|
29
|
-
type: import(
|
|
29
|
+
type: import("vue").PropType<boolean>;
|
|
30
30
|
default: boolean;
|
|
31
31
|
};
|
|
32
32
|
previewTheme: {
|
|
33
|
-
type: import(
|
|
33
|
+
type: import("vue").PropType<string>;
|
|
34
34
|
default: string;
|
|
35
35
|
};
|
|
36
36
|
style: {
|
|
37
|
-
type: import(
|
|
37
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
38
38
|
default: () => {};
|
|
39
39
|
};
|
|
40
40
|
mdHeadingId: {
|
|
41
|
-
type: import(
|
|
42
|
-
default: import(
|
|
41
|
+
type: import("vue").PropType<import("../MdEditor/type").MdHeadingId>;
|
|
42
|
+
default: import("../MdEditor/type").MdHeadingId;
|
|
43
43
|
};
|
|
44
44
|
sanitize: {
|
|
45
|
-
type: import(
|
|
45
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
46
46
|
default: (html: string) => string;
|
|
47
47
|
};
|
|
48
48
|
noMermaid: {
|
|
49
|
-
type: import(
|
|
49
|
+
type: import("vue").PropType<boolean>;
|
|
50
50
|
default: boolean;
|
|
51
51
|
};
|
|
52
52
|
noKatex: {
|
|
53
|
-
type: import(
|
|
53
|
+
type: import("vue").PropType<boolean>;
|
|
54
54
|
default: boolean;
|
|
55
55
|
};
|
|
56
56
|
codeTheme: {
|
|
57
|
-
type: import(
|
|
57
|
+
type: import("vue").PropType<string>;
|
|
58
58
|
default: string;
|
|
59
59
|
};
|
|
60
60
|
noIconfont: {
|
|
61
|
-
type: import(
|
|
61
|
+
type: import("vue").PropType<boolean>;
|
|
62
62
|
};
|
|
63
63
|
formatCopiedText: {
|
|
64
|
-
type: import(
|
|
64
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
65
65
|
default: (text: string) => string;
|
|
66
66
|
};
|
|
67
67
|
codeStyleReverse: {
|
|
68
|
-
type: import(
|
|
68
|
+
type: import("vue").PropType<boolean>;
|
|
69
69
|
default: boolean;
|
|
70
70
|
};
|
|
71
71
|
codeStyleReverseList: {
|
|
72
|
-
type: import(
|
|
72
|
+
type: import("vue").PropType<string[]>;
|
|
73
73
|
default: string[];
|
|
74
74
|
};
|
|
75
75
|
noHighlight: {
|
|
76
|
-
type: import(
|
|
76
|
+
type: import("vue").PropType<boolean>;
|
|
77
77
|
default: boolean;
|
|
78
78
|
};
|
|
79
79
|
noImgZoomIn: {
|
|
80
|
-
type: import(
|
|
80
|
+
type: import("vue").PropType<boolean>;
|
|
81
81
|
default: boolean;
|
|
82
82
|
};
|
|
83
83
|
customIcon: {
|
|
84
|
-
type: import(
|
|
84
|
+
type: import("vue").PropType<import("../MdEditor/type").CustomIcon>;
|
|
85
85
|
default: {};
|
|
86
86
|
};
|
|
87
87
|
sanitizeMermaid: {
|
|
88
|
-
type: import(
|
|
88
|
+
type: import("vue").PropType<(h: string) => Promise<string>>;
|
|
89
89
|
default: (h: string) => Promise<string>;
|
|
90
90
|
};
|
|
91
91
|
codeFoldable: {
|
|
92
|
-
type: import(
|
|
92
|
+
type: import("vue").PropType<boolean>;
|
|
93
93
|
default: boolean;
|
|
94
94
|
};
|
|
95
95
|
autoFoldThreshold: {
|
|
96
|
-
type: import(
|
|
96
|
+
type: import("vue").PropType<number>;
|
|
97
97
|
default: number;
|
|
98
98
|
};
|
|
99
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
99
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("../MdEditor/type").EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
|
100
100
|
modelValue: {
|
|
101
|
-
type: import(
|
|
101
|
+
type: import("vue").PropType<string>;
|
|
102
102
|
default: string;
|
|
103
103
|
};
|
|
104
104
|
theme: {
|
|
105
|
-
type: import(
|
|
105
|
+
type: import("vue").PropType<import("../MdEditor/type").Themes>;
|
|
106
106
|
default: string;
|
|
107
107
|
};
|
|
108
108
|
class: {
|
|
@@ -110,88 +110,88 @@ declare const MdPreview: import('vue').DefineComponent<{
|
|
|
110
110
|
default: string;
|
|
111
111
|
};
|
|
112
112
|
language: {
|
|
113
|
-
type: import(
|
|
113
|
+
type: import("vue").PropType<string>;
|
|
114
114
|
default: string;
|
|
115
115
|
};
|
|
116
116
|
onHtmlChanged: {
|
|
117
|
-
type: import(
|
|
117
|
+
type: import("vue").PropType<import("../MdEditor/type").HtmlChangedEvent>;
|
|
118
118
|
};
|
|
119
119
|
onGetCatalog: {
|
|
120
|
-
type: import(
|
|
120
|
+
type: import("vue").PropType<import("../MdEditor/type").GetCatalogEvent>;
|
|
121
121
|
};
|
|
122
122
|
editorId: {
|
|
123
|
-
type: import(
|
|
123
|
+
type: import("vue").PropType<string>;
|
|
124
124
|
default: () => string;
|
|
125
125
|
};
|
|
126
126
|
showCodeRowNumber: {
|
|
127
|
-
type: import(
|
|
127
|
+
type: import("vue").PropType<boolean>;
|
|
128
128
|
default: boolean;
|
|
129
129
|
};
|
|
130
130
|
previewTheme: {
|
|
131
|
-
type: import(
|
|
131
|
+
type: import("vue").PropType<string>;
|
|
132
132
|
default: string;
|
|
133
133
|
};
|
|
134
134
|
style: {
|
|
135
|
-
type: import(
|
|
135
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
136
136
|
default: () => {};
|
|
137
137
|
};
|
|
138
138
|
mdHeadingId: {
|
|
139
|
-
type: import(
|
|
140
|
-
default: import(
|
|
139
|
+
type: import("vue").PropType<import("../MdEditor/type").MdHeadingId>;
|
|
140
|
+
default: import("../MdEditor/type").MdHeadingId;
|
|
141
141
|
};
|
|
142
142
|
sanitize: {
|
|
143
|
-
type: import(
|
|
143
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
144
144
|
default: (html: string) => string;
|
|
145
145
|
};
|
|
146
146
|
noMermaid: {
|
|
147
|
-
type: import(
|
|
147
|
+
type: import("vue").PropType<boolean>;
|
|
148
148
|
default: boolean;
|
|
149
149
|
};
|
|
150
150
|
noKatex: {
|
|
151
|
-
type: import(
|
|
151
|
+
type: import("vue").PropType<boolean>;
|
|
152
152
|
default: boolean;
|
|
153
153
|
};
|
|
154
154
|
codeTheme: {
|
|
155
|
-
type: import(
|
|
155
|
+
type: import("vue").PropType<string>;
|
|
156
156
|
default: string;
|
|
157
157
|
};
|
|
158
158
|
noIconfont: {
|
|
159
|
-
type: import(
|
|
159
|
+
type: import("vue").PropType<boolean>;
|
|
160
160
|
};
|
|
161
161
|
formatCopiedText: {
|
|
162
|
-
type: import(
|
|
162
|
+
type: import("vue").PropType<(text: string) => string>;
|
|
163
163
|
default: (text: string) => string;
|
|
164
164
|
};
|
|
165
165
|
codeStyleReverse: {
|
|
166
|
-
type: import(
|
|
166
|
+
type: import("vue").PropType<boolean>;
|
|
167
167
|
default: boolean;
|
|
168
168
|
};
|
|
169
169
|
codeStyleReverseList: {
|
|
170
|
-
type: import(
|
|
170
|
+
type: import("vue").PropType<string[]>;
|
|
171
171
|
default: string[];
|
|
172
172
|
};
|
|
173
173
|
noHighlight: {
|
|
174
|
-
type: import(
|
|
174
|
+
type: import("vue").PropType<boolean>;
|
|
175
175
|
default: boolean;
|
|
176
176
|
};
|
|
177
177
|
noImgZoomIn: {
|
|
178
|
-
type: import(
|
|
178
|
+
type: import("vue").PropType<boolean>;
|
|
179
179
|
default: boolean;
|
|
180
180
|
};
|
|
181
181
|
customIcon: {
|
|
182
|
-
type: import(
|
|
182
|
+
type: import("vue").PropType<import("../MdEditor/type").CustomIcon>;
|
|
183
183
|
default: {};
|
|
184
184
|
};
|
|
185
185
|
sanitizeMermaid: {
|
|
186
|
-
type: import(
|
|
186
|
+
type: import("vue").PropType<(h: string) => Promise<string>>;
|
|
187
187
|
default: (h: string) => Promise<string>;
|
|
188
188
|
};
|
|
189
189
|
codeFoldable: {
|
|
190
|
-
type: import(
|
|
190
|
+
type: import("vue").PropType<boolean>;
|
|
191
191
|
default: boolean;
|
|
192
192
|
};
|
|
193
193
|
autoFoldThreshold: {
|
|
194
|
-
type: import(
|
|
194
|
+
type: import("vue").PropType<number>;
|
|
195
195
|
default: number;
|
|
196
196
|
};
|
|
197
197
|
}>> & {
|
|
@@ -209,14 +209,14 @@ declare const MdPreview: import('vue').DefineComponent<{
|
|
|
209
209
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
210
210
|
}, {
|
|
211
211
|
class: string;
|
|
212
|
-
style: string | import(
|
|
212
|
+
style: string | import("vue").CSSProperties;
|
|
213
213
|
language: string;
|
|
214
214
|
modelValue: string;
|
|
215
|
-
theme: import(
|
|
215
|
+
theme: import("../MdEditor/type").Themes;
|
|
216
216
|
editorId: string;
|
|
217
217
|
showCodeRowNumber: boolean;
|
|
218
218
|
previewTheme: string;
|
|
219
|
-
mdHeadingId: import(
|
|
219
|
+
mdHeadingId: import("../MdEditor/type").MdHeadingId;
|
|
220
220
|
sanitize: (html: string) => string;
|
|
221
221
|
noMermaid: boolean;
|
|
222
222
|
noKatex: boolean;
|
|
@@ -226,7 +226,7 @@ declare const MdPreview: import('vue').DefineComponent<{
|
|
|
226
226
|
codeStyleReverseList: string[];
|
|
227
227
|
noHighlight: boolean;
|
|
228
228
|
noImgZoomIn: boolean;
|
|
229
|
-
customIcon: import(
|
|
229
|
+
customIcon: import("../MdEditor/type").CustomIcon;
|
|
230
230
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
231
231
|
codeFoldable: boolean;
|
|
232
232
|
autoFoldThreshold: number;
|