md-editor-v3 4.12.3 → 4.13.0-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/README.md +24 -0
- package/lib/cjs/MdEditor.cjs +59 -24
- package/lib/cjs/chunks/config.cjs +5 -2
- package/lib/cjs/chunks/index.cjs +34 -9
- package/lib/cjs/chunks/index4.cjs +2 -0
- package/lib/es/MdEditor.mjs +60 -25
- package/lib/es/chunks/config.mjs +5 -2
- package/lib/es/chunks/index.mjs +35 -10
- package/lib/es/chunks/index4.mjs +11 -9
- package/lib/types/DropdownToolbar/DropdownToolbar.d.ts +3 -2
- package/lib/types/DropdownToolbar/index.d.ts +17 -16
- package/lib/types/MdCatalog/CatalogLink.d.ts +5 -4
- package/lib/types/MdCatalog/MdCatalog.d.ts +3 -2
- package/lib/types/MdCatalog/index.d.ts +19 -18
- package/lib/types/MdEditor/Editor.d.ts +37 -37
- package/lib/types/MdEditor/components/Checkbox/index.d.ts +2 -1
- package/lib/types/MdEditor/components/Divider/index.d.ts +1 -1
- package/lib/types/MdEditor/components/Dropdown/index.d.ts +2 -1
- package/lib/types/MdEditor/components/Icon/Icon.d.ts +3 -2
- package/lib/types/MdEditor/components/Icon/Str.d.ts +1 -0
- package/lib/types/MdEditor/components/Icon/index.d.ts +3 -2
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +2 -1
- package/lib/types/MdEditor/components/Modal/index.d.ts +18 -17
- package/lib/types/MdEditor/components/Popper/index.d.ts +2 -1
- package/lib/types/MdEditor/composition.d.ts +4 -4
- package/lib/types/MdEditor/config.d.ts +3 -2
- package/lib/types/MdEditor/index.d.ts +27 -26
- package/lib/types/MdEditor/layouts/Content/ContentPreview.d.ts +14 -13
- package/lib/types/MdEditor/layouts/Content/codemirror/autocompletion.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/codemirror/commands.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/codemirror/index.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/codemirror/themeLight.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/codemirror/themeOneDark.d.ts +2 -4
- package/lib/types/MdEditor/layouts/Content/composition/index.d.ts +7 -6
- package/lib/types/MdEditor/layouts/Content/composition/useAttach.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/useAutoScroll.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/composition/useCodeMirror.d.ts +4 -3
- package/lib/types/MdEditor/layouts/Content/composition/useCopyCode.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/useHighlight.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/composition/useKatex.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/composition/useMarkdownIt.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/composition/useMermaid.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/usePasteUpload.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Content/composition/useResize.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/composition/userZoom.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/index.d.ts +14 -14
- package/lib/types/MdEditor/layouts/Content/markdownIt/codetabs/index.d.ts +2 -9
- package/lib/types/MdEditor/layouts/Content/markdownIt/heading/index.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Content/markdownIt/katex/index.d.ts +1 -5
- package/lib/types/MdEditor/layouts/Content/markdownIt/mermaid/index.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Content/props.d.ts +4 -3
- package/lib/types/MdEditor/layouts/Content/type.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Footer/MarkdownTotal.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Footer/ScrollAuto.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Footer/index.d.ts +3 -2
- package/lib/types/MdEditor/layouts/Modals/Clip.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Modals/Link.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Modals/index.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Toolbar/TableShape.d.ts +2 -1
- package/lib/types/MdEditor/layouts/Toolbar/composition.d.ts +1 -0
- package/lib/types/MdEditor/layouts/Toolbar/index.d.ts +9 -8
- package/lib/types/MdEditor/layouts/Toolbar/props.d.ts +4 -3
- package/lib/types/MdEditor/props.d.ts +3 -2
- package/lib/types/MdEditor/static/event-name.d.ts +1 -0
- package/lib/types/MdEditor/type.d.ts +18 -6
- package/lib/types/MdEditor/utils/content-help.d.ts +2 -1
- package/lib/types/MdEditor/utils/scroll-auto.d.ts +2 -1
- package/lib/types/MdEditor/utils/vue-tsx.d.ts +2 -1
- package/lib/types/MdPreview/MdPreview.d.ts +18 -18
- package/lib/types/MdPreview/composition/useExpose.d.ts +2 -1
- package/lib/types/MdPreview/index.d.ts +24 -23
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +3 -2
- package/lib/types/ModalToolbar/index.d.ts +17 -16
- package/lib/types/NormalToolbar/NormalToolbar.d.ts +3 -2
- package/lib/types/NormalToolbar/index.d.ts +17 -16
- package/lib/types/config.d.ts +2 -2
- package/lib/umd/index.js +36 -36
- package/package.json +2 -2
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
|
|
2
3
|
declare const _default: {
|
|
3
4
|
new (...args: any[]): {
|
|
4
|
-
$: import(
|
|
5
|
+
$: import('vue').ComponentInternalInstance;
|
|
5
6
|
$data: {};
|
|
6
7
|
$props: Partial<{
|
|
7
8
|
class: string;
|
|
8
|
-
style: string | import(
|
|
9
|
-
modelValue: string;
|
|
10
|
-
theme: import("..").Themes;
|
|
9
|
+
style: string | import('vue').CSSProperties;
|
|
11
10
|
language: string;
|
|
11
|
+
modelValue: string;
|
|
12
|
+
theme: import('..').Themes;
|
|
12
13
|
editorId: string;
|
|
13
14
|
showCodeRowNumber: boolean;
|
|
14
15
|
previewTheme: string;
|
|
15
|
-
mdHeadingId: import(
|
|
16
|
+
mdHeadingId: import('..').MdHeadingId;
|
|
16
17
|
sanitize: (html: string) => string;
|
|
17
18
|
noMermaid: boolean;
|
|
18
19
|
noKatex: boolean;
|
|
@@ -22,9 +23,9 @@ declare const _default: {
|
|
|
22
23
|
codeStyleReverseList: string[];
|
|
23
24
|
noHighlight: boolean;
|
|
24
25
|
noImgZoomIn: boolean;
|
|
25
|
-
customIcon: import(
|
|
26
|
+
customIcon: import('..').CustomIcon;
|
|
26
27
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
27
|
-
}> & Omit<Readonly<import(
|
|
28
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
28
29
|
modelValue: {
|
|
29
30
|
type: import("vue").PropType<string>;
|
|
30
31
|
default: string;
|
|
@@ -127,7 +128,7 @@ declare const _default: {
|
|
|
127
128
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
128
129
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
129
130
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
130
|
-
} & import(
|
|
131
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "class" | "style" | "language" | "modelValue" | "theme" | "editorId" | "showCodeRowNumber" | "previewTheme" | "mdHeadingId" | "sanitize" | "noMermaid" | "noKatex" | "codeTheme" | "formatCopiedText" | "codeStyleReverse" | "codeStyleReverseList" | "noHighlight" | "noImgZoomIn" | "customIcon" | "sanitizeMermaid">;
|
|
131
132
|
$attrs: {
|
|
132
133
|
[x: string]: unknown;
|
|
133
134
|
};
|
|
@@ -135,13 +136,13 @@ declare const _default: {
|
|
|
135
136
|
[x: string]: unknown;
|
|
136
137
|
};
|
|
137
138
|
$slots: Readonly<{
|
|
138
|
-
[name: string]: import(
|
|
139
|
+
[name: string]: import('vue').Slot | undefined;
|
|
139
140
|
}>;
|
|
140
|
-
$root: import(
|
|
141
|
-
$parent: import(
|
|
141
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
142
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
142
143
|
$emit: (event: "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", ...args: any[]) => void;
|
|
143
144
|
$el: any;
|
|
144
|
-
$options: import(
|
|
145
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
145
146
|
modelValue: {
|
|
146
147
|
type: import("vue").PropType<string>;
|
|
147
148
|
default: string;
|
|
@@ -247,9 +248,9 @@ declare const _default: {
|
|
|
247
248
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("..").EditorEmits, string, {
|
|
248
249
|
class: string;
|
|
249
250
|
style: string | import("vue").CSSProperties;
|
|
251
|
+
language: string;
|
|
250
252
|
modelValue: string;
|
|
251
253
|
theme: import("..").Themes;
|
|
252
|
-
language: string;
|
|
253
254
|
editorId: string;
|
|
254
255
|
showCodeRowNumber: boolean;
|
|
255
256
|
previewTheme: string;
|
|
@@ -278,14 +279,14 @@ declare const _default: {
|
|
|
278
279
|
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
279
280
|
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
280
281
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
281
|
-
renderTracked?: (((e: import(
|
|
282
|
-
renderTriggered?: (((e: import(
|
|
283
|
-
errorCaptured?: (((err: unknown, instance: import(
|
|
282
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
283
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
284
|
+
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
284
285
|
};
|
|
285
286
|
$forceUpdate: () => void;
|
|
286
|
-
$nextTick: typeof import(
|
|
287
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import(
|
|
288
|
-
} & Readonly<import(
|
|
287
|
+
$nextTick: typeof import('vue').nextTick;
|
|
288
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
289
|
+
} & Readonly<import('vue').ExtractPropTypes<{
|
|
289
290
|
modelValue: {
|
|
290
291
|
type: import("vue").PropType<string>;
|
|
291
292
|
default: string;
|
|
@@ -388,11 +389,11 @@ declare const _default: {
|
|
|
388
389
|
onOnInput?: ((...args: any[]) => any) | undefined;
|
|
389
390
|
onOnDrop?: ((...args: any[]) => any) | undefined;
|
|
390
391
|
onOnInputBoxWitdhChange?: ((...args: any[]) => any) | undefined;
|
|
391
|
-
} & import(
|
|
392
|
+
} & import('vue').ShallowUnwrapRef<() => JSX.Element> & {} & import('vue').ComponentCustomProperties & {};
|
|
392
393
|
__isFragment?: undefined;
|
|
393
394
|
__isTeleport?: undefined;
|
|
394
395
|
__isSuspense?: undefined;
|
|
395
|
-
} & import(
|
|
396
|
+
} & import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
396
397
|
modelValue: {
|
|
397
398
|
type: import("vue").PropType<string>;
|
|
398
399
|
default: string;
|
|
@@ -498,9 +499,9 @@ declare const _default: {
|
|
|
498
499
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("..").EditorEmits, "onChange" | "onSave" | "onUploadImg" | "onHtmlChanged" | "onGetCatalog" | "onError" | "update:modelValue" | "onBlur" | "onFocus" | "onInput" | "onDrop" | "onInputBoxWitdhChange", {
|
|
499
500
|
class: string;
|
|
500
501
|
style: string | import("vue").CSSProperties;
|
|
502
|
+
language: string;
|
|
501
503
|
modelValue: string;
|
|
502
504
|
theme: import("..").Themes;
|
|
503
|
-
language: string;
|
|
504
505
|
editorId: string;
|
|
505
506
|
showCodeRowNumber: boolean;
|
|
506
507
|
previewTheme: string;
|
|
@@ -516,7 +517,7 @@ declare const _default: {
|
|
|
516
517
|
noImgZoomIn: boolean;
|
|
517
518
|
customIcon: import("..").CustomIcon;
|
|
518
519
|
sanitizeMermaid: (h: string) => Promise<string>;
|
|
519
|
-
}, {}, string> & import(
|
|
520
|
+
}, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
520
521
|
install: (app: App) => App;
|
|
521
522
|
};
|
|
522
523
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
1
|
import { Themes } from '../MdEditor/type';
|
|
3
|
-
|
|
2
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
title: {
|
|
5
6
|
type: PropType<string>;
|
|
6
7
|
default: string;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
|
|
2
3
|
declare const _default: {
|
|
3
4
|
new (...args: any[]): {
|
|
4
|
-
$: import(
|
|
5
|
+
$: import('vue').ComponentInternalInstance;
|
|
5
6
|
$data: {};
|
|
6
7
|
$props: Partial<{
|
|
7
8
|
title: string;
|
|
@@ -10,7 +11,7 @@ declare const _default: {
|
|
|
10
11
|
showAdjust: boolean;
|
|
11
12
|
isFullscreen: boolean;
|
|
12
13
|
modalTitle: string;
|
|
13
|
-
}> & Omit<Readonly<import(
|
|
14
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
14
15
|
title: {
|
|
15
16
|
type: import("vue").PropType<string>;
|
|
16
17
|
default: string;
|
|
@@ -63,7 +64,7 @@ declare const _default: {
|
|
|
63
64
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
64
65
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
65
66
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
66
|
-
} & import(
|
|
67
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title" | "height" | "width" | "showAdjust" | "isFullscreen" | "modalTitle">;
|
|
67
68
|
$attrs: {
|
|
68
69
|
[x: string]: unknown;
|
|
69
70
|
};
|
|
@@ -71,13 +72,13 @@ declare const _default: {
|
|
|
71
72
|
[x: string]: unknown;
|
|
72
73
|
};
|
|
73
74
|
$slots: Readonly<{
|
|
74
|
-
[name: string]: import(
|
|
75
|
+
[name: string]: import('vue').Slot | undefined;
|
|
75
76
|
}>;
|
|
76
|
-
$root: import(
|
|
77
|
-
$parent: import(
|
|
77
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
78
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
78
79
|
$emit: (event: "onClick" | "onClose" | "onAdjust", ...args: any[]) => void;
|
|
79
80
|
$el: any;
|
|
80
|
-
$options: import(
|
|
81
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
81
82
|
title: {
|
|
82
83
|
type: import("vue").PropType<string>;
|
|
83
84
|
default: string;
|
|
@@ -150,14 +151,14 @@ declare const _default: {
|
|
|
150
151
|
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
151
152
|
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
152
153
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
153
|
-
renderTracked?: (((e: import(
|
|
154
|
-
renderTriggered?: (((e: import(
|
|
155
|
-
errorCaptured?: (((err: unknown, instance: import(
|
|
154
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
155
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
156
|
+
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
156
157
|
};
|
|
157
158
|
$forceUpdate: () => void;
|
|
158
|
-
$nextTick: typeof import(
|
|
159
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import(
|
|
160
|
-
} & Readonly<import(
|
|
159
|
+
$nextTick: typeof import('vue').nextTick;
|
|
160
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
161
|
+
} & Readonly<import('vue').ExtractPropTypes<{
|
|
161
162
|
title: {
|
|
162
163
|
type: import("vue").PropType<string>;
|
|
163
164
|
default: string;
|
|
@@ -210,11 +211,11 @@ declare const _default: {
|
|
|
210
211
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
211
212
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
212
213
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
213
|
-
} & import(
|
|
214
|
+
} & import('vue').ShallowUnwrapRef<() => JSX.Element> & {} & import('vue').ComponentCustomProperties & {};
|
|
214
215
|
__isFragment?: undefined;
|
|
215
216
|
__isTeleport?: undefined;
|
|
216
217
|
__isSuspense?: undefined;
|
|
217
|
-
} & import(
|
|
218
|
+
} & import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
218
219
|
title: {
|
|
219
220
|
type: import("vue").PropType<string>;
|
|
220
221
|
default: string;
|
|
@@ -274,7 +275,7 @@ declare const _default: {
|
|
|
274
275
|
showAdjust: boolean;
|
|
275
276
|
isFullscreen: boolean;
|
|
276
277
|
modalTitle: string;
|
|
277
|
-
}, {}, string> & import(
|
|
278
|
+
}, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
278
279
|
install: (app: App) => App;
|
|
279
280
|
};
|
|
280
281
|
export default _default;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes } from 'vue';
|
|
2
1
|
import { Themes } from '../MdEditor/type';
|
|
3
|
-
|
|
2
|
+
import { PropType, ExtractPropTypes } from 'vue';
|
|
3
|
+
|
|
4
|
+
declare const _default: import('vue').DefineComponent<{
|
|
4
5
|
title: {
|
|
5
6
|
type: PropType<string>;
|
|
6
7
|
default: string;
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
+
|
|
2
3
|
declare const _default: {
|
|
3
4
|
new (...args: any[]): {
|
|
4
|
-
$: import(
|
|
5
|
+
$: import('vue').ComponentInternalInstance;
|
|
5
6
|
$data: {};
|
|
6
7
|
$props: Partial<{
|
|
7
8
|
title: string;
|
|
8
|
-
}> & Omit<Readonly<import(
|
|
9
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
9
10
|
title: {
|
|
10
11
|
type: import("vue").PropType<string>;
|
|
11
12
|
default: string;
|
|
@@ -27,7 +28,7 @@ declare const _default: {
|
|
|
27
28
|
};
|
|
28
29
|
}>> & {
|
|
29
30
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
30
|
-
} & import(
|
|
31
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "title">;
|
|
31
32
|
$attrs: {
|
|
32
33
|
[x: string]: unknown;
|
|
33
34
|
};
|
|
@@ -35,13 +36,13 @@ declare const _default: {
|
|
|
35
36
|
[x: string]: unknown;
|
|
36
37
|
};
|
|
37
38
|
$slots: Readonly<{
|
|
38
|
-
[name: string]: import(
|
|
39
|
+
[name: string]: import('vue').Slot | undefined;
|
|
39
40
|
}>;
|
|
40
|
-
$root: import(
|
|
41
|
-
$parent: import(
|
|
41
|
+
$root: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
42
|
+
$parent: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null;
|
|
42
43
|
$emit: (event: "onClick", ...args: any[]) => void;
|
|
43
44
|
$el: any;
|
|
44
|
-
$options: import(
|
|
45
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
45
46
|
title: {
|
|
46
47
|
type: import("vue").PropType<string>;
|
|
47
48
|
default: string;
|
|
@@ -78,14 +79,14 @@ declare const _default: {
|
|
|
78
79
|
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
79
80
|
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
80
81
|
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
-
renderTracked?: (((e: import(
|
|
82
|
-
renderTriggered?: (((e: import(
|
|
83
|
-
errorCaptured?: (((err: unknown, instance: import(
|
|
82
|
+
renderTracked?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
83
|
+
renderTriggered?: (((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[]) | undefined;
|
|
84
|
+
errorCaptured?: (((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string>, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
84
85
|
};
|
|
85
86
|
$forceUpdate: () => void;
|
|
86
|
-
$nextTick: typeof import(
|
|
87
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import(
|
|
88
|
-
} & Readonly<import(
|
|
87
|
+
$nextTick: typeof import('vue').nextTick;
|
|
88
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import('vue').WatchOptions<boolean> | undefined): import('vue').WatchStopHandle;
|
|
89
|
+
} & Readonly<import('vue').ExtractPropTypes<{
|
|
89
90
|
title: {
|
|
90
91
|
type: import("vue").PropType<string>;
|
|
91
92
|
default: string;
|
|
@@ -107,11 +108,11 @@ declare const _default: {
|
|
|
107
108
|
};
|
|
108
109
|
}>> & {
|
|
109
110
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
110
|
-
} & import(
|
|
111
|
+
} & import('vue').ShallowUnwrapRef<() => JSX.Element> & {} & import('vue').ComponentCustomProperties & {};
|
|
111
112
|
__isFragment?: undefined;
|
|
112
113
|
__isTeleport?: undefined;
|
|
113
114
|
__isSuspense?: undefined;
|
|
114
|
-
} & import(
|
|
115
|
+
} & import('vue').ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
115
116
|
title: {
|
|
116
117
|
type: import("vue").PropType<string>;
|
|
117
118
|
default: string;
|
|
@@ -135,7 +136,7 @@ declare const _default: {
|
|
|
135
136
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
136
137
|
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", {
|
|
137
138
|
title: string;
|
|
138
|
-
}, {}, string> & import(
|
|
139
|
+
}, {}, string> & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps & {
|
|
139
140
|
install: (app: App) => App;
|
|
140
141
|
};
|
|
141
142
|
export default _default;
|
package/lib/types/config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { config, iconfontClassUrl, iconfontSvgUrl, allToolbar, allFooter } from './MdEditor/config';
|
|
2
|
-
export declare const zh_CN: import(
|
|
3
|
-
export declare const en_US: import(
|
|
2
|
+
export declare const zh_CN: import('.').StaticTextDefaultValue;
|
|
3
|
+
export declare const en_US: import('.').StaticTextDefaultValue;
|