md-editor-v3 2.0.0-beta.0 → 2.0.0-beta.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -4
- package/lib/MdEditor/Editor.d.ts +269 -0
- package/lib/MdEditor/extensions/DropdownToolbar.d.ts +42 -0
- package/lib/MdEditor/extensions/MdCatalog/CatalogLink.d.ts +39 -0
- package/lib/MdEditor/extensions/MdCatalog/index.d.ts +51 -0
- package/lib/MdEditor/extensions/ModalToolbar.d.ts +105 -0
- package/lib/MdEditor/extensions/NormalToolbar.d.ts +30 -0
- package/lib/MdEditor/index.d.ts +612 -0
- package/lib/MdEditor/type.d.ts +221 -0
- package/lib/MdEditor/utils/config.d.ts +3 -0
- package/lib/md-editor-v3.es.js +6369 -0
- package/lib/md-editor-v3.umd.js +116 -0
- package/lib/style.css +1 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -108,7 +108,7 @@ mark and emoji extensions
|
|
|
108
108
|
|
|
109
109
|
> After v1.6.0, You can sort the toolbar as you like, split tools by `'-'`, the left and right toolbars are divided by `'='`!
|
|
110
110
|
|
|
111
|
-
> After v1.10.0, you can customize the toolbar. To display them, put index of `defToolbars` into `toolbars`(this is not standard), for more usage, please refer to[docs]().
|
|
111
|
+
> After v1.10.0, you can customize the toolbar. To display them, put index of `defToolbars` into `toolbars`(this is not standard), for more usage, please refer to [docs](https://imzbf.github.io/md-editor-v3/docs).
|
|
112
112
|
|
|
113
113
|
<details>
|
|
114
114
|
<summary>[StaticTextDefaultValue]</summary>
|
|
@@ -247,7 +247,7 @@ const handler = () => { console.log('NormalToolbar clicked!') }
|
|
|
247
247
|
| onSave | v:string | Save content event, `ctrl+s`and click button will be triggered also |
|
|
248
248
|
| onUploadImg | files:Array<File>, callback:Function | Upload picture event, when picture is uploading the modal will not close, please provide right urls to the callback function |
|
|
249
249
|
| onHtmlChanged | h:string | Compile markdown successful event, you can use it to get the html code |
|
|
250
|
-
| onGetCatalog | list: HeadList[] | Get
|
|
250
|
+
| onGetCatalog | list: HeadList[] | Get catalog of article |
|
|
251
251
|
|
|
252
252
|
## Config
|
|
253
253
|
|
|
@@ -410,6 +410,7 @@ They are used as attributes of the editor component, eg: `Editor.DropdownToolbar
|
|
|
410
410
|
- `onClick`: `(e: MouseEvent) => void`, necessary.
|
|
411
411
|
|
|
412
412
|
- **slots**
|
|
413
|
+
|
|
413
414
|
- `trigger`: `string | JSX.Element`, necessary, it is usually an icon, which is displayed on the toolbar.
|
|
414
415
|
|
|
415
416
|
### DropdownToolbar
|
|
@@ -426,6 +427,7 @@ They are used as attributes of the editor component, eg: `Editor.DropdownToolbar
|
|
|
426
427
|
- `onChange`: `(visible: boolean) => void`, necessary.
|
|
427
428
|
|
|
428
429
|
- **slots**
|
|
430
|
+
|
|
429
431
|
- `trigger`: `string | JSX.Element`, necessary, it is usually an icon, which is displayed on the toolbar.
|
|
430
432
|
- `overlay`: `string | JSX.Element`, necessary, content of dropdown box.
|
|
431
433
|
|
|
@@ -450,14 +452,16 @@ They are used as attributes of the editor component, eg: `Editor.DropdownToolbar
|
|
|
450
452
|
- `onAdjust`:`(val: boolean) => void`, fullscreen button click event.
|
|
451
453
|
|
|
452
454
|
- **slots**
|
|
455
|
+
|
|
453
456
|
- `trigger`: `string | JSX.Element`, necessary, it is usually an icon, which is displayed on the toolbar.
|
|
454
457
|
- `overlay`: `string | JSX.Element`, necessary, content of Modal.
|
|
455
458
|
|
|
456
|
-
###
|
|
459
|
+
### Catalog
|
|
457
460
|
|
|
458
|
-
`Editor.
|
|
461
|
+
`Editor.MdCatalog`
|
|
459
462
|
|
|
460
463
|
- **props**
|
|
464
|
+
|
|
461
465
|
- `editorId`: `string`, necessary, same as editor's `editorId`, used to register listening events.
|
|
462
466
|
- `class`: `string`, not necessary.
|
|
463
467
|
- `markedHeadingId`: `MarkedHeadingId`, not necessary, same as editor.
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
import { PropType, CSSProperties } from 'vue';
|
|
2
|
+
import { ToolbarNames, HeadList, MarkedHeadingId, Themes, InnerError } from './type';
|
|
3
|
+
export declare const markedHeadingId: MarkedHeadingId;
|
|
4
|
+
declare const Editor: import("vue").DefineComponent<{
|
|
5
|
+
modelValue: {
|
|
6
|
+
type: PropType<string>;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
theme: {
|
|
10
|
+
type: PropType<Themes>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
class: {
|
|
14
|
+
type: StringConstructor;
|
|
15
|
+
default: string;
|
|
16
|
+
};
|
|
17
|
+
historyLength: {
|
|
18
|
+
type: PropType<number>;
|
|
19
|
+
default: number;
|
|
20
|
+
};
|
|
21
|
+
onChange: {
|
|
22
|
+
type: PropType<(v: string) => void>;
|
|
23
|
+
};
|
|
24
|
+
onSave: {
|
|
25
|
+
type: PropType<(v: string) => void>;
|
|
26
|
+
};
|
|
27
|
+
onUploadImg: {
|
|
28
|
+
type: PropType<(files: Array<File>, callBack: (urls: string[]) => void) => void>;
|
|
29
|
+
};
|
|
30
|
+
pageFullScreen: {
|
|
31
|
+
type: PropType<boolean>;
|
|
32
|
+
default: boolean;
|
|
33
|
+
};
|
|
34
|
+
preview: {
|
|
35
|
+
type: PropType<boolean>;
|
|
36
|
+
default: boolean;
|
|
37
|
+
};
|
|
38
|
+
htmlPreview: {
|
|
39
|
+
type: PropType<boolean>;
|
|
40
|
+
default: boolean;
|
|
41
|
+
};
|
|
42
|
+
previewOnly: {
|
|
43
|
+
type: PropType<boolean>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
46
|
+
language: {
|
|
47
|
+
type: PropType<string>;
|
|
48
|
+
default: string;
|
|
49
|
+
};
|
|
50
|
+
toolbars: {
|
|
51
|
+
type: PropType<ToolbarNames[]>;
|
|
52
|
+
default: string[];
|
|
53
|
+
};
|
|
54
|
+
toolbarsExclude: {
|
|
55
|
+
type: PropType<ToolbarNames[]>;
|
|
56
|
+
default: never[];
|
|
57
|
+
};
|
|
58
|
+
noPrettier: {
|
|
59
|
+
type: PropType<boolean>;
|
|
60
|
+
default: boolean;
|
|
61
|
+
};
|
|
62
|
+
onHtmlChanged: {
|
|
63
|
+
type: PropType<(h: string) => void>;
|
|
64
|
+
};
|
|
65
|
+
onGetCatalog: {
|
|
66
|
+
type: PropType<(list: HeadList[]) => void>;
|
|
67
|
+
};
|
|
68
|
+
editorId: {
|
|
69
|
+
type: PropType<string>;
|
|
70
|
+
default: string;
|
|
71
|
+
};
|
|
72
|
+
tabWidth: {
|
|
73
|
+
type: PropType<number>;
|
|
74
|
+
default: number;
|
|
75
|
+
};
|
|
76
|
+
showCodeRowNumber: {
|
|
77
|
+
type: PropType<boolean>;
|
|
78
|
+
default: boolean;
|
|
79
|
+
};
|
|
80
|
+
previewTheme: {
|
|
81
|
+
type: PropType<string>;
|
|
82
|
+
default: string;
|
|
83
|
+
};
|
|
84
|
+
style: {
|
|
85
|
+
type: PropType<string | CSSProperties>;
|
|
86
|
+
default: () => {};
|
|
87
|
+
};
|
|
88
|
+
markedHeadingId: {
|
|
89
|
+
type: PropType<MarkedHeadingId>;
|
|
90
|
+
default: MarkedHeadingId;
|
|
91
|
+
};
|
|
92
|
+
tableShape: {
|
|
93
|
+
type: PropType<number[]>;
|
|
94
|
+
default: () => number[];
|
|
95
|
+
};
|
|
96
|
+
noMermaid: {
|
|
97
|
+
type: PropType<boolean>;
|
|
98
|
+
default: boolean;
|
|
99
|
+
};
|
|
100
|
+
sanitize: {
|
|
101
|
+
type: PropType<(html: string) => string>;
|
|
102
|
+
default: (html: string) => string;
|
|
103
|
+
};
|
|
104
|
+
placeholder: {
|
|
105
|
+
type: PropType<string>;
|
|
106
|
+
default: string;
|
|
107
|
+
};
|
|
108
|
+
noKatex: {
|
|
109
|
+
type: PropType<boolean>;
|
|
110
|
+
default: boolean;
|
|
111
|
+
};
|
|
112
|
+
defToolbars: {
|
|
113
|
+
type: PropType<string | JSX.Element>;
|
|
114
|
+
};
|
|
115
|
+
onError: {
|
|
116
|
+
type: PropType<(err: InnerError) => void>;
|
|
117
|
+
default: () => () => void;
|
|
118
|
+
};
|
|
119
|
+
codeCssName: {
|
|
120
|
+
type: PropType<string>;
|
|
121
|
+
default: string;
|
|
122
|
+
};
|
|
123
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
124
|
+
modelValue: {
|
|
125
|
+
type: PropType<string>;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
theme: {
|
|
129
|
+
type: PropType<Themes>;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
class: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: string;
|
|
135
|
+
};
|
|
136
|
+
historyLength: {
|
|
137
|
+
type: PropType<number>;
|
|
138
|
+
default: number;
|
|
139
|
+
};
|
|
140
|
+
onChange: {
|
|
141
|
+
type: PropType<(v: string) => void>;
|
|
142
|
+
};
|
|
143
|
+
onSave: {
|
|
144
|
+
type: PropType<(v: string) => void>;
|
|
145
|
+
};
|
|
146
|
+
onUploadImg: {
|
|
147
|
+
type: PropType<(files: Array<File>, callBack: (urls: string[]) => void) => void>;
|
|
148
|
+
};
|
|
149
|
+
pageFullScreen: {
|
|
150
|
+
type: PropType<boolean>;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
153
|
+
preview: {
|
|
154
|
+
type: PropType<boolean>;
|
|
155
|
+
default: boolean;
|
|
156
|
+
};
|
|
157
|
+
htmlPreview: {
|
|
158
|
+
type: PropType<boolean>;
|
|
159
|
+
default: boolean;
|
|
160
|
+
};
|
|
161
|
+
previewOnly: {
|
|
162
|
+
type: PropType<boolean>;
|
|
163
|
+
default: boolean;
|
|
164
|
+
};
|
|
165
|
+
language: {
|
|
166
|
+
type: PropType<string>;
|
|
167
|
+
default: string;
|
|
168
|
+
};
|
|
169
|
+
toolbars: {
|
|
170
|
+
type: PropType<ToolbarNames[]>;
|
|
171
|
+
default: string[];
|
|
172
|
+
};
|
|
173
|
+
toolbarsExclude: {
|
|
174
|
+
type: PropType<ToolbarNames[]>;
|
|
175
|
+
default: never[];
|
|
176
|
+
};
|
|
177
|
+
noPrettier: {
|
|
178
|
+
type: PropType<boolean>;
|
|
179
|
+
default: boolean;
|
|
180
|
+
};
|
|
181
|
+
onHtmlChanged: {
|
|
182
|
+
type: PropType<(h: string) => void>;
|
|
183
|
+
};
|
|
184
|
+
onGetCatalog: {
|
|
185
|
+
type: PropType<(list: HeadList[]) => void>;
|
|
186
|
+
};
|
|
187
|
+
editorId: {
|
|
188
|
+
type: PropType<string>;
|
|
189
|
+
default: string;
|
|
190
|
+
};
|
|
191
|
+
tabWidth: {
|
|
192
|
+
type: PropType<number>;
|
|
193
|
+
default: number;
|
|
194
|
+
};
|
|
195
|
+
showCodeRowNumber: {
|
|
196
|
+
type: PropType<boolean>;
|
|
197
|
+
default: boolean;
|
|
198
|
+
};
|
|
199
|
+
previewTheme: {
|
|
200
|
+
type: PropType<string>;
|
|
201
|
+
default: string;
|
|
202
|
+
};
|
|
203
|
+
style: {
|
|
204
|
+
type: PropType<string | CSSProperties>;
|
|
205
|
+
default: () => {};
|
|
206
|
+
};
|
|
207
|
+
markedHeadingId: {
|
|
208
|
+
type: PropType<MarkedHeadingId>;
|
|
209
|
+
default: MarkedHeadingId;
|
|
210
|
+
};
|
|
211
|
+
tableShape: {
|
|
212
|
+
type: PropType<number[]>;
|
|
213
|
+
default: () => number[];
|
|
214
|
+
};
|
|
215
|
+
noMermaid: {
|
|
216
|
+
type: PropType<boolean>;
|
|
217
|
+
default: boolean;
|
|
218
|
+
};
|
|
219
|
+
sanitize: {
|
|
220
|
+
type: PropType<(html: string) => string>;
|
|
221
|
+
default: (html: string) => string;
|
|
222
|
+
};
|
|
223
|
+
placeholder: {
|
|
224
|
+
type: PropType<string>;
|
|
225
|
+
default: string;
|
|
226
|
+
};
|
|
227
|
+
noKatex: {
|
|
228
|
+
type: PropType<boolean>;
|
|
229
|
+
default: boolean;
|
|
230
|
+
};
|
|
231
|
+
defToolbars: {
|
|
232
|
+
type: PropType<string | JSX.Element>;
|
|
233
|
+
};
|
|
234
|
+
onError: {
|
|
235
|
+
type: PropType<(err: InnerError) => void>;
|
|
236
|
+
default: () => () => void;
|
|
237
|
+
};
|
|
238
|
+
codeCssName: {
|
|
239
|
+
type: PropType<string>;
|
|
240
|
+
default: string;
|
|
241
|
+
};
|
|
242
|
+
}>>, {
|
|
243
|
+
editorId: string;
|
|
244
|
+
preview: boolean;
|
|
245
|
+
htmlPreview: boolean;
|
|
246
|
+
tabWidth: number;
|
|
247
|
+
theme: Themes;
|
|
248
|
+
historyLength: number;
|
|
249
|
+
previewOnly: boolean;
|
|
250
|
+
showCodeRowNumber: boolean;
|
|
251
|
+
previewTheme: string;
|
|
252
|
+
noPrettier: boolean;
|
|
253
|
+
style: string | CSSProperties;
|
|
254
|
+
class: string;
|
|
255
|
+
modelValue: string;
|
|
256
|
+
pageFullScreen: boolean;
|
|
257
|
+
language: string;
|
|
258
|
+
toolbars: ToolbarNames[];
|
|
259
|
+
toolbarsExclude: ToolbarNames[];
|
|
260
|
+
markedHeadingId: MarkedHeadingId;
|
|
261
|
+
tableShape: number[];
|
|
262
|
+
noMermaid: boolean;
|
|
263
|
+
sanitize: (html: string) => string;
|
|
264
|
+
placeholder: string;
|
|
265
|
+
noKatex: boolean;
|
|
266
|
+
onError: (err: InnerError) => void;
|
|
267
|
+
codeCssName: string;
|
|
268
|
+
}>;
|
|
269
|
+
export default Editor;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
title: {
|
|
4
|
+
type: PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
visible: {
|
|
8
|
+
type: PropType<boolean>;
|
|
9
|
+
};
|
|
10
|
+
trigger: {
|
|
11
|
+
type: PropType<string | JSX.Element>;
|
|
12
|
+
};
|
|
13
|
+
onChange: {
|
|
14
|
+
type: PropType<(visible: boolean) => void>;
|
|
15
|
+
default: () => () => void;
|
|
16
|
+
};
|
|
17
|
+
overlay: {
|
|
18
|
+
type: PropType<string | JSX.Element>;
|
|
19
|
+
};
|
|
20
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
21
|
+
title: {
|
|
22
|
+
type: PropType<string>;
|
|
23
|
+
default: string;
|
|
24
|
+
};
|
|
25
|
+
visible: {
|
|
26
|
+
type: PropType<boolean>;
|
|
27
|
+
};
|
|
28
|
+
trigger: {
|
|
29
|
+
type: PropType<string | JSX.Element>;
|
|
30
|
+
};
|
|
31
|
+
onChange: {
|
|
32
|
+
type: PropType<(visible: boolean) => void>;
|
|
33
|
+
default: () => () => void;
|
|
34
|
+
};
|
|
35
|
+
overlay: {
|
|
36
|
+
type: PropType<string | JSX.Element>;
|
|
37
|
+
};
|
|
38
|
+
}>>, {
|
|
39
|
+
title: string;
|
|
40
|
+
onChange: (visible: boolean) => void;
|
|
41
|
+
}>;
|
|
42
|
+
export default _default;
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
import { TocItem } from './index';
|
|
2
|
+
import { MarkedHeadingId } from '../../type';
|
|
3
|
+
import { PropType } from 'vue';
|
|
4
|
+
export interface CatalogLinkProps {
|
|
5
|
+
tocItem: TocItem;
|
|
6
|
+
markedHeadingId: MarkedHeadingId;
|
|
7
|
+
}
|
|
8
|
+
declare const CatalogLink: import("vue").DefineComponent<{
|
|
9
|
+
tocItem: {
|
|
10
|
+
type: PropType<TocItem>;
|
|
11
|
+
default: () => {};
|
|
12
|
+
};
|
|
13
|
+
markedHeadingId: {
|
|
14
|
+
type: PropType<MarkedHeadingId>;
|
|
15
|
+
default: () => void;
|
|
16
|
+
};
|
|
17
|
+
scrollElement: {
|
|
18
|
+
type: PropType<string | Element>;
|
|
19
|
+
default: string;
|
|
20
|
+
};
|
|
21
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
22
|
+
tocItem: {
|
|
23
|
+
type: PropType<TocItem>;
|
|
24
|
+
default: () => {};
|
|
25
|
+
};
|
|
26
|
+
markedHeadingId: {
|
|
27
|
+
type: PropType<MarkedHeadingId>;
|
|
28
|
+
default: () => void;
|
|
29
|
+
};
|
|
30
|
+
scrollElement: {
|
|
31
|
+
type: PropType<string | Element>;
|
|
32
|
+
default: string;
|
|
33
|
+
};
|
|
34
|
+
}>>, {
|
|
35
|
+
markedHeadingId: MarkedHeadingId;
|
|
36
|
+
scrollElement: string | Element;
|
|
37
|
+
tocItem: TocItem;
|
|
38
|
+
}>;
|
|
39
|
+
export default CatalogLink;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
import { MarkedHeadingId, Themes } from '../../type';
|
|
3
|
+
export interface TocItem {
|
|
4
|
+
text: string;
|
|
5
|
+
level: number;
|
|
6
|
+
children?: Array<TocItem>;
|
|
7
|
+
}
|
|
8
|
+
declare const MdCatalog: import("vue").DefineComponent<{
|
|
9
|
+
editorId: {
|
|
10
|
+
type: PropType<string>;
|
|
11
|
+
};
|
|
12
|
+
class: {
|
|
13
|
+
type: StringConstructor;
|
|
14
|
+
default: string;
|
|
15
|
+
};
|
|
16
|
+
markedHeadingId: {
|
|
17
|
+
type: PropType<MarkedHeadingId>;
|
|
18
|
+
default: (text: string) => string;
|
|
19
|
+
};
|
|
20
|
+
scrollElement: {
|
|
21
|
+
type: PropType<string | Element>;
|
|
22
|
+
};
|
|
23
|
+
theme: {
|
|
24
|
+
type: PropType<Themes>;
|
|
25
|
+
default: string;
|
|
26
|
+
};
|
|
27
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
28
|
+
editorId: {
|
|
29
|
+
type: PropType<string>;
|
|
30
|
+
};
|
|
31
|
+
class: {
|
|
32
|
+
type: StringConstructor;
|
|
33
|
+
default: string;
|
|
34
|
+
};
|
|
35
|
+
markedHeadingId: {
|
|
36
|
+
type: PropType<MarkedHeadingId>;
|
|
37
|
+
default: (text: string) => string;
|
|
38
|
+
};
|
|
39
|
+
scrollElement: {
|
|
40
|
+
type: PropType<string | Element>;
|
|
41
|
+
};
|
|
42
|
+
theme: {
|
|
43
|
+
type: PropType<Themes>;
|
|
44
|
+
default: string;
|
|
45
|
+
};
|
|
46
|
+
}>>, {
|
|
47
|
+
theme: Themes;
|
|
48
|
+
class: string;
|
|
49
|
+
markedHeadingId: MarkedHeadingId;
|
|
50
|
+
}>;
|
|
51
|
+
export default MdCatalog;
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
title: {
|
|
4
|
+
type: PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
modalTitle: {
|
|
8
|
+
type: PropType<string>;
|
|
9
|
+
default: string;
|
|
10
|
+
};
|
|
11
|
+
visible: {
|
|
12
|
+
type: PropType<boolean>;
|
|
13
|
+
};
|
|
14
|
+
width: {
|
|
15
|
+
type: PropType<string>;
|
|
16
|
+
default: string;
|
|
17
|
+
};
|
|
18
|
+
height: {
|
|
19
|
+
type: PropType<string>;
|
|
20
|
+
default: string;
|
|
21
|
+
};
|
|
22
|
+
trigger: {
|
|
23
|
+
type: PropType<string | JSX.Element>;
|
|
24
|
+
};
|
|
25
|
+
onClick: {
|
|
26
|
+
type: PropType<() => void>;
|
|
27
|
+
default: () => () => void;
|
|
28
|
+
};
|
|
29
|
+
onClose: {
|
|
30
|
+
type: PropType<() => void>;
|
|
31
|
+
default: () => () => void;
|
|
32
|
+
};
|
|
33
|
+
/**
|
|
34
|
+
* 显示全屏按钮
|
|
35
|
+
*/
|
|
36
|
+
showAdjust: {
|
|
37
|
+
type: PropType<boolean>;
|
|
38
|
+
default: boolean;
|
|
39
|
+
};
|
|
40
|
+
isFullscreen: {
|
|
41
|
+
type: PropType<boolean>;
|
|
42
|
+
default: boolean;
|
|
43
|
+
};
|
|
44
|
+
onAdjust: {
|
|
45
|
+
type: PropType<(val: boolean) => void>;
|
|
46
|
+
default: () => () => void;
|
|
47
|
+
};
|
|
48
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
49
|
+
title: {
|
|
50
|
+
type: PropType<string>;
|
|
51
|
+
default: string;
|
|
52
|
+
};
|
|
53
|
+
modalTitle: {
|
|
54
|
+
type: PropType<string>;
|
|
55
|
+
default: string;
|
|
56
|
+
};
|
|
57
|
+
visible: {
|
|
58
|
+
type: PropType<boolean>;
|
|
59
|
+
};
|
|
60
|
+
width: {
|
|
61
|
+
type: PropType<string>;
|
|
62
|
+
default: string;
|
|
63
|
+
};
|
|
64
|
+
height: {
|
|
65
|
+
type: PropType<string>;
|
|
66
|
+
default: string;
|
|
67
|
+
};
|
|
68
|
+
trigger: {
|
|
69
|
+
type: PropType<string | JSX.Element>;
|
|
70
|
+
};
|
|
71
|
+
onClick: {
|
|
72
|
+
type: PropType<() => void>;
|
|
73
|
+
default: () => () => void;
|
|
74
|
+
};
|
|
75
|
+
onClose: {
|
|
76
|
+
type: PropType<() => void>;
|
|
77
|
+
default: () => () => void;
|
|
78
|
+
};
|
|
79
|
+
/**
|
|
80
|
+
* 显示全屏按钮
|
|
81
|
+
*/
|
|
82
|
+
showAdjust: {
|
|
83
|
+
type: PropType<boolean>;
|
|
84
|
+
default: boolean;
|
|
85
|
+
};
|
|
86
|
+
isFullscreen: {
|
|
87
|
+
type: PropType<boolean>;
|
|
88
|
+
default: boolean;
|
|
89
|
+
};
|
|
90
|
+
onAdjust: {
|
|
91
|
+
type: PropType<(val: boolean) => void>;
|
|
92
|
+
default: () => () => void;
|
|
93
|
+
};
|
|
94
|
+
}>>, {
|
|
95
|
+
title: string;
|
|
96
|
+
onClick: () => void;
|
|
97
|
+
modalTitle: string;
|
|
98
|
+
width: string;
|
|
99
|
+
height: string;
|
|
100
|
+
onClose: () => void;
|
|
101
|
+
showAdjust: boolean;
|
|
102
|
+
isFullscreen: boolean;
|
|
103
|
+
onAdjust: (val: boolean) => void;
|
|
104
|
+
}>;
|
|
105
|
+
export default _default;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import { PropType } from 'vue';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
title: {
|
|
4
|
+
type: PropType<string>;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
trigger: {
|
|
8
|
+
type: PropType<string | JSX.Element>;
|
|
9
|
+
};
|
|
10
|
+
onClick: {
|
|
11
|
+
type: PropType<(e: MouseEvent) => void>;
|
|
12
|
+
default: () => () => void;
|
|
13
|
+
};
|
|
14
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, Record<string, any>, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
15
|
+
title: {
|
|
16
|
+
type: PropType<string>;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
trigger: {
|
|
20
|
+
type: PropType<string | JSX.Element>;
|
|
21
|
+
};
|
|
22
|
+
onClick: {
|
|
23
|
+
type: PropType<(e: MouseEvent) => void>;
|
|
24
|
+
default: () => () => void;
|
|
25
|
+
};
|
|
26
|
+
}>>, {
|
|
27
|
+
title: string;
|
|
28
|
+
onClick: (e: MouseEvent) => void;
|
|
29
|
+
}>;
|
|
30
|
+
export default _default;
|