md-editor-v3 4.16.8-0 → 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/ModalToolbar.cjs +12 -0
- package/lib/cjs/chunks/index3.cjs +22 -6
- 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/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 +19 -1
- package/lib/types/ModalToolbar/index.d.ts +36 -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 `false`.
|
|
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 `false`.
|
|
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,15 @@ 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
|
+
},
|
|
53
62
|
/**
|
|
54
63
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
55
64
|
*/
|
|
@@ -94,10 +103,13 @@ const ModalToolbar = /* @__PURE__ */ vue.defineComponent({
|
|
|
94
103
|
}
|
|
95
104
|
}
|
|
96
105
|
}, [Trigger]), vue.createVNode(MdModal.MdModal, {
|
|
106
|
+
"style": props2.style,
|
|
107
|
+
"class": props2.class,
|
|
97
108
|
"width": props2.width,
|
|
98
109
|
"height": props2.height,
|
|
99
110
|
"title": props2.modalTitle,
|
|
100
111
|
"visible": props2.visible,
|
|
112
|
+
"showMask": props2.showMask,
|
|
101
113
|
"onClose": () => {
|
|
102
114
|
if (props2.onClose instanceof Function) {
|
|
103
115
|
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,15 @@ 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
|
+
},
|
|
52
61
|
/**
|
|
53
62
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
54
63
|
*/
|
|
@@ -93,10 +102,13 @@ const ModalToolbar = /* @__PURE__ */ defineComponent({
|
|
|
93
102
|
}
|
|
94
103
|
}
|
|
95
104
|
}, [Trigger]), createVNode(MdModal, {
|
|
105
|
+
"style": props2.style,
|
|
106
|
+
"class": props2.class,
|
|
96
107
|
"width": props2.width,
|
|
97
108
|
"height": props2.height,
|
|
98
109
|
"title": props2.modalTitle,
|
|
99
110
|
"visible": props2.visible,
|
|
111
|
+
"showMask": props2.showMask,
|
|
100
112
|
"onClose": () => {
|
|
101
113
|
if (props2.onClose instanceof Function) {
|
|
102
114
|
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,15 @@ 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
|
+
};
|
|
48
57
|
/**
|
|
49
58
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
50
59
|
*/
|
|
@@ -105,6 +114,15 @@ declare const _default: import("vue").DefineComponent<{
|
|
|
105
114
|
onAdjust: {
|
|
106
115
|
type: PropType<(val: boolean) => void>;
|
|
107
116
|
};
|
|
117
|
+
class: {
|
|
118
|
+
type: PropType<string>;
|
|
119
|
+
};
|
|
120
|
+
style: {
|
|
121
|
+
type: PropType<string | CSSProperties>;
|
|
122
|
+
};
|
|
123
|
+
showMask: {
|
|
124
|
+
type: PropType<boolean>;
|
|
125
|
+
};
|
|
108
126
|
/**
|
|
109
127
|
* ==没有意义,仅用于规避克隆组件自动嵌入insert方法时,传入的是该组件而产生的waring
|
|
110
128
|
*/
|
|
@@ -42,6 +42,15 @@ 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
|
+
};
|
|
45
54
|
insert: {
|
|
46
55
|
type: import("vue").PropType<() => void>;
|
|
47
56
|
};
|
|
@@ -100,6 +109,15 @@ declare const _default: {
|
|
|
100
109
|
onAdjust: {
|
|
101
110
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
102
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>;
|
|
120
|
+
};
|
|
103
121
|
insert: {
|
|
104
122
|
type: import("vue").PropType<() => void>;
|
|
105
123
|
};
|
|
@@ -172,6 +190,15 @@ declare const _default: {
|
|
|
172
190
|
onAdjust: {
|
|
173
191
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
174
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>;
|
|
201
|
+
};
|
|
175
202
|
insert: {
|
|
176
203
|
type: import("vue").PropType<() => void>;
|
|
177
204
|
};
|
|
@@ -241,6 +268,15 @@ declare const _default: {
|
|
|
241
268
|
onAdjust: {
|
|
242
269
|
type: import("vue").PropType<(val: boolean) => void>;
|
|
243
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>;
|
|
279
|
+
};
|
|
244
280
|
insert: {
|
|
245
281
|
type: import("vue").PropType<() => void>;
|
|
246
282
|
};
|