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,7 +1,6 @@
|
|
|
1
|
+
import { PropType, ExtractPropTypes, VNode, CSSProperties } from 'vue';
|
|
1
2
|
import { Themes } from '../MdEditor/type';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
title: {
|
|
6
5
|
type: PropType<string>;
|
|
7
6
|
default: string;
|
|
@@ -22,7 +21,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
22
21
|
default: string;
|
|
23
22
|
};
|
|
24
23
|
trigger: {
|
|
25
|
-
type: PropType<string | VNode<import(
|
|
24
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
25
|
[key: string]: any;
|
|
27
26
|
}>>;
|
|
28
27
|
};
|
|
@@ -46,6 +45,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
46
45
|
onAdjust: {
|
|
47
46
|
type: PropType<(val: boolean) => void>;
|
|
48
47
|
};
|
|
48
|
+
class: {
|
|
49
|
+
type: PropType<string>;
|
|
50
|
+
};
|
|
51
|
+
style: {
|
|
52
|
+
type: PropType<string | CSSProperties>;
|
|
53
|
+
};
|
|
54
|
+
showMask: {
|
|
55
|
+
type: PropType<boolean>;
|
|
56
|
+
};
|
|
49
57
|
/**
|
|
50
58
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
51
59
|
*/
|
|
@@ -61,7 +69,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
61
69
|
previewTheme: {
|
|
62
70
|
type: PropType<string>;
|
|
63
71
|
};
|
|
64
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
72
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onClose" | "onAdjust")[], "onClick" | "onClose" | "onAdjust", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
65
73
|
title: {
|
|
66
74
|
type: PropType<string>;
|
|
67
75
|
default: string;
|
|
@@ -82,7 +90,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
82
90
|
default: string;
|
|
83
91
|
};
|
|
84
92
|
trigger: {
|
|
85
|
-
type: PropType<string | VNode<import(
|
|
93
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
86
94
|
[key: string]: any;
|
|
87
95
|
}>>;
|
|
88
96
|
};
|
|
@@ -106,6 +114,15 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
106
114
|
onAdjust: {
|
|
107
115
|
type: PropType<(val: boolean) => void>;
|
|
108
116
|
};
|
|
117
|
+
class: {
|
|
118
|
+
type: PropType<string>;
|
|
119
|
+
};
|
|
120
|
+
style: {
|
|
121
|
+
type: PropType<string | CSSProperties>;
|
|
122
|
+
};
|
|
123
|
+
showMask: {
|
|
124
|
+
type: PropType<boolean>;
|
|
125
|
+
};
|
|
109
126
|
/**
|
|
110
127
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
111
128
|
*/
|
|
@@ -1,117 +1,134 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
|
|
3
2
|
declare const _default: {
|
|
4
|
-
new (...args: any[]): import(
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
5
4
|
title: {
|
|
6
|
-
type: import(
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
7
6
|
default: string;
|
|
8
7
|
};
|
|
9
8
|
modalTitle: {
|
|
10
|
-
type: import(
|
|
9
|
+
type: import("vue").PropType<string>;
|
|
11
10
|
default: string;
|
|
12
11
|
};
|
|
13
12
|
visible: {
|
|
14
|
-
type: import(
|
|
13
|
+
type: import("vue").PropType<boolean>;
|
|
15
14
|
};
|
|
16
15
|
width: {
|
|
17
|
-
type: import(
|
|
16
|
+
type: import("vue").PropType<string>;
|
|
18
17
|
default: string;
|
|
19
18
|
};
|
|
20
19
|
height: {
|
|
21
|
-
type: import(
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
22
21
|
default: string;
|
|
23
22
|
};
|
|
24
23
|
trigger: {
|
|
25
|
-
type: import(
|
|
24
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
25
|
[key: string]: any;
|
|
27
26
|
}>>;
|
|
28
27
|
};
|
|
29
28
|
onClick: {
|
|
30
|
-
type: import(
|
|
29
|
+
type: import("vue").PropType<() => void>;
|
|
31
30
|
};
|
|
32
31
|
onClose: {
|
|
33
|
-
type: import(
|
|
32
|
+
type: import("vue").PropType<() => void>;
|
|
34
33
|
};
|
|
35
34
|
showAdjust: {
|
|
36
|
-
type: import(
|
|
35
|
+
type: import("vue").PropType<boolean>;
|
|
37
36
|
default: boolean;
|
|
38
37
|
};
|
|
39
38
|
isFullscreen: {
|
|
40
|
-
type: import(
|
|
39
|
+
type: import("vue").PropType<boolean>;
|
|
41
40
|
default: boolean;
|
|
42
41
|
};
|
|
43
42
|
onAdjust: {
|
|
44
|
-
type: import(
|
|
43
|
+
type: import("vue").PropType<(val: boolean) => void>;
|
|
44
|
+
};
|
|
45
|
+
class: {
|
|
46
|
+
type: import("vue").PropType<string>;
|
|
47
|
+
};
|
|
48
|
+
style: {
|
|
49
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
50
|
+
};
|
|
51
|
+
showMask: {
|
|
52
|
+
type: import("vue").PropType<boolean>;
|
|
45
53
|
};
|
|
46
54
|
insert: {
|
|
47
|
-
type: import(
|
|
55
|
+
type: import("vue").PropType<() => void>;
|
|
48
56
|
};
|
|
49
57
|
language: {
|
|
50
|
-
type: import(
|
|
58
|
+
type: import("vue").PropType<string>;
|
|
51
59
|
};
|
|
52
60
|
theme: {
|
|
53
|
-
type: import(
|
|
61
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
54
62
|
};
|
|
55
63
|
previewTheme: {
|
|
56
|
-
type: import(
|
|
64
|
+
type: import("vue").PropType<string>;
|
|
57
65
|
};
|
|
58
66
|
}>> & {
|
|
59
67
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
60
68
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
61
69
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
62
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
70
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onClose" | "onAdjust")[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
63
71
|
title: {
|
|
64
|
-
type: import(
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
65
73
|
default: string;
|
|
66
74
|
};
|
|
67
75
|
modalTitle: {
|
|
68
|
-
type: import(
|
|
76
|
+
type: import("vue").PropType<string>;
|
|
69
77
|
default: string;
|
|
70
78
|
};
|
|
71
79
|
visible: {
|
|
72
|
-
type: import(
|
|
80
|
+
type: import("vue").PropType<boolean>;
|
|
73
81
|
};
|
|
74
82
|
width: {
|
|
75
|
-
type: import(
|
|
83
|
+
type: import("vue").PropType<string>;
|
|
76
84
|
default: string;
|
|
77
85
|
};
|
|
78
86
|
height: {
|
|
79
|
-
type: import(
|
|
87
|
+
type: import("vue").PropType<string>;
|
|
80
88
|
default: string;
|
|
81
89
|
};
|
|
82
90
|
trigger: {
|
|
83
|
-
type: import(
|
|
91
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
84
92
|
[key: string]: any;
|
|
85
93
|
}>>;
|
|
86
94
|
};
|
|
87
95
|
onClick: {
|
|
88
|
-
type: import(
|
|
96
|
+
type: import("vue").PropType<() => void>;
|
|
89
97
|
};
|
|
90
98
|
onClose: {
|
|
91
|
-
type: import(
|
|
99
|
+
type: import("vue").PropType<() => void>;
|
|
92
100
|
};
|
|
93
101
|
showAdjust: {
|
|
94
|
-
type: import(
|
|
102
|
+
type: import("vue").PropType<boolean>;
|
|
95
103
|
default: boolean;
|
|
96
104
|
};
|
|
97
105
|
isFullscreen: {
|
|
98
|
-
type: import(
|
|
106
|
+
type: import("vue").PropType<boolean>;
|
|
99
107
|
default: boolean;
|
|
100
108
|
};
|
|
101
109
|
onAdjust: {
|
|
102
|
-
type: import(
|
|
110
|
+
type: import("vue").PropType<(val: boolean) => void>;
|
|
111
|
+
};
|
|
112
|
+
class: {
|
|
113
|
+
type: import("vue").PropType<string>;
|
|
114
|
+
};
|
|
115
|
+
style: {
|
|
116
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
117
|
+
};
|
|
118
|
+
showMask: {
|
|
119
|
+
type: import("vue").PropType<boolean>;
|
|
103
120
|
};
|
|
104
121
|
insert: {
|
|
105
|
-
type: import(
|
|
122
|
+
type: import("vue").PropType<() => void>;
|
|
106
123
|
};
|
|
107
124
|
language: {
|
|
108
|
-
type: import(
|
|
125
|
+
type: import("vue").PropType<string>;
|
|
109
126
|
};
|
|
110
127
|
theme: {
|
|
111
|
-
type: import(
|
|
128
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
112
129
|
};
|
|
113
130
|
previewTheme: {
|
|
114
|
-
type: import(
|
|
131
|
+
type: import("vue").PropType<string>;
|
|
115
132
|
};
|
|
116
133
|
}>> & {
|
|
117
134
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -131,59 +148,68 @@ declare const _default: {
|
|
|
131
148
|
C: {};
|
|
132
149
|
M: {};
|
|
133
150
|
Defaults: {};
|
|
134
|
-
}, Readonly<import(
|
|
151
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
135
152
|
title: {
|
|
136
|
-
type: import(
|
|
153
|
+
type: import("vue").PropType<string>;
|
|
137
154
|
default: string;
|
|
138
155
|
};
|
|
139
156
|
modalTitle: {
|
|
140
|
-
type: import(
|
|
157
|
+
type: import("vue").PropType<string>;
|
|
141
158
|
default: string;
|
|
142
159
|
};
|
|
143
160
|
visible: {
|
|
144
|
-
type: import(
|
|
161
|
+
type: import("vue").PropType<boolean>;
|
|
145
162
|
};
|
|
146
163
|
width: {
|
|
147
|
-
type: import(
|
|
164
|
+
type: import("vue").PropType<string>;
|
|
148
165
|
default: string;
|
|
149
166
|
};
|
|
150
167
|
height: {
|
|
151
|
-
type: import(
|
|
168
|
+
type: import("vue").PropType<string>;
|
|
152
169
|
default: string;
|
|
153
170
|
};
|
|
154
171
|
trigger: {
|
|
155
|
-
type: import(
|
|
172
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
156
173
|
[key: string]: any;
|
|
157
174
|
}>>;
|
|
158
175
|
};
|
|
159
176
|
onClick: {
|
|
160
|
-
type: import(
|
|
177
|
+
type: import("vue").PropType<() => void>;
|
|
161
178
|
};
|
|
162
179
|
onClose: {
|
|
163
|
-
type: import(
|
|
180
|
+
type: import("vue").PropType<() => void>;
|
|
164
181
|
};
|
|
165
182
|
showAdjust: {
|
|
166
|
-
type: import(
|
|
183
|
+
type: import("vue").PropType<boolean>;
|
|
167
184
|
default: boolean;
|
|
168
185
|
};
|
|
169
186
|
isFullscreen: {
|
|
170
|
-
type: import(
|
|
187
|
+
type: import("vue").PropType<boolean>;
|
|
171
188
|
default: boolean;
|
|
172
189
|
};
|
|
173
190
|
onAdjust: {
|
|
174
|
-
type: import(
|
|
191
|
+
type: import("vue").PropType<(val: boolean) => void>;
|
|
192
|
+
};
|
|
193
|
+
class: {
|
|
194
|
+
type: import("vue").PropType<string>;
|
|
195
|
+
};
|
|
196
|
+
style: {
|
|
197
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
198
|
+
};
|
|
199
|
+
showMask: {
|
|
200
|
+
type: import("vue").PropType<boolean>;
|
|
175
201
|
};
|
|
176
202
|
insert: {
|
|
177
|
-
type: import(
|
|
203
|
+
type: import("vue").PropType<() => void>;
|
|
178
204
|
};
|
|
179
205
|
language: {
|
|
180
|
-
type: import(
|
|
206
|
+
type: import("vue").PropType<string>;
|
|
181
207
|
};
|
|
182
208
|
theme: {
|
|
183
|
-
type: import(
|
|
209
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
184
210
|
};
|
|
185
211
|
previewTheme: {
|
|
186
|
-
type: import(
|
|
212
|
+
type: import("vue").PropType<string>;
|
|
187
213
|
};
|
|
188
214
|
}>> & {
|
|
189
215
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
@@ -200,72 +226,81 @@ declare const _default: {
|
|
|
200
226
|
__isFragment?: undefined;
|
|
201
227
|
__isTeleport?: undefined;
|
|
202
228
|
__isSuspense?: undefined;
|
|
203
|
-
} & import(
|
|
229
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
204
230
|
title: {
|
|
205
|
-
type: import(
|
|
231
|
+
type: import("vue").PropType<string>;
|
|
206
232
|
default: string;
|
|
207
233
|
};
|
|
208
234
|
modalTitle: {
|
|
209
|
-
type: import(
|
|
235
|
+
type: import("vue").PropType<string>;
|
|
210
236
|
default: string;
|
|
211
237
|
};
|
|
212
238
|
visible: {
|
|
213
|
-
type: import(
|
|
239
|
+
type: import("vue").PropType<boolean>;
|
|
214
240
|
};
|
|
215
241
|
width: {
|
|
216
|
-
type: import(
|
|
242
|
+
type: import("vue").PropType<string>;
|
|
217
243
|
default: string;
|
|
218
244
|
};
|
|
219
245
|
height: {
|
|
220
|
-
type: import(
|
|
246
|
+
type: import("vue").PropType<string>;
|
|
221
247
|
default: string;
|
|
222
248
|
};
|
|
223
249
|
trigger: {
|
|
224
|
-
type: import(
|
|
250
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
225
251
|
[key: string]: any;
|
|
226
252
|
}>>;
|
|
227
253
|
};
|
|
228
254
|
onClick: {
|
|
229
|
-
type: import(
|
|
255
|
+
type: import("vue").PropType<() => void>;
|
|
230
256
|
};
|
|
231
257
|
onClose: {
|
|
232
|
-
type: import(
|
|
258
|
+
type: import("vue").PropType<() => void>;
|
|
233
259
|
};
|
|
234
260
|
showAdjust: {
|
|
235
|
-
type: import(
|
|
261
|
+
type: import("vue").PropType<boolean>;
|
|
236
262
|
default: boolean;
|
|
237
263
|
};
|
|
238
264
|
isFullscreen: {
|
|
239
|
-
type: import(
|
|
265
|
+
type: import("vue").PropType<boolean>;
|
|
240
266
|
default: boolean;
|
|
241
267
|
};
|
|
242
268
|
onAdjust: {
|
|
243
|
-
type: import(
|
|
269
|
+
type: import("vue").PropType<(val: boolean) => void>;
|
|
270
|
+
};
|
|
271
|
+
class: {
|
|
272
|
+
type: import("vue").PropType<string>;
|
|
273
|
+
};
|
|
274
|
+
style: {
|
|
275
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
276
|
+
};
|
|
277
|
+
showMask: {
|
|
278
|
+
type: import("vue").PropType<boolean>;
|
|
244
279
|
};
|
|
245
280
|
insert: {
|
|
246
|
-
type: import(
|
|
281
|
+
type: import("vue").PropType<() => void>;
|
|
247
282
|
};
|
|
248
283
|
language: {
|
|
249
|
-
type: import(
|
|
284
|
+
type: import("vue").PropType<string>;
|
|
250
285
|
};
|
|
251
286
|
theme: {
|
|
252
|
-
type: import(
|
|
287
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
253
288
|
};
|
|
254
289
|
previewTheme: {
|
|
255
|
-
type: import(
|
|
290
|
+
type: import("vue").PropType<string>;
|
|
256
291
|
};
|
|
257
292
|
}>> & {
|
|
258
293
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
259
294
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
260
295
|
onOnAdjust?: ((...args: any[]) => any) | undefined;
|
|
261
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
296
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onClick" | "onClose" | "onAdjust")[], "onClick" | "onClose" | "onAdjust", {
|
|
262
297
|
title: string;
|
|
263
298
|
height: string;
|
|
264
299
|
width: string;
|
|
265
300
|
showAdjust: boolean;
|
|
266
301
|
isFullscreen: boolean;
|
|
267
302
|
modalTitle: string;
|
|
268
|
-
}, {}, string, {}> & import(
|
|
303
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
269
304
|
install: (app: App) => App;
|
|
270
305
|
};
|
|
271
306
|
export default _default;
|
|
@@ -1,13 +1,12 @@
|
|
|
1
|
-
import { Themes } from '../MdEditor/type';
|
|
2
1
|
import { PropType, ExtractPropTypes, VNode } from 'vue';
|
|
3
|
-
|
|
4
|
-
declare const _default: import(
|
|
2
|
+
import { Themes } from '../MdEditor/type';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
5
4
|
title: {
|
|
6
5
|
type: PropType<string>;
|
|
7
6
|
default: string;
|
|
8
7
|
};
|
|
9
8
|
trigger: {
|
|
10
|
-
type: PropType<string | VNode<import(
|
|
9
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
10
|
[key: string]: any;
|
|
12
11
|
}>>;
|
|
13
12
|
};
|
|
@@ -26,13 +25,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
25
|
theme: {
|
|
27
26
|
type: PropType<Themes>;
|
|
28
27
|
};
|
|
29
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
28
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
30
29
|
title: {
|
|
31
30
|
type: PropType<string>;
|
|
32
31
|
default: string;
|
|
33
32
|
};
|
|
34
33
|
trigger: {
|
|
35
|
-
type: PropType<string | VNode<import(
|
|
34
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
36
35
|
[key: string]: any;
|
|
37
36
|
}>>;
|
|
38
37
|
};
|
|
@@ -1,51 +1,50 @@
|
|
|
1
1
|
import { App } from 'vue';
|
|
2
|
-
|
|
3
2
|
declare const _default: {
|
|
4
|
-
new (...args: any[]): import(
|
|
3
|
+
new (...args: any[]): import("vue").CreateComponentPublicInstance<Readonly<import("vue").ExtractPropTypes<{
|
|
5
4
|
title: {
|
|
6
|
-
type: import(
|
|
5
|
+
type: import("vue").PropType<string>;
|
|
7
6
|
default: string;
|
|
8
7
|
};
|
|
9
8
|
trigger: {
|
|
10
|
-
type: import(
|
|
9
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
11
10
|
[key: string]: any;
|
|
12
11
|
}>>;
|
|
13
12
|
};
|
|
14
13
|
onClick: {
|
|
15
|
-
type: import(
|
|
14
|
+
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
16
15
|
};
|
|
17
16
|
insert: {
|
|
18
|
-
type: import(
|
|
17
|
+
type: import("vue").PropType<() => void>;
|
|
19
18
|
};
|
|
20
19
|
language: {
|
|
21
|
-
type: import(
|
|
20
|
+
type: import("vue").PropType<string>;
|
|
22
21
|
};
|
|
23
22
|
theme: {
|
|
24
|
-
type: import(
|
|
23
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
25
24
|
};
|
|
26
25
|
}>> & {
|
|
27
26
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
28
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
27
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
29
28
|
title: {
|
|
30
|
-
type: import(
|
|
29
|
+
type: import("vue").PropType<string>;
|
|
31
30
|
default: string;
|
|
32
31
|
};
|
|
33
32
|
trigger: {
|
|
34
|
-
type: import(
|
|
33
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
34
|
[key: string]: any;
|
|
36
35
|
}>>;
|
|
37
36
|
};
|
|
38
37
|
onClick: {
|
|
39
|
-
type: import(
|
|
38
|
+
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
40
39
|
};
|
|
41
40
|
insert: {
|
|
42
|
-
type: import(
|
|
41
|
+
type: import("vue").PropType<() => void>;
|
|
43
42
|
};
|
|
44
43
|
language: {
|
|
45
|
-
type: import(
|
|
44
|
+
type: import("vue").PropType<string>;
|
|
46
45
|
};
|
|
47
46
|
theme: {
|
|
48
|
-
type: import(
|
|
47
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
49
48
|
};
|
|
50
49
|
}>> & {
|
|
51
50
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -58,27 +57,27 @@ declare const _default: {
|
|
|
58
57
|
C: {};
|
|
59
58
|
M: {};
|
|
60
59
|
Defaults: {};
|
|
61
|
-
}, Readonly<import(
|
|
60
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
62
61
|
title: {
|
|
63
|
-
type: import(
|
|
62
|
+
type: import("vue").PropType<string>;
|
|
64
63
|
default: string;
|
|
65
64
|
};
|
|
66
65
|
trigger: {
|
|
67
|
-
type: import(
|
|
66
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
68
67
|
[key: string]: any;
|
|
69
68
|
}>>;
|
|
70
69
|
};
|
|
71
70
|
onClick: {
|
|
72
|
-
type: import(
|
|
71
|
+
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
73
72
|
};
|
|
74
73
|
insert: {
|
|
75
|
-
type: import(
|
|
74
|
+
type: import("vue").PropType<() => void>;
|
|
76
75
|
};
|
|
77
76
|
language: {
|
|
78
|
-
type: import(
|
|
77
|
+
type: import("vue").PropType<string>;
|
|
79
78
|
};
|
|
80
79
|
theme: {
|
|
81
|
-
type: import(
|
|
80
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
82
81
|
};
|
|
83
82
|
}>> & {
|
|
84
83
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
@@ -88,33 +87,33 @@ declare const _default: {
|
|
|
88
87
|
__isFragment?: undefined;
|
|
89
88
|
__isTeleport?: undefined;
|
|
90
89
|
__isSuspense?: undefined;
|
|
91
|
-
} & import(
|
|
90
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
92
91
|
title: {
|
|
93
|
-
type: import(
|
|
92
|
+
type: import("vue").PropType<string>;
|
|
94
93
|
default: string;
|
|
95
94
|
};
|
|
96
95
|
trigger: {
|
|
97
|
-
type: import(
|
|
96
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
98
97
|
[key: string]: any;
|
|
99
98
|
}>>;
|
|
100
99
|
};
|
|
101
100
|
onClick: {
|
|
102
|
-
type: import(
|
|
101
|
+
type: import("vue").PropType<(e: MouseEvent) => void>;
|
|
103
102
|
};
|
|
104
103
|
insert: {
|
|
105
|
-
type: import(
|
|
104
|
+
type: import("vue").PropType<() => void>;
|
|
106
105
|
};
|
|
107
106
|
language: {
|
|
108
|
-
type: import(
|
|
107
|
+
type: import("vue").PropType<string>;
|
|
109
108
|
};
|
|
110
109
|
theme: {
|
|
111
|
-
type: import(
|
|
110
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
112
111
|
};
|
|
113
112
|
}>> & {
|
|
114
113
|
onOnClick?: ((...args: any[]) => any) | undefined;
|
|
115
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
114
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClick"[], "onClick", {
|
|
116
115
|
title: string;
|
|
117
|
-
}, {}, string, {}> & import(
|
|
116
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
118
117
|
install: (app: App) => App;
|
|
119
118
|
};
|
|
120
119
|
export default _default;
|
package/lib/types/config.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
export { config, iconfontClassUrl, iconfontSvgUrl, allToolbar, allFooter, editorExtensionsAttrs } 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;
|