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
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/MdEditor.cjs
CHANGED
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/MdEditor.mjs
CHANGED
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;
|
|
@@ -1,7 +1,6 @@
|
|
|
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;
|
|
@@ -10,7 +9,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
10
9
|
type: PropType<boolean>;
|
|
11
10
|
};
|
|
12
11
|
trigger: {
|
|
13
|
-
type: PropType<string | VNode<import(
|
|
12
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
13
|
[key: string]: any;
|
|
15
14
|
}>>;
|
|
16
15
|
};
|
|
@@ -18,7 +17,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
17
|
type: PropType<(visible: boolean) => void>;
|
|
19
18
|
};
|
|
20
19
|
overlay: {
|
|
21
|
-
type: PropType<string | VNode<import(
|
|
20
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
21
|
[key: string]: any;
|
|
23
22
|
}>>;
|
|
24
23
|
};
|
|
@@ -43,7 +42,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
43
42
|
default: {
|
|
44
43
|
type: PropType<string | Element>;
|
|
45
44
|
};
|
|
46
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
45
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
47
46
|
title: {
|
|
48
47
|
type: PropType<string>;
|
|
49
48
|
default: string;
|
|
@@ -52,7 +51,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
52
51
|
type: PropType<boolean>;
|
|
53
52
|
};
|
|
54
53
|
trigger: {
|
|
55
|
-
type: PropType<string | VNode<import(
|
|
54
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
56
55
|
[key: string]: any;
|
|
57
56
|
}>>;
|
|
58
57
|
};
|
|
@@ -60,7 +59,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
60
59
|
type: PropType<(visible: boolean) => void>;
|
|
61
60
|
};
|
|
62
61
|
overlay: {
|
|
63
|
-
type: PropType<string | VNode<import(
|
|
62
|
+
type: PropType<string | VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
64
63
|
[key: string]: any;
|
|
65
64
|
}>>;
|
|
66
65
|
};
|
|
@@ -1,79 +1,78 @@
|
|
|
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
|
visible: {
|
|
10
|
-
type: import(
|
|
9
|
+
type: import("vue").PropType<boolean>;
|
|
11
10
|
};
|
|
12
11
|
trigger: {
|
|
13
|
-
type: import(
|
|
12
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
13
|
[key: string]: any;
|
|
15
14
|
}>>;
|
|
16
15
|
};
|
|
17
16
|
onChange: {
|
|
18
|
-
type: import(
|
|
17
|
+
type: import("vue").PropType<(visible: boolean) => void>;
|
|
19
18
|
};
|
|
20
19
|
overlay: {
|
|
21
|
-
type: import(
|
|
20
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
21
|
[key: string]: any;
|
|
23
22
|
}>>;
|
|
24
23
|
};
|
|
25
24
|
insert: {
|
|
26
|
-
type: import(
|
|
25
|
+
type: import("vue").PropType<() => void>;
|
|
27
26
|
};
|
|
28
27
|
language: {
|
|
29
|
-
type: import(
|
|
28
|
+
type: import("vue").PropType<string>;
|
|
30
29
|
};
|
|
31
30
|
theme: {
|
|
32
|
-
type: import(
|
|
31
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
33
32
|
};
|
|
34
33
|
previewTheme: {
|
|
35
|
-
type: import(
|
|
34
|
+
type: import("vue").PropType<string>;
|
|
36
35
|
};
|
|
37
36
|
default: {
|
|
38
|
-
type: import(
|
|
37
|
+
type: import("vue").PropType<string | Element>;
|
|
39
38
|
};
|
|
40
39
|
}>> & {
|
|
41
40
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
42
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
41
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & Readonly<import("vue").ExtractPropTypes<{
|
|
43
42
|
title: {
|
|
44
|
-
type: import(
|
|
43
|
+
type: import("vue").PropType<string>;
|
|
45
44
|
default: string;
|
|
46
45
|
};
|
|
47
46
|
visible: {
|
|
48
|
-
type: import(
|
|
47
|
+
type: import("vue").PropType<boolean>;
|
|
49
48
|
};
|
|
50
49
|
trigger: {
|
|
51
|
-
type: import(
|
|
50
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
52
51
|
[key: string]: any;
|
|
53
52
|
}>>;
|
|
54
53
|
};
|
|
55
54
|
onChange: {
|
|
56
|
-
type: import(
|
|
55
|
+
type: import("vue").PropType<(visible: boolean) => void>;
|
|
57
56
|
};
|
|
58
57
|
overlay: {
|
|
59
|
-
type: import(
|
|
58
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
60
59
|
[key: string]: any;
|
|
61
60
|
}>>;
|
|
62
61
|
};
|
|
63
62
|
insert: {
|
|
64
|
-
type: import(
|
|
63
|
+
type: import("vue").PropType<() => void>;
|
|
65
64
|
};
|
|
66
65
|
language: {
|
|
67
|
-
type: import(
|
|
66
|
+
type: import("vue").PropType<string>;
|
|
68
67
|
};
|
|
69
68
|
theme: {
|
|
70
|
-
type: import(
|
|
69
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
71
70
|
};
|
|
72
71
|
previewTheme: {
|
|
73
|
-
type: import(
|
|
72
|
+
type: import("vue").PropType<string>;
|
|
74
73
|
};
|
|
75
74
|
default: {
|
|
76
|
-
type: import(
|
|
75
|
+
type: import("vue").PropType<string | Element>;
|
|
77
76
|
};
|
|
78
77
|
}>> & {
|
|
79
78
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -86,41 +85,41 @@ declare const _default: {
|
|
|
86
85
|
C: {};
|
|
87
86
|
M: {};
|
|
88
87
|
Defaults: {};
|
|
89
|
-
}, Readonly<import(
|
|
88
|
+
}, Readonly<import("vue").ExtractPropTypes<{
|
|
90
89
|
title: {
|
|
91
|
-
type: import(
|
|
90
|
+
type: import("vue").PropType<string>;
|
|
92
91
|
default: string;
|
|
93
92
|
};
|
|
94
93
|
visible: {
|
|
95
|
-
type: import(
|
|
94
|
+
type: import("vue").PropType<boolean>;
|
|
96
95
|
};
|
|
97
96
|
trigger: {
|
|
98
|
-
type: import(
|
|
97
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
99
98
|
[key: string]: any;
|
|
100
99
|
}>>;
|
|
101
100
|
};
|
|
102
101
|
onChange: {
|
|
103
|
-
type: import(
|
|
102
|
+
type: import("vue").PropType<(visible: boolean) => void>;
|
|
104
103
|
};
|
|
105
104
|
overlay: {
|
|
106
|
-
type: import(
|
|
105
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
107
106
|
[key: string]: any;
|
|
108
107
|
}>>;
|
|
109
108
|
};
|
|
110
109
|
insert: {
|
|
111
|
-
type: import(
|
|
110
|
+
type: import("vue").PropType<() => void>;
|
|
112
111
|
};
|
|
113
112
|
language: {
|
|
114
|
-
type: import(
|
|
113
|
+
type: import("vue").PropType<string>;
|
|
115
114
|
};
|
|
116
115
|
theme: {
|
|
117
|
-
type: import(
|
|
116
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
118
117
|
};
|
|
119
118
|
previewTheme: {
|
|
120
|
-
type: import(
|
|
119
|
+
type: import("vue").PropType<string>;
|
|
121
120
|
};
|
|
122
121
|
default: {
|
|
123
|
-
type: import(
|
|
122
|
+
type: import("vue").PropType<string | Element>;
|
|
124
123
|
};
|
|
125
124
|
}>> & {
|
|
126
125
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
@@ -130,47 +129,47 @@ declare const _default: {
|
|
|
130
129
|
__isFragment?: undefined;
|
|
131
130
|
__isTeleport?: undefined;
|
|
132
131
|
__isSuspense?: undefined;
|
|
133
|
-
} & import(
|
|
132
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
134
133
|
title: {
|
|
135
|
-
type: import(
|
|
134
|
+
type: import("vue").PropType<string>;
|
|
136
135
|
default: string;
|
|
137
136
|
};
|
|
138
137
|
visible: {
|
|
139
|
-
type: import(
|
|
138
|
+
type: import("vue").PropType<boolean>;
|
|
140
139
|
};
|
|
141
140
|
trigger: {
|
|
142
|
-
type: import(
|
|
141
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
143
142
|
[key: string]: any;
|
|
144
143
|
}>>;
|
|
145
144
|
};
|
|
146
145
|
onChange: {
|
|
147
|
-
type: import(
|
|
146
|
+
type: import("vue").PropType<(visible: boolean) => void>;
|
|
148
147
|
};
|
|
149
148
|
overlay: {
|
|
150
|
-
type: import(
|
|
149
|
+
type: import("vue").PropType<string | import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
151
150
|
[key: string]: any;
|
|
152
151
|
}>>;
|
|
153
152
|
};
|
|
154
153
|
insert: {
|
|
155
|
-
type: import(
|
|
154
|
+
type: import("vue").PropType<() => void>;
|
|
156
155
|
};
|
|
157
156
|
language: {
|
|
158
|
-
type: import(
|
|
157
|
+
type: import("vue").PropType<string>;
|
|
159
158
|
};
|
|
160
159
|
theme: {
|
|
161
|
-
type: import(
|
|
160
|
+
type: import("vue").PropType<import("..").Themes>;
|
|
162
161
|
};
|
|
163
162
|
previewTheme: {
|
|
164
|
-
type: import(
|
|
163
|
+
type: import("vue").PropType<string>;
|
|
165
164
|
};
|
|
166
165
|
default: {
|
|
167
|
-
type: import(
|
|
166
|
+
type: import("vue").PropType<string | Element>;
|
|
168
167
|
};
|
|
169
168
|
}>> & {
|
|
170
169
|
onOnChange?: ((...args: any[]) => any) | undefined;
|
|
171
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
170
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "onChange"[], "onChange", {
|
|
172
171
|
title: string;
|
|
173
|
-
}, {}, string, {}> & import(
|
|
172
|
+
}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & {
|
|
174
173
|
install: (app: App) => App;
|
|
175
174
|
};
|
|
176
175
|
export default _default;
|
|
@@ -1,8 +1,7 @@
|
|
|
1
|
-
import { TocItem } from './MdCatalog';
|
|
2
|
-
import { MdHeadingId } from '../MdEditor/type';
|
|
3
|
-
import { LooseRequired } from '@vue/shared';
|
|
4
1
|
import { PropType, ExtractPropTypes } from 'vue';
|
|
5
|
-
|
|
2
|
+
import { LooseRequired } from '@vue/shared';
|
|
3
|
+
import { MdHeadingId } from '../MdEditor/type';
|
|
4
|
+
import { TocItem } from './MdCatalog';
|
|
6
5
|
declare const props: {
|
|
7
6
|
tocItem: {
|
|
8
7
|
type: PropType<TocItem>;
|
|
@@ -26,7 +25,7 @@ declare const props: {
|
|
|
26
25
|
};
|
|
27
26
|
};
|
|
28
27
|
export type CatalogLinkProps = Readonly<LooseRequired<Readonly<ExtractPropTypes<typeof props>>>>;
|
|
29
|
-
declare const CatalogLink: import(
|
|
28
|
+
declare const CatalogLink: import("vue").DefineComponent<{
|
|
30
29
|
tocItem: {
|
|
31
30
|
type: PropType<TocItem>;
|
|
32
31
|
default: () => {};
|
|
@@ -47,7 +46,7 @@ declare const CatalogLink: import('vue').DefineComponent<{
|
|
|
47
46
|
type: PropType<number>;
|
|
48
47
|
default: number;
|
|
49
48
|
};
|
|
50
|
-
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import(
|
|
49
|
+
}, () => import("vue/jsx-runtime").JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<ExtractPropTypes<{
|
|
51
50
|
tocItem: {
|
|
52
51
|
type: PropType<TocItem>;
|
|
53
52
|
default: () => {};
|