md-editor-v3 4.13.2 → 4.13.3-beta.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/cjs/MdEditor.cjs +17 -4
- package/lib/cjs/chunks/index2.cjs +10 -2
- package/lib/es/MdEditor.mjs +17 -4
- package/lib/es/chunks/index2.mjs +10 -2
- package/lib/preview.css +1 -1
- package/lib/style.css +1 -1
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +17 -9
- package/lib/types/DropdownToolbar/index.d.ts +112 -126
- package/lib/types/MdCatalog/CatalogLink.d.ts +2 -2
- package/lib/types/MdCatalog/MdCatalog.d.ts +2 -2
- package/lib/types/MdCatalog/index.d.ts +114 -144
- package/lib/types/MdEditor/Editor.d.ts +129 -121
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -2
- package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +13 -7
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +2 -2
- package/lib/types/MdEditor/components/Icon/index.d.ts +4 -2
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -2
- package/lib/types/MdEditor/components/Modal/index.d.ts +133 -163
- package/lib/types/MdEditor/components/Popper/index.d.ts +2 -2
- package/lib/types/MdEditor/index.d.ts +643 -657
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +31 -31
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/index.d.ts +72 -72
- package/lib/types/MdEditor/layouts/Content/markdownIt/admonition/index.d.ts +2 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +1 -1
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +4 -4
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -2
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +24 -24
- package/lib/types/MdEditor/props.d.ts +7 -3
- package/lib/types/MdEditor/type.d.ts +3 -3
- package/lib/types/MdEditor/utils/dom.d.ts +1 -1
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +2 -11
- package/lib/types/MdPreview/MdPreview.d.ts +52 -52
- package/lib/types/MdPreview/index.d.ts +310 -340
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +9 -5
- package/lib/types/ModalToolbar/index.d.ts +168 -190
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +9 -5
- package/lib/types/NormalToolbar/index.d.ts +80 -102
- package/lib/umd/index.js +48 -42
- package/package.json +18 -18
|
@@ -17,7 +17,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
17
17
|
type: PropType<(data?: any) => void>;
|
|
18
18
|
default: () => void;
|
|
19
19
|
};
|
|
20
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
20
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
21
21
|
type: {
|
|
22
22
|
type: PropType<"link" | "image" | "help">;
|
|
23
23
|
default: string;
|
|
@@ -39,5 +39,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
39
39
|
visible: boolean;
|
|
40
40
|
onCancel: () => void;
|
|
41
41
|
onOk: (data?: any) => void;
|
|
42
|
-
}>;
|
|
42
|
+
}, {}>;
|
|
43
43
|
export default _default;
|
|
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
21
21
|
type: PropType<(data?: any) => void>;
|
|
22
22
|
default: () => void;
|
|
23
23
|
};
|
|
24
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
24
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
25
25
|
type: {
|
|
26
26
|
type: PropType<"link" | "image" | "help">;
|
|
27
27
|
default: string;
|
|
@@ -48,5 +48,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
48
48
|
onOk: (data?: any) => void;
|
|
49
49
|
linkVisible: boolean;
|
|
50
50
|
clipVisible: boolean;
|
|
51
|
-
}>;
|
|
51
|
+
}, {}>;
|
|
52
52
|
export default _default;
|
|
@@ -13,7 +13,7 @@ declare const TableShape: import('vue').DefineComponent<{
|
|
|
13
13
|
type: PropType<(data: HoverData) => void>;
|
|
14
14
|
default: () => void;
|
|
15
15
|
};
|
|
16
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
16
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ExtractPropTypes<{
|
|
17
17
|
tableShape: {
|
|
18
18
|
type: PropType<number[]>;
|
|
19
19
|
default: () => number[];
|
|
@@ -25,5 +25,5 @@ declare const TableShape: import('vue').DefineComponent<{
|
|
|
25
25
|
}>>, {
|
|
26
26
|
tableShape: number[];
|
|
27
27
|
onSelected: (data: HoverData) => void;
|
|
28
|
-
}>;
|
|
28
|
+
}, {}>;
|
|
29
29
|
export default TableShape;
|
|
@@ -3,18 +3,18 @@ import { VNode } from 'vue';
|
|
|
3
3
|
|
|
4
4
|
declare const _default: import('vue').DefineComponent<{
|
|
5
5
|
noPrettier: {
|
|
6
|
-
type: import(
|
|
6
|
+
type: import('vue').PropType<boolean>;
|
|
7
7
|
};
|
|
8
8
|
toolbars: {
|
|
9
|
-
type: import(
|
|
9
|
+
type: import('vue').PropType<ToolbarNames[]>;
|
|
10
10
|
default: () => never[];
|
|
11
11
|
};
|
|
12
12
|
toolbarsExclude: {
|
|
13
|
-
type: import(
|
|
13
|
+
type: import('vue').PropType<ToolbarNames[]>;
|
|
14
14
|
default: () => never[];
|
|
15
15
|
};
|
|
16
16
|
setting: {
|
|
17
|
-
type: import(
|
|
17
|
+
type: import('vue').PropType<import('../../type').SettingType>;
|
|
18
18
|
default: () => {};
|
|
19
19
|
};
|
|
20
20
|
screenfull: {
|
|
@@ -22,42 +22,42 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
22
|
default: null;
|
|
23
23
|
};
|
|
24
24
|
screenfullJs: {
|
|
25
|
-
type: import(
|
|
25
|
+
type: import('vue').PropType<string>;
|
|
26
26
|
default: string;
|
|
27
27
|
};
|
|
28
28
|
updateSetting: {
|
|
29
|
-
type: import(
|
|
29
|
+
type: import('vue').PropType<import('../../type').UpdateSetting>;
|
|
30
30
|
default: () => void;
|
|
31
31
|
};
|
|
32
32
|
tableShape: {
|
|
33
|
-
type: import(
|
|
33
|
+
type: import('vue').PropType<number[]>;
|
|
34
34
|
default: () => number[];
|
|
35
35
|
};
|
|
36
36
|
defToolbars: {
|
|
37
|
-
type: import(
|
|
37
|
+
type: import('vue').PropType<VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
38
38
|
[key: string]: any;
|
|
39
39
|
}>>;
|
|
40
40
|
};
|
|
41
41
|
noUploadImg: {
|
|
42
|
-
type: import(
|
|
42
|
+
type: import('vue').PropType<boolean>;
|
|
43
43
|
};
|
|
44
44
|
showToolbarName: {
|
|
45
|
-
type: import(
|
|
45
|
+
type: import('vue').PropType<boolean>;
|
|
46
46
|
};
|
|
47
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
47
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
48
48
|
noPrettier: {
|
|
49
|
-
type: import(
|
|
49
|
+
type: import('vue').PropType<boolean>;
|
|
50
50
|
};
|
|
51
51
|
toolbars: {
|
|
52
|
-
type: import(
|
|
52
|
+
type: import('vue').PropType<ToolbarNames[]>;
|
|
53
53
|
default: () => never[];
|
|
54
54
|
};
|
|
55
55
|
toolbarsExclude: {
|
|
56
|
-
type: import(
|
|
56
|
+
type: import('vue').PropType<ToolbarNames[]>;
|
|
57
57
|
default: () => never[];
|
|
58
58
|
};
|
|
59
59
|
setting: {
|
|
60
|
-
type: import(
|
|
60
|
+
type: import('vue').PropType<import('../../type').SettingType>;
|
|
61
61
|
default: () => {};
|
|
62
62
|
};
|
|
63
63
|
screenfull: {
|
|
@@ -65,35 +65,35 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
65
65
|
default: null;
|
|
66
66
|
};
|
|
67
67
|
screenfullJs: {
|
|
68
|
-
type: import(
|
|
68
|
+
type: import('vue').PropType<string>;
|
|
69
69
|
default: string;
|
|
70
70
|
};
|
|
71
71
|
updateSetting: {
|
|
72
|
-
type: import(
|
|
72
|
+
type: import('vue').PropType<import('../../type').UpdateSetting>;
|
|
73
73
|
default: () => void;
|
|
74
74
|
};
|
|
75
75
|
tableShape: {
|
|
76
|
-
type: import(
|
|
76
|
+
type: import('vue').PropType<number[]>;
|
|
77
77
|
default: () => number[];
|
|
78
78
|
};
|
|
79
79
|
defToolbars: {
|
|
80
|
-
type: import(
|
|
80
|
+
type: import('vue').PropType<VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
81
81
|
[key: string]: any;
|
|
82
82
|
}>>;
|
|
83
83
|
};
|
|
84
84
|
noUploadImg: {
|
|
85
|
-
type: import(
|
|
85
|
+
type: import('vue').PropType<boolean>;
|
|
86
86
|
};
|
|
87
87
|
showToolbarName: {
|
|
88
|
-
type: import(
|
|
88
|
+
type: import('vue').PropType<boolean>;
|
|
89
89
|
};
|
|
90
90
|
}>>, {
|
|
91
91
|
toolbars: ToolbarNames[];
|
|
92
92
|
toolbarsExclude: ToolbarNames[];
|
|
93
93
|
tableShape: number[];
|
|
94
|
-
setting: import(
|
|
94
|
+
setting: import('../../type').SettingType;
|
|
95
95
|
screenfull: Record<string, any>;
|
|
96
96
|
screenfullJs: string;
|
|
97
|
-
updateSetting: import(
|
|
98
|
-
}>;
|
|
97
|
+
updateSetting: import('../../type').UpdateSetting;
|
|
98
|
+
}, {}>;
|
|
99
99
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ToolbarNames, MdHeadingId, Themes, Footers, ChangeEvent, SaveEvent, UploadImgEvent, HtmlChangedEvent, GetCatalogEvent, ErrorEvent, EditorEmits, CustomIcon } from './type';
|
|
2
2
|
import { CompletionSource } from '@codemirror/autocomplete';
|
|
3
|
-
import { PropType, CSSProperties } from 'vue';
|
|
3
|
+
import { PropType, CSSProperties, VNode } from 'vue';
|
|
4
4
|
|
|
5
5
|
export declare const mdHeadingId: MdHeadingId;
|
|
6
6
|
export declare const mdPreviewProps: {
|
|
@@ -303,7 +303,9 @@ export declare const editorProps: {
|
|
|
303
303
|
* 自定义的工具栏列表
|
|
304
304
|
*/
|
|
305
305
|
defToolbars: {
|
|
306
|
-
type: PropType<string |
|
|
306
|
+
type: PropType<string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
307
|
+
[key: string]: any;
|
|
308
|
+
}>>;
|
|
307
309
|
};
|
|
308
310
|
/**
|
|
309
311
|
* 内部错误捕获
|
|
@@ -331,7 +333,9 @@ export declare const editorProps: {
|
|
|
331
333
|
* 自定义的也叫工具组件列表
|
|
332
334
|
*/
|
|
333
335
|
defFooters: {
|
|
334
|
-
type: PropType<string |
|
|
336
|
+
type: PropType<string | VNode<import('vue').RendererNode, import('vue').RendererElement, {
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
}>>;
|
|
335
339
|
};
|
|
336
340
|
/**
|
|
337
341
|
* 是否禁用上传图片
|
|
@@ -3,8 +3,8 @@ import { IconName } from './components/Icon/Icon';
|
|
|
3
3
|
import { editorProps, mdPreviewProps } from './props';
|
|
4
4
|
import { KeyBinding, EditorView } from '@codemirror/view';
|
|
5
5
|
import { Extension } from '@codemirror/state';
|
|
6
|
-
import { Component, ExtractPropTypes, SetupContext } from 'vue';
|
|
7
|
-
import { default as markdownit } from 'markdown-it
|
|
6
|
+
import { Component, ExtractPropTypes, SetupContext, VNode } from 'vue';
|
|
7
|
+
import { default as markdownit } from 'markdown-it';
|
|
8
8
|
import { LooseRequired } from '@vue/shared';
|
|
9
9
|
|
|
10
10
|
declare global {
|
|
@@ -428,7 +428,7 @@ export type EditorContext = SetupContext<EditorEmits>;
|
|
|
428
428
|
*/
|
|
429
429
|
export type CustomIcon = {
|
|
430
430
|
[key in IconName]?: {
|
|
431
|
-
component: Component |
|
|
431
|
+
component: Component | VNode | string;
|
|
432
432
|
props?: {
|
|
433
433
|
[key: string | number | symbol]: any;
|
|
434
434
|
};
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @param trigger 触发器,通过该元素移动父级元素
|
|
5
5
|
* @param moveHandler
|
|
6
6
|
*/
|
|
7
|
-
export declare const keyMove: (trigger: HTMLElement, moveHandler?: (
|
|
7
|
+
export declare const keyMove: (trigger: HTMLElement, moveHandler?: (left: number, top: number) => void) => (() => void);
|
|
8
8
|
/**
|
|
9
9
|
* 向页面插入外链标签
|
|
10
10
|
*
|
|
@@ -9,16 +9,7 @@ import { ComponentPublicInstance, SetupContext } from 'vue';
|
|
|
9
9
|
* @returns VNode
|
|
10
10
|
*/
|
|
11
11
|
export declare const getSlot: ({ instance, ctx, props }: {
|
|
12
|
-
instance?: ComponentPublicInstance
|
|
13
|
-
ctx?:
|
|
14
|
-
attrs: {
|
|
15
|
-
[x: string]: unknown;
|
|
16
|
-
};
|
|
17
|
-
slots: Readonly<{
|
|
18
|
-
[name: string]: import('vue').Slot | undefined;
|
|
19
|
-
}>;
|
|
20
|
-
emit: (event: any, ...args: any[]) => void;
|
|
21
|
-
expose: (exposed?: Record<string, any> | undefined) => void;
|
|
22
|
-
} | undefined;
|
|
12
|
+
instance?: ComponentPublicInstance;
|
|
13
|
+
ctx?: SetupContext<Array<any>>;
|
|
23
14
|
props?: any;
|
|
24
15
|
}, name?: string) => any;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
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,89 +12,89 @@ 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
|
-
}, () => JSX.Element, unknown, {}, {}, import(
|
|
91
|
+
}, () => 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<{
|
|
92
92
|
modelValue: {
|
|
93
|
-
type: import(
|
|
93
|
+
type: import('vue').PropType<string>;
|
|
94
94
|
default: string;
|
|
95
95
|
};
|
|
96
96
|
theme: {
|
|
97
|
-
type: import(
|
|
97
|
+
type: import('vue').PropType<import('../MdEditor/type').Themes>;
|
|
98
98
|
default: string;
|
|
99
99
|
};
|
|
100
100
|
class: {
|
|
@@ -102,80 +102,80 @@ declare const MdPreview: import('vue').DefineComponent<{
|
|
|
102
102
|
default: string;
|
|
103
103
|
};
|
|
104
104
|
language: {
|
|
105
|
-
type: import(
|
|
105
|
+
type: import('vue').PropType<string>;
|
|
106
106
|
default: string;
|
|
107
107
|
};
|
|
108
108
|
onHtmlChanged: {
|
|
109
|
-
type: import(
|
|
109
|
+
type: import('vue').PropType<import('../MdEditor/type').HtmlChangedEvent>;
|
|
110
110
|
};
|
|
111
111
|
onGetCatalog: {
|
|
112
|
-
type: import(
|
|
112
|
+
type: import('vue').PropType<import('../MdEditor/type').GetCatalogEvent>;
|
|
113
113
|
};
|
|
114
114
|
editorId: {
|
|
115
|
-
type: import(
|
|
115
|
+
type: import('vue').PropType<string>;
|
|
116
116
|
default: () => string;
|
|
117
117
|
};
|
|
118
118
|
showCodeRowNumber: {
|
|
119
|
-
type: import(
|
|
119
|
+
type: import('vue').PropType<boolean>;
|
|
120
120
|
default: boolean;
|
|
121
121
|
};
|
|
122
122
|
previewTheme: {
|
|
123
|
-
type: import(
|
|
123
|
+
type: import('vue').PropType<string>;
|
|
124
124
|
default: string;
|
|
125
125
|
};
|
|
126
126
|
style: {
|
|
127
|
-
type: import(
|
|
127
|
+
type: import('vue').PropType<string | import('vue').CSSProperties>;
|
|
128
128
|
default: () => {};
|
|
129
129
|
};
|
|
130
130
|
mdHeadingId: {
|
|
131
|
-
type: import(
|
|
132
|
-
default: import(
|
|
131
|
+
type: import('vue').PropType<import('../MdEditor/type').MdHeadingId>;
|
|
132
|
+
default: import('../MdEditor/type').MdHeadingId;
|
|
133
133
|
};
|
|
134
134
|
sanitize: {
|
|
135
|
-
type: import(
|
|
135
|
+
type: import('vue').PropType<(html: string) => string>;
|
|
136
136
|
default: (html: string) => string;
|
|
137
137
|
};
|
|
138
138
|
noMermaid: {
|
|
139
|
-
type: import(
|
|
139
|
+
type: import('vue').PropType<boolean>;
|
|
140
140
|
default: boolean;
|
|
141
141
|
};
|
|
142
142
|
noKatex: {
|
|
143
|
-
type: import(
|
|
143
|
+
type: import('vue').PropType<boolean>;
|
|
144
144
|
default: boolean;
|
|
145
145
|
};
|
|
146
146
|
codeTheme: {
|
|
147
|
-
type: import(
|
|
147
|
+
type: import('vue').PropType<string>;
|
|
148
148
|
default: string;
|
|
149
149
|
};
|
|
150
150
|
noIconfont: {
|
|
151
|
-
type: import(
|
|
151
|
+
type: import('vue').PropType<boolean>;
|
|
152
152
|
};
|
|
153
153
|
formatCopiedText: {
|
|
154
|
-
type: import(
|
|
154
|
+
type: import('vue').PropType<(text: string) => string>;
|
|
155
155
|
default: (text: string) => string;
|
|
156
156
|
};
|
|
157
157
|
codeStyleReverse: {
|
|
158
|
-
type: import(
|
|
158
|
+
type: import('vue').PropType<boolean>;
|
|
159
159
|
default: boolean;
|
|
160
160
|
};
|
|
161
161
|
codeStyleReverseList: {
|
|
162
|
-
type: import(
|
|
162
|
+
type: import('vue').PropType<string[]>;
|
|
163
163
|
default: string[];
|
|
164
164
|
};
|
|
165
165
|
noHighlight: {
|
|
166
|
-
type: import(
|
|
166
|
+
type: import('vue').PropType<boolean>;
|
|
167
167
|
default: boolean;
|
|
168
168
|
};
|
|
169
169
|
noImgZoomIn: {
|
|
170
|
-
type: import(
|
|
170
|
+
type: import('vue').PropType<boolean>;
|
|
171
171
|
default: boolean;
|
|
172
172
|
};
|
|
173
173
|
customIcon: {
|
|
174
|
-
type: import(
|
|
174
|
+
type: import('vue').PropType<import('../MdEditor/type').CustomIcon>;
|
|
175
175
|
default: {};
|
|
176
176
|
};
|
|
177
177
|
sanitizeMermaid: {
|
|
178
|
-
type: import(
|
|
178
|
+
type: import('vue').PropType<(h: string) => Promise<string>>;
|
|
179
179
|
default: (h: string) => Promise<string>;
|
|
180
180
|
};
|
|
181
181
|
}>> & {
|
|
@@ -193,14 +193,14 @@ declare const MdPreview: import('vue').DefineComponent<{
|
|
|
193
193
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
194
194
|
}, {
|
|
195
195
|
class: string;
|
|
196
|
-
style: string | import(
|
|
196
|
+
style: string | import('vue').CSSProperties;
|
|
197
197
|
language: string;
|
|
198
198
|
modelValue: string;
|
|
199
|
-
theme: import(
|
|
199
|
+
theme: import('../MdEditor/type').Themes;
|
|
200
200
|
editorId: string;
|
|
201
201
|
showCodeRowNumber: boolean;
|
|
202
202
|
previewTheme: string;
|
|
203
|
-
mdHeadingId: import(
|
|
203
|
+
mdHeadingId: import('../MdEditor/type').MdHeadingId;
|
|
204
204
|
sanitize: (html: string) => string;
|
|
205
205
|
noMermaid: boolean;
|
|
206
206
|
noKatex: boolean;
|
|
@@ -210,7 +210,7 @@ declare const MdPreview: import('vue').DefineComponent<{
|
|
|
210
210
|
codeStyleReverseList: string[];
|
|
211
211
|
noHighlight: boolean;
|
|
212
212
|
noImgZoomIn: boolean;
|
|
213
|
-
customIcon: import(
|
|
213
|
+
customIcon: import('../MdEditor/type').CustomIcon;
|
|
214
214
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
215
|
-
}>;
|
|
215
|
+
}, {}>;
|
|
216
216
|
export default MdPreview;
|