md-editor-v3 4.16.8-0 → 4.16.9
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/ModalToolbar.cjs +13 -0
- package/lib/cjs/chunks/index3.cjs +22 -6
- package/lib/es/ModalToolbar.mjs +13 -0
- package/lib/es/chunks/index3.mjs +22 -6
- package/lib/preview.css +5 -0
- package/lib/style.css +6 -3
- package/lib/types/MdEditor/components/Modal/Modal.d.ts +12 -3
- package/lib/types/MdEditor/components/Modal/index.d.ts +26 -7
- package/lib/types/ModalToolbar/ModalToolbar.d.ts +22 -1
- package/lib/types/ModalToolbar/index.d.ts +43 -0
- package/lib/umd/index.js +29 -29
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -118,7 +118,7 @@ Inputing prompt and mark, emoji extensions
|
|
|
118
118
|
| codeTheme | `'atom' \| 'a11y' \| 'github' \| 'gradient' \| 'kimbie' \| 'paraiso' \| 'qtcreator' \| 'stackoverflow'` | 'atom' | Highlight code style, can be customized also |
|
|
119
119
|
| mdHeadingId | `(text: string, level: number, index: number) => string` | (text) => text | H1-H6 `ID` generator |
|
|
120
120
|
| sanitize | `(html: string) => string` | (html) => html | This attribute is used to alter the compiled HTML content |
|
|
121
|
-
| noIconfont | `boolean` | false | Not append iconfont script,
|
|
121
|
+
| noIconfont | `boolean` | false | Not append iconfont script, you can get the latest link [here](https://imzbf.github.io/md-editor-v3/en-US/docs#%F0%9F%A4%9E%F0%9F%8F%BC%20noIconfont) |
|
|
122
122
|
| formatCopiedText | `(text: string) => string` | (text: string) => text | Format copied code |
|
|
123
123
|
| codeStyleReverse | `boolean` | true | Code style will be reversed to dark while code block of the theme has a dark background |
|
|
124
124
|
| codeStyleReverseList | `Array<string>` | ['default', 'mk-cute'] | Themes to be reversed |
|
|
@@ -565,6 +565,10 @@ editorRef.value?.execCommand('bold');
|
|
|
565
565
|
|
|
566
566
|
Use `config(option: ConfigOption)` to reconfigure `markdown-it` and so on.
|
|
567
567
|
|
|
568
|
+
> [!WARNING]
|
|
569
|
+
>
|
|
570
|
+
> We recommend configuring it at the project entry point, such as in `main.js` for projects created with Vite. Avoid calling `config` within components!
|
|
571
|
+
|
|
568
572
|
### codeMirrorExtensions
|
|
569
573
|
|
|
570
574
|
Customize new extensions based on theme and default extensions f codeMirror.
|
|
@@ -729,7 +733,7 @@ export interface EditorExtensions {
|
|
|
729
733
|
Synchronously add attributes to the CDN link tags, consistent with the type of `editorExtensions`, with a value type of `HTMLElementTagNameMap['tagName']`.
|
|
730
734
|
|
|
731
735
|
```js
|
|
732
|
-
import { config, editorExtensionsAttrs } from 'md-editor-
|
|
736
|
+
import { config, editorExtensionsAttrs } from 'md-editor-v3';
|
|
733
737
|
|
|
734
738
|
config({
|
|
735
739
|
editorExtensionsAttrs
|
|
@@ -851,6 +855,9 @@ On-demand import. For more examples, refer to [document](https://imzbf.github.io
|
|
|
851
855
|
- `height`: `string`, same as `width`.
|
|
852
856
|
- `showAdjust`: `boolean`, not necessary, visibility of fullscreen button.
|
|
853
857
|
- `isFullscreen`: `boolean`, necessary when `showAdjust = true`, status of fullscreen.
|
|
858
|
+
- `class`: `string`, not necessary.
|
|
859
|
+
- `style`: `CSSProperties | string`, not necessary.
|
|
860
|
+
- `showMask`: `boolean`, not necessary, whether to display the mask layer, default `true`.
|
|
854
861
|
|
|
855
862
|
- **events**
|
|
856
863
|
|
|
@@ -894,8 +901,9 @@ On-demand import. For more examples, refer to [document](https://imzbf.github.io
|
|
|
894
901
|
- `height`: `string`, same as `width`.
|
|
895
902
|
- `showAdjust`: `boolean`, not necessary, visibility of fullscreen button.
|
|
896
903
|
- `isFullscreen`: `boolean`, necessary when `showAdjust = true`, status of fullscreen.
|
|
897
|
-
- `
|
|
898
|
-
- `style`: `CSSProperties`, not necessary.
|
|
904
|
+
- `class`: `string`, not necessary.
|
|
905
|
+
- `style`: `CSSProperties | string`, not necessary.
|
|
906
|
+
- `showMask`: `boolean`, not necessary, whether to display the mask layer, default `true`.
|
|
899
907
|
|
|
900
908
|
- **events**
|
|
901
909
|
|
|
@@ -1006,6 +1014,7 @@ const onUploadImg = async (files, callback) => {
|
|
|
1006
1014
|
--md-border-hover-color: if(@isDark, #636262, #b9b9b9);
|
|
1007
1015
|
--md-border-active-color: if(@isDark, #777, #999);
|
|
1008
1016
|
--md-modal-mask: #00000073;
|
|
1017
|
+
--md-modal-shadow: if(@isDark, 0px 6px 24px 2px #00000066, 0px 6px 24px 2px #00000019);
|
|
1009
1018
|
--md-scrollbar-bg-color: if(@isDark, #0f0f0f, #e2e2e2);
|
|
1010
1019
|
--md-scrollbar-thumb-color: if(@isDark, #2d2d2d, #0000004d);
|
|
1011
1020
|
--md-scrollbar-thumb-hover-color: if(@isDark, #3a3a3a, #00000059);
|
package/lib/cjs/ModalToolbar.cjs
CHANGED
|
@@ -50,6 +50,16 @@ const props = {
|
|
|
50
50
|
onAdjust: {
|
|
51
51
|
type: Function
|
|
52
52
|
},
|
|
53
|
+
class: {
|
|
54
|
+
type: String
|
|
55
|
+
},
|
|
56
|
+
style: {
|
|
57
|
+
type: [Object, String]
|
|
58
|
+
},
|
|
59
|
+
showMask: {
|
|
60
|
+
type: Boolean,
|
|
61
|
+
default: true
|
|
62
|
+
},
|
|
53
63
|
/**
|
|
54
64
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
55
65
|
*/
|
|
@@ -94,10 +104,13 @@ const ModalToolbar = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
104
|
}
|
|
95
105
|
}
|
|
96
106
|
}, [Trigger]), vue.createVNode(MdModal.MdModal, {
|
|
107
|
+
"style": props2.style,
|
|
108
|
+
"class": props2.class,
|
|
97
109
|
"width": props2.width,
|
|
98
110
|
"height": props2.height,
|
|
99
111
|
"title": props2.modalTitle,
|
|
100
112
|
"visible": props2.visible,
|
|
113
|
+
"showMask": props2.showMask,
|
|
101
114
|
"onClose": () => {
|
|
102
115
|
if (props2.onClose instanceof Function) {
|
|
103
116
|
props2.onClose();
|
|
@@ -83,8 +83,12 @@ const props = {
|
|
|
83
83
|
type: String
|
|
84
84
|
},
|
|
85
85
|
style: {
|
|
86
|
-
type: Object,
|
|
86
|
+
type: [Object, String],
|
|
87
87
|
default: () => ({})
|
|
88
|
+
},
|
|
89
|
+
showMask: {
|
|
90
|
+
type: Boolean,
|
|
91
|
+
default: true
|
|
88
92
|
}
|
|
89
93
|
};
|
|
90
94
|
const MdModal = /* @__PURE__ */ vue.defineComponent({
|
|
@@ -174,6 +178,21 @@ const MdModal = /* @__PURE__ */ vue.defineComponent({
|
|
|
174
178
|
}, 130);
|
|
175
179
|
}
|
|
176
180
|
});
|
|
181
|
+
const internalStyle = vue.computed(() => ({
|
|
182
|
+
display: modalVisible.value ? "block" : "none"
|
|
183
|
+
}));
|
|
184
|
+
const combinedStyle = vue.computed(() => {
|
|
185
|
+
if (typeof props2.style === "string") {
|
|
186
|
+
return [props2.style, internalStyle.value].join("; ");
|
|
187
|
+
} else if (props2.style instanceof Object) {
|
|
188
|
+
return {
|
|
189
|
+
...internalStyle.value,
|
|
190
|
+
...props2.style
|
|
191
|
+
};
|
|
192
|
+
} else {
|
|
193
|
+
return internalStyle.value;
|
|
194
|
+
}
|
|
195
|
+
});
|
|
177
196
|
vue.onMounted(() => {
|
|
178
197
|
bodyRef.value = document.body;
|
|
179
198
|
});
|
|
@@ -194,11 +213,8 @@ const MdModal = /* @__PURE__ */ vue.defineComponent({
|
|
|
194
213
|
"data-theme": themeRef.value
|
|
195
214
|
}, [vue.createVNode("div", {
|
|
196
215
|
"class": props2.class,
|
|
197
|
-
"style":
|
|
198
|
-
|
|
199
|
-
display: modalVisible.value ? "block" : "none"
|
|
200
|
-
}
|
|
201
|
-
}, [vue.createVNode("div", {
|
|
216
|
+
"style": combinedStyle.value
|
|
217
|
+
}, [props2.showMask && vue.createVNode("div", {
|
|
202
218
|
"class": `${config.prefix}-modal-mask`,
|
|
203
219
|
"style": state.maskStyle,
|
|
204
220
|
"onClick": () => {
|
package/lib/es/ModalToolbar.mjs
CHANGED
|
@@ -49,6 +49,16 @@ const props = {
|
|
|
49
49
|
onAdjust: {
|
|
50
50
|
type: Function
|
|
51
51
|
},
|
|
52
|
+
class: {
|
|
53
|
+
type: String
|
|
54
|
+
},
|
|
55
|
+
style: {
|
|
56
|
+
type: [Object, String]
|
|
57
|
+
},
|
|
58
|
+
showMask: {
|
|
59
|
+
type: Boolean,
|
|
60
|
+
default: true
|
|
61
|
+
},
|
|
52
62
|
/**
|
|
53
63
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
54
64
|
*/
|
|
@@ -93,10 +103,13 @@ const ModalToolbar = /* @__PURE__ */ defineComponent({
|
|
|
93
103
|
}
|
|
94
104
|
}
|
|
95
105
|
}, [Trigger]), createVNode(MdModal, {
|
|
106
|
+
"style": props2.style,
|
|
107
|
+
"class": props2.class,
|
|
96
108
|
"width": props2.width,
|
|
97
109
|
"height": props2.height,
|
|
98
110
|
"title": props2.modalTitle,
|
|
99
111
|
"visible": props2.visible,
|
|
112
|
+
"showMask": props2.showMask,
|
|
100
113
|
"onClose": () => {
|
|
101
114
|
if (props2.onClose instanceof Function) {
|
|
102
115
|
props2.onClose();
|
package/lib/es/chunks/index3.mjs
CHANGED
|
@@ -82,8 +82,12 @@ const props = {
|
|
|
82
82
|
type: String
|
|
83
83
|
},
|
|
84
84
|
style: {
|
|
85
|
-
type: Object,
|
|
85
|
+
type: [Object, String],
|
|
86
86
|
default: () => ({})
|
|
87
|
+
},
|
|
88
|
+
showMask: {
|
|
89
|
+
type: Boolean,
|
|
90
|
+
default: true
|
|
87
91
|
}
|
|
88
92
|
};
|
|
89
93
|
const MdModal = /* @__PURE__ */ defineComponent({
|
|
@@ -173,6 +177,21 @@ const MdModal = /* @__PURE__ */ defineComponent({
|
|
|
173
177
|
}, 130);
|
|
174
178
|
}
|
|
175
179
|
});
|
|
180
|
+
const internalStyle = computed(() => ({
|
|
181
|
+
display: modalVisible.value ? "block" : "none"
|
|
182
|
+
}));
|
|
183
|
+
const combinedStyle = computed(() => {
|
|
184
|
+
if (typeof props2.style === "string") {
|
|
185
|
+
return [props2.style, internalStyle.value].join("; ");
|
|
186
|
+
} else if (props2.style instanceof Object) {
|
|
187
|
+
return {
|
|
188
|
+
...internalStyle.value,
|
|
189
|
+
...props2.style
|
|
190
|
+
};
|
|
191
|
+
} else {
|
|
192
|
+
return internalStyle.value;
|
|
193
|
+
}
|
|
194
|
+
});
|
|
176
195
|
onMounted(() => {
|
|
177
196
|
bodyRef.value = document.body;
|
|
178
197
|
});
|
|
@@ -193,11 +212,8 @@ const MdModal = /* @__PURE__ */ defineComponent({
|
|
|
193
212
|
"data-theme": themeRef.value
|
|
194
213
|
}, [createVNode("div", {
|
|
195
214
|
"class": props2.class,
|
|
196
|
-
"style":
|
|
197
|
-
|
|
198
|
-
display: modalVisible.value ? "block" : "none"
|
|
199
|
-
}
|
|
200
|
-
}, [createVNode("div", {
|
|
215
|
+
"style": combinedStyle.value
|
|
216
|
+
}, [props2.showMask && createVNode("div", {
|
|
201
217
|
"class": `${prefix}-modal-mask`,
|
|
202
218
|
"style": state.maskStyle,
|
|
203
219
|
"onClick": () => {
|
package/lib/preview.css
CHANGED
|
@@ -8,6 +8,7 @@
|
|
|
8
8
|
--md-border-hover-color: #b9b9b9;
|
|
9
9
|
--md-border-active-color: #999;
|
|
10
10
|
--md-modal-mask: #00000073;
|
|
11
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000019;
|
|
11
12
|
--md-scrollbar-bg-color: #e2e2e2;
|
|
12
13
|
--md-scrollbar-thumb-color: #0000004d;
|
|
13
14
|
--md-scrollbar-thumb-hover-color: #00000059;
|
|
@@ -65,6 +66,7 @@
|
|
|
65
66
|
--md-border-hover-color: #636262;
|
|
66
67
|
--md-border-active-color: #777;
|
|
67
68
|
--md-modal-mask: #00000073;
|
|
69
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000066;
|
|
68
70
|
--md-scrollbar-bg-color: #0f0f0f;
|
|
69
71
|
--md-scrollbar-thumb-color: #2d2d2d;
|
|
70
72
|
--md-scrollbar-thumb-hover-color: #3a3a3a;
|
|
@@ -79,6 +81,7 @@
|
|
|
79
81
|
--md-border-hover-color: #b9b9b9;
|
|
80
82
|
--md-border-active-color: #999;
|
|
81
83
|
--md-modal-mask: #00000073;
|
|
84
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000019;
|
|
82
85
|
--md-scrollbar-bg-color: #e2e2e2;
|
|
83
86
|
--md-scrollbar-thumb-color: #0000004d;
|
|
84
87
|
--md-scrollbar-thumb-hover-color: #00000059;
|
|
@@ -150,6 +153,7 @@
|
|
|
150
153
|
--md-border-hover-color: #b9b9b9;
|
|
151
154
|
--md-border-active-color: #999;
|
|
152
155
|
--md-modal-mask: #00000073;
|
|
156
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000019;
|
|
153
157
|
--md-scrollbar-bg-color: #e2e2e2;
|
|
154
158
|
--md-scrollbar-thumb-color: #0000004d;
|
|
155
159
|
--md-scrollbar-thumb-hover-color: #00000059;
|
|
@@ -190,6 +194,7 @@
|
|
|
190
194
|
--md-border-hover-color: #636262;
|
|
191
195
|
--md-border-active-color: #777;
|
|
192
196
|
--md-modal-mask: #00000073;
|
|
197
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000066;
|
|
193
198
|
--md-scrollbar-bg-color: #0f0f0f;
|
|
194
199
|
--md-scrollbar-thumb-color: #2d2d2d;
|
|
195
200
|
--md-scrollbar-thumb-hover-color: #3a3a3a;
|
package/lib/style.css
CHANGED
|
@@ -50,7 +50,7 @@
|
|
|
50
50
|
border: 1px solid var(--md-border-color);
|
|
51
51
|
position: fixed;
|
|
52
52
|
z-index: 20001;
|
|
53
|
-
|
|
53
|
+
box-shadow: var(--md-modal-shadow);
|
|
54
54
|
}.md-editor-modal-header {
|
|
55
55
|
cursor: grab;
|
|
56
56
|
display: flex;
|
|
@@ -90,7 +90,6 @@
|
|
|
90
90
|
}@keyframes zoomIn {
|
|
91
91
|
from {
|
|
92
92
|
opacity: 0;
|
|
93
|
-
-webkit-transform: scale3d(0.3, 0.3, 0.3);
|
|
94
93
|
transform: scale3d(0.3, 0.3, 0.3);
|
|
95
94
|
}
|
|
96
95
|
50% {
|
|
@@ -106,7 +105,6 @@
|
|
|
106
105
|
}
|
|
107
106
|
50% {
|
|
108
107
|
opacity: 0;
|
|
109
|
-
-webkit-transform: scale3d(0.3, 0.3, 0.3);
|
|
110
108
|
transform: scale3d(0.3, 0.3, 0.3);
|
|
111
109
|
}
|
|
112
110
|
to {
|
|
@@ -449,6 +447,7 @@
|
|
|
449
447
|
--md-border-hover-color: #b9b9b9;
|
|
450
448
|
--md-border-active-color: #999;
|
|
451
449
|
--md-modal-mask: #00000073;
|
|
450
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000019;
|
|
452
451
|
--md-scrollbar-bg-color: #e2e2e2;
|
|
453
452
|
--md-scrollbar-thumb-color: #0000004d;
|
|
454
453
|
--md-scrollbar-thumb-hover-color: #00000059;
|
|
@@ -506,6 +505,7 @@
|
|
|
506
505
|
--md-border-hover-color: #636262;
|
|
507
506
|
--md-border-active-color: #777;
|
|
508
507
|
--md-modal-mask: #00000073;
|
|
508
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000066;
|
|
509
509
|
--md-scrollbar-bg-color: #0f0f0f;
|
|
510
510
|
--md-scrollbar-thumb-color: #2d2d2d;
|
|
511
511
|
--md-scrollbar-thumb-hover-color: #3a3a3a;
|
|
@@ -520,6 +520,7 @@
|
|
|
520
520
|
--md-border-hover-color: #b9b9b9;
|
|
521
521
|
--md-border-active-color: #999;
|
|
522
522
|
--md-modal-mask: #00000073;
|
|
523
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000019;
|
|
523
524
|
--md-scrollbar-bg-color: #e2e2e2;
|
|
524
525
|
--md-scrollbar-thumb-color: #0000004d;
|
|
525
526
|
--md-scrollbar-thumb-hover-color: #00000059;
|
|
@@ -591,6 +592,7 @@
|
|
|
591
592
|
--md-border-hover-color: #b9b9b9;
|
|
592
593
|
--md-border-active-color: #999;
|
|
593
594
|
--md-modal-mask: #00000073;
|
|
595
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000019;
|
|
594
596
|
--md-scrollbar-bg-color: #e2e2e2;
|
|
595
597
|
--md-scrollbar-thumb-color: #0000004d;
|
|
596
598
|
--md-scrollbar-thumb-hover-color: #00000059;
|
|
@@ -631,6 +633,7 @@
|
|
|
631
633
|
--md-border-hover-color: #636262;
|
|
632
634
|
--md-border-active-color: #777;
|
|
633
635
|
--md-modal-mask: #00000073;
|
|
636
|
+
--md-modal-shadow: 0px 6px 24px 2px #00000066;
|
|
634
637
|
--md-scrollbar-bg-color: #0f0f0f;
|
|
635
638
|
--md-scrollbar-thumb-color: #2d2d2d;
|
|
636
639
|
--md-scrollbar-thumb-hover-color: #3a3a3a;
|
|
@@ -35,9 +35,13 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
35
35
|
type: PropType<string>;
|
|
36
36
|
};
|
|
37
37
|
style: {
|
|
38
|
-
type: PropType<CSSProperties>;
|
|
38
|
+
type: PropType<string | CSSProperties>;
|
|
39
39
|
default: () => {};
|
|
40
40
|
};
|
|
41
|
+
showMask: {
|
|
42
|
+
type: PropType<boolean>;
|
|
43
|
+
default: boolean;
|
|
44
|
+
};
|
|
41
45
|
}, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
42
46
|
title: {
|
|
43
47
|
type: PropType<string>;
|
|
@@ -74,19 +78,24 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
74
78
|
type: PropType<string>;
|
|
75
79
|
};
|
|
76
80
|
style: {
|
|
77
|
-
type: PropType<CSSProperties>;
|
|
81
|
+
type: PropType<string | CSSProperties>;
|
|
78
82
|
default: () => {};
|
|
79
83
|
};
|
|
84
|
+
showMask: {
|
|
85
|
+
type: PropType<boolean>;
|
|
86
|
+
default: boolean;
|
|
87
|
+
};
|
|
80
88
|
}>> & {
|
|
81
89
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
82
90
|
}, {
|
|
83
91
|
title: string;
|
|
84
|
-
style: CSSProperties;
|
|
92
|
+
style: string | CSSProperties;
|
|
85
93
|
visible: boolean;
|
|
86
94
|
height: string;
|
|
87
95
|
width: string;
|
|
88
96
|
showAdjust: boolean;
|
|
89
97
|
isFullscreen: boolean;
|
|
90
98
|
onAdjust: (val: boolean) => void;
|
|
99
|
+
showMask: boolean;
|
|
91
100
|
}, {}>;
|
|
92
101
|
export default _default;
|
|
@@ -36,9 +36,13 @@ declare const _default: {
|
|
|
36
36
|
type: import("vue").PropType<string>;
|
|
37
37
|
};
|
|
38
38
|
style: {
|
|
39
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
39
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
40
40
|
default: () => {};
|
|
41
41
|
};
|
|
42
|
+
showMask: {
|
|
43
|
+
type: import("vue").PropType<boolean>;
|
|
44
|
+
default: boolean;
|
|
45
|
+
};
|
|
42
46
|
}>> & {
|
|
43
47
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
44
48
|
}, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
@@ -77,20 +81,25 @@ declare const _default: {
|
|
|
77
81
|
type: import("vue").PropType<string>;
|
|
78
82
|
};
|
|
79
83
|
style: {
|
|
80
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
84
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
81
85
|
default: () => {};
|
|
82
86
|
};
|
|
87
|
+
showMask: {
|
|
88
|
+
type: import("vue").PropType<boolean>;
|
|
89
|
+
default: boolean;
|
|
90
|
+
};
|
|
83
91
|
}>> & {
|
|
84
92
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
85
93
|
}, {
|
|
86
94
|
title: string;
|
|
87
|
-
style: import("vue").CSSProperties;
|
|
95
|
+
style: string | import("vue").CSSProperties;
|
|
88
96
|
visible: boolean;
|
|
89
97
|
height: string;
|
|
90
98
|
width: string;
|
|
91
99
|
showAdjust: boolean;
|
|
92
100
|
isFullscreen: boolean;
|
|
93
101
|
onAdjust: (val: boolean) => void;
|
|
102
|
+
showMask: boolean;
|
|
94
103
|
}, true, {}, {}, {
|
|
95
104
|
P: {};
|
|
96
105
|
B: {};
|
|
@@ -134,20 +143,25 @@ declare const _default: {
|
|
|
134
143
|
type: import("vue").PropType<string>;
|
|
135
144
|
};
|
|
136
145
|
style: {
|
|
137
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
146
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
138
147
|
default: () => {};
|
|
139
148
|
};
|
|
149
|
+
showMask: {
|
|
150
|
+
type: import("vue").PropType<boolean>;
|
|
151
|
+
default: boolean;
|
|
152
|
+
};
|
|
140
153
|
}>> & {
|
|
141
154
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
142
155
|
}, () => "" | import("vue/jsx-runtime").JSX.Element, {}, {}, {}, {
|
|
143
156
|
title: string;
|
|
144
|
-
style: import("vue").CSSProperties;
|
|
157
|
+
style: string | import("vue").CSSProperties;
|
|
145
158
|
visible: boolean;
|
|
146
159
|
height: string;
|
|
147
160
|
width: string;
|
|
148
161
|
showAdjust: boolean;
|
|
149
162
|
isFullscreen: boolean;
|
|
150
163
|
onAdjust: (val: boolean) => void;
|
|
164
|
+
showMask: boolean;
|
|
151
165
|
}>;
|
|
152
166
|
__isFragment?: undefined;
|
|
153
167
|
__isTeleport?: undefined;
|
|
@@ -188,20 +202,25 @@ declare const _default: {
|
|
|
188
202
|
type: import("vue").PropType<string>;
|
|
189
203
|
};
|
|
190
204
|
style: {
|
|
191
|
-
type: import("vue").PropType<import("vue").CSSProperties>;
|
|
205
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
192
206
|
default: () => {};
|
|
193
207
|
};
|
|
208
|
+
showMask: {
|
|
209
|
+
type: import("vue").PropType<boolean>;
|
|
210
|
+
default: boolean;
|
|
211
|
+
};
|
|
194
212
|
}>> & {
|
|
195
213
|
onOnClose?: ((...args: any[]) => any) | undefined;
|
|
196
214
|
}, () => "" | import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onClose"[], "onClose", {
|
|
197
215
|
title: string;
|
|
198
|
-
style: import("vue").CSSProperties;
|
|
216
|
+
style: string | import("vue").CSSProperties;
|
|
199
217
|
visible: boolean;
|
|
200
218
|
height: string;
|
|
201
219
|
width: string;
|
|
202
220
|
showAdjust: boolean;
|
|
203
221
|
isFullscreen: boolean;
|
|
204
222
|
onAdjust: (val: boolean) => void;
|
|
223
|
+
showMask: boolean;
|
|
205
224
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
206
225
|
install: (app: App) => App;
|
|
207
226
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PropType, ExtractPropTypes, VNode } from 'vue';
|
|
1
|
+
import { PropType, ExtractPropTypes, VNode, CSSProperties } from 'vue';
|
|
2
2
|
import { Themes } from '../MdEditor/type';
|
|
3
3
|
declare const _default: import("vue").DefineComponent<{
|
|
4
4
|
title: {
|
|
@@ -45,6 +45,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
45
45
|
onAdjust: {
|
|
46
46
|
type: PropType<(val: boolean) => void>;
|
|
47
47
|
};
|
|
48
|
+
class: {
|
|
49
|
+
type: PropType<string>;
|
|
50
|
+
};
|
|
51
|
+
style: {
|
|
52
|
+
type: PropType<string | CSSProperties>;
|
|
53
|
+
};
|
|
54
|
+
showMask: {
|
|
55
|
+
type: PropType<boolean>;
|
|
56
|
+
default: boolean;
|
|
57
|
+
};
|
|
48
58
|
/**
|
|
49
59
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
50
60
|
*/
|
|
@@ -105,6 +115,16 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
115
|
onAdjust: {
|
|
106
116
|
type: PropType<(val: boolean) => void>;
|
|
107
117
|
};
|
|
118
|
+
class: {
|
|
119
|
+
type: PropType<string>;
|
|
120
|
+
};
|
|
121
|
+
style: {
|
|
122
|
+
type: PropType<string | CSSProperties>;
|
|
123
|
+
};
|
|
124
|
+
showMask: {
|
|
125
|
+
type: PropType<boolean>;
|
|
126
|
+
default: boolean;
|
|
127
|
+
};
|
|
108
128
|
/**
|
|
109
129
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
110
130
|
*/
|
|
@@ -130,6 +150,7 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
130
150
|
width: string;
|
|
131
151
|
showAdjust: boolean;
|
|
132
152
|
isFullscreen: boolean;
|
|
153
|
+
showMask: boolean;
|
|
133
154
|
modalTitle: string;
|
|
134
155
|
}, {}>;
|
|
135
156
|
export default _default;
|
|
@@ -42,6 +42,16 @@ declare const _default: {
|
|
|
42
42
|
onAdjust: {
|
|
43
43
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
44
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>;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
45
55
|
insert: {
|
|
46
56
|
type: import("vue").PropType<() => void>;
|
|
47
57
|
};
|
|
@@ -100,6 +110,16 @@ declare const _default: {
|
|
|
100
110
|
onAdjust: {
|
|
101
111
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
102
112
|
};
|
|
113
|
+
class: {
|
|
114
|
+
type: import("vue").PropType<string>;
|
|
115
|
+
};
|
|
116
|
+
style: {
|
|
117
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
118
|
+
};
|
|
119
|
+
showMask: {
|
|
120
|
+
type: import("vue").PropType<boolean>;
|
|
121
|
+
default: boolean;
|
|
122
|
+
};
|
|
103
123
|
insert: {
|
|
104
124
|
type: import("vue").PropType<() => void>;
|
|
105
125
|
};
|
|
@@ -122,6 +142,7 @@ declare const _default: {
|
|
|
122
142
|
width: string;
|
|
123
143
|
showAdjust: boolean;
|
|
124
144
|
isFullscreen: boolean;
|
|
145
|
+
showMask: boolean;
|
|
125
146
|
modalTitle: string;
|
|
126
147
|
}, true, {}, {}, {
|
|
127
148
|
P: {};
|
|
@@ -172,6 +193,16 @@ declare const _default: {
|
|
|
172
193
|
onAdjust: {
|
|
173
194
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
174
195
|
};
|
|
196
|
+
class: {
|
|
197
|
+
type: import("vue").PropType<string>;
|
|
198
|
+
};
|
|
199
|
+
style: {
|
|
200
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
201
|
+
};
|
|
202
|
+
showMask: {
|
|
203
|
+
type: import("vue").PropType<boolean>;
|
|
204
|
+
default: boolean;
|
|
205
|
+
};
|
|
175
206
|
insert: {
|
|
176
207
|
type: import("vue").PropType<() => void>;
|
|
177
208
|
};
|
|
@@ -194,6 +225,7 @@ declare const _default: {
|
|
|
194
225
|
width: string;
|
|
195
226
|
showAdjust: boolean;
|
|
196
227
|
isFullscreen: boolean;
|
|
228
|
+
showMask: boolean;
|
|
197
229
|
modalTitle: string;
|
|
198
230
|
}>;
|
|
199
231
|
__isFragment?: undefined;
|
|
@@ -241,6 +273,16 @@ declare const _default: {
|
|
|
241
273
|
onAdjust: {
|
|
242
274
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
243
275
|
};
|
|
276
|
+
class: {
|
|
277
|
+
type: import("vue").PropType<string>;
|
|
278
|
+
};
|
|
279
|
+
style: {
|
|
280
|
+
type: import("vue").PropType<string | import("vue").CSSProperties>;
|
|
281
|
+
};
|
|
282
|
+
showMask: {
|
|
283
|
+
type: import("vue").PropType<boolean>;
|
|
284
|
+
default: boolean;
|
|
285
|
+
};
|
|
244
286
|
insert: {
|
|
245
287
|
type: import("vue").PropType<() => void>;
|
|
246
288
|
};
|
|
@@ -263,6 +305,7 @@ declare const _default: {
|
|
|
263
305
|
width: string;
|
|
264
306
|
showAdjust: boolean;
|
|
265
307
|
isFullscreen: boolean;
|
|
308
|
+
showMask: boolean;
|
|
266
309
|
modalTitle: string;
|
|
267
310
|
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
268
311
|
install: (app: App) => App;
|