vue-devui 1.5.4 → 1.5.5
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/carousel/index.es.js +448 -0
- package/carousel/index.umd.js +1 -0
- package/carousel/package.json +8 -0
- package/carousel/style.css +1 -0
- package/code-review/index.es.js +73 -0
- package/code-review/index.umd.js +1 -0
- package/code-review/package.json +8 -0
- package/code-review/style.css +1 -0
- package/editor-md/index.es.js +9173 -0
- package/editor-md/index.umd.js +142 -0
- package/editor-md/package.json +8 -0
- package/editor-md/style.css +1 -0
- package/global.d.ts +5 -0
- package/grid/index.es.js +25 -1
- package/grid/index.umd.js +1 -1
- package/nuxt/components/Carousel.js +3 -0
- package/nuxt/components/CarouselItem.js +3 -0
- package/nuxt/components/CodeReview.js +3 -0
- package/nuxt/components/EditorMd.js +3 -0
- package/nuxt/components/EditorMdInjectionKey.js +3 -0
- package/nuxt/components/MdRender.js +3 -0
- package/nuxt/components/codeReviewProps.js +3 -0
- package/nuxt/components/editorMdProps.js +3 -0
- package/nuxt/components/mdRenderProps.js +3 -0
- package/nuxt/components/mdToolbarItemProps.js +3 -0
- package/package.json +10 -3
- package/style.css +1 -1
- package/types/code-review/index.d.ts +11 -0
- package/types/code-review/src/code-review-types.d.ts +14 -0
- package/types/code-review/src/code-review.d.ts +27 -0
- package/types/code-review/src/composables/use-code-review.d.ts +4 -0
- package/types/editor-md/index.d.ts +12 -0
- package/types/editor-md/src/components/font-color.d.ts +2 -0
- package/types/editor-md/src/components/font-size.d.ts +2 -0
- package/types/editor-md/src/components/md-render.d.ts +95 -0
- package/types/editor-md/src/components/toolbar-item.d.ts +14 -0
- package/types/editor-md/src/components/toolbar.d.ts +3 -0
- package/types/editor-md/src/composables/helper.d.ts +2 -0
- package/types/editor-md/src/composables/md-render-service.d.ts +26 -0
- package/types/editor-md/src/composables/use-editor-md-render.d.ts +10 -0
- package/types/editor-md/src/composables/use-editor-md-theme.d.ts +3 -0
- package/types/editor-md/src/composables/use-editor-md-toolbar.d.ts +4 -0
- package/types/editor-md/src/composables/use-editor-md.d.ts +15 -0
- package/types/editor-md/src/editor-md-types.d.ts +172 -0
- package/types/editor-md/src/editor-md.d.ts +198 -0
- package/types/editor-md/src/icons-config.d.ts +23 -0
- package/types/editor-md/src/plugins/mermaid.d.ts +2 -0
- package/types/editor-md/src/plugins/toc.d.ts +1 -0
- package/types/editor-md/src/toolbar-config.d.ts +22 -0
- package/types/editor-md/src/utils.d.ts +2 -0
- package/types/grid/src/grid-types.d.ts +4 -0
- package/types/grid/src/row.d.ts +9 -0
- package/types/menu/src/menu.d.ts +1 -1
- package/types/nav-sprite/src/nav-sprite.d.ts +1 -1
- package/types/vue-devui.d.ts +3 -1
- package/vue-devui.es.js +16052 -14237
- package/vue-devui.umd.js +135 -20
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import CodeReview from './src/code-review';
|
|
3
|
+
export * from './src/code-review-types';
|
|
4
|
+
export { CodeReview };
|
|
5
|
+
declare const _default: {
|
|
6
|
+
title: string;
|
|
7
|
+
category: string;
|
|
8
|
+
status: string;
|
|
9
|
+
install(app: App): void;
|
|
10
|
+
};
|
|
11
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { ExtractPropTypes, PropType } from 'vue';
|
|
2
|
+
export declare type OutputFormat = 'line-by-line' | 'side-by-side';
|
|
3
|
+
export declare const codeReviewProps: {
|
|
4
|
+
diff: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: boolean;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: {
|
|
10
|
+
type: PropType<OutputFormat>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
};
|
|
14
|
+
export declare type CodeReviewProps = ExtractPropTypes<typeof codeReviewProps>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import 'diff2html/bundles/css/diff2html.min.css';
|
|
2
|
+
import './code-review.scss';
|
|
3
|
+
declare const _default: import("vue").DefineComponent<{
|
|
4
|
+
diff: {
|
|
5
|
+
type: StringConstructor;
|
|
6
|
+
required: boolean;
|
|
7
|
+
default: string;
|
|
8
|
+
};
|
|
9
|
+
outputFormat: {
|
|
10
|
+
type: import("vue").PropType<import("./code-review-types").OutputFormat>;
|
|
11
|
+
default: string;
|
|
12
|
+
};
|
|
13
|
+
}, () => 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<{
|
|
14
|
+
diff: {
|
|
15
|
+
type: StringConstructor;
|
|
16
|
+
required: boolean;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
outputFormat: {
|
|
20
|
+
type: import("vue").PropType<import("./code-review-types").OutputFormat>;
|
|
21
|
+
default: string;
|
|
22
|
+
};
|
|
23
|
+
}>>, {
|
|
24
|
+
diff: string;
|
|
25
|
+
outputFormat: import("./code-review-types").OutputFormat;
|
|
26
|
+
}>;
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { App } from 'vue';
|
|
2
|
+
import EditorMd from './src/editor-md';
|
|
3
|
+
import MdRender from './src/components/md-render';
|
|
4
|
+
export * from './src/editor-md-types';
|
|
5
|
+
export { EditorMd, MdRender };
|
|
6
|
+
declare const _default: {
|
|
7
|
+
title: string;
|
|
8
|
+
category: string;
|
|
9
|
+
status: string;
|
|
10
|
+
install(app: App): void;
|
|
11
|
+
};
|
|
12
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
content: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
disableRender: {
|
|
7
|
+
type: BooleanConstructor;
|
|
8
|
+
default: boolean;
|
|
9
|
+
};
|
|
10
|
+
baseUrl: {
|
|
11
|
+
type: StringConstructor;
|
|
12
|
+
default: null;
|
|
13
|
+
};
|
|
14
|
+
breaks: {
|
|
15
|
+
type: BooleanConstructor;
|
|
16
|
+
default: boolean;
|
|
17
|
+
};
|
|
18
|
+
customParse: {
|
|
19
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
20
|
+
default: null;
|
|
21
|
+
};
|
|
22
|
+
renderParse: {
|
|
23
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
24
|
+
default: null;
|
|
25
|
+
};
|
|
26
|
+
mdRules: {
|
|
27
|
+
type: ObjectConstructor;
|
|
28
|
+
default: () => {};
|
|
29
|
+
};
|
|
30
|
+
customRendererRules: {
|
|
31
|
+
type: import("vue").PropType<import("../editor-md-types").ICustomRenderRule[]>;
|
|
32
|
+
default: () => never[];
|
|
33
|
+
};
|
|
34
|
+
customXssRules: {
|
|
35
|
+
type: import("vue").PropType<import("../editor-md-types").ICustomXssRule[]>;
|
|
36
|
+
default: () => never[];
|
|
37
|
+
};
|
|
38
|
+
mdPlugins: {
|
|
39
|
+
type: import("vue").PropType<import("../editor-md-types").MdPlugin[]>;
|
|
40
|
+
default: () => never[];
|
|
41
|
+
};
|
|
42
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "mdCheckedEvent" | "mdRenderChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
43
|
+
content: {
|
|
44
|
+
type: StringConstructor;
|
|
45
|
+
default: string;
|
|
46
|
+
};
|
|
47
|
+
disableRender: {
|
|
48
|
+
type: BooleanConstructor;
|
|
49
|
+
default: boolean;
|
|
50
|
+
};
|
|
51
|
+
baseUrl: {
|
|
52
|
+
type: StringConstructor;
|
|
53
|
+
default: null;
|
|
54
|
+
};
|
|
55
|
+
breaks: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
customParse: {
|
|
60
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
61
|
+
default: null;
|
|
62
|
+
};
|
|
63
|
+
renderParse: {
|
|
64
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
65
|
+
default: null;
|
|
66
|
+
};
|
|
67
|
+
mdRules: {
|
|
68
|
+
type: ObjectConstructor;
|
|
69
|
+
default: () => {};
|
|
70
|
+
};
|
|
71
|
+
customRendererRules: {
|
|
72
|
+
type: import("vue").PropType<import("../editor-md-types").ICustomRenderRule[]>;
|
|
73
|
+
default: () => never[];
|
|
74
|
+
};
|
|
75
|
+
customXssRules: {
|
|
76
|
+
type: import("vue").PropType<import("../editor-md-types").ICustomXssRule[]>;
|
|
77
|
+
default: () => never[];
|
|
78
|
+
};
|
|
79
|
+
mdPlugins: {
|
|
80
|
+
type: import("vue").PropType<import("../editor-md-types").MdPlugin[]>;
|
|
81
|
+
default: () => never[];
|
|
82
|
+
};
|
|
83
|
+
}>>, {
|
|
84
|
+
content: string;
|
|
85
|
+
baseUrl: string;
|
|
86
|
+
breaks: boolean;
|
|
87
|
+
customParse: (html: string) => string;
|
|
88
|
+
renderParse: (html: string) => string;
|
|
89
|
+
mdRules: Record<string, any>;
|
|
90
|
+
customRendererRules: import("../editor-md-types").ICustomRenderRule[];
|
|
91
|
+
customXssRules: import("../editor-md-types").ICustomXssRule[];
|
|
92
|
+
mdPlugins: import("../editor-md-types").MdPlugin[];
|
|
93
|
+
disableRender: boolean;
|
|
94
|
+
}>;
|
|
95
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
declare const _default: import("vue").DefineComponent<{
|
|
2
|
+
config: {
|
|
3
|
+
type: import("vue").PropType<import("../toolbar-config").IToolbarItemConfig>;
|
|
4
|
+
default: () => {};
|
|
5
|
+
};
|
|
6
|
+
}, () => 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<{
|
|
7
|
+
config: {
|
|
8
|
+
type: import("vue").PropType<import("../toolbar-config").IToolbarItemConfig>;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
}>>, {
|
|
12
|
+
config: import("../toolbar-config").IToolbarItemConfig;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import './toolbar.scss';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{}, () => JSX.Element, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
|
|
3
|
+
export default _default;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { IWhiteList } from 'xss';
|
|
2
|
+
import type { MdPlugin, ICustomXssRule, ICustomRenderRule } from '../editor-md-types';
|
|
3
|
+
export declare class MDRenderService {
|
|
4
|
+
private xssWhiteList;
|
|
5
|
+
private cssWhiteList;
|
|
6
|
+
private mdt;
|
|
7
|
+
private baseUrl;
|
|
8
|
+
private breaks;
|
|
9
|
+
private renderParse;
|
|
10
|
+
constructor();
|
|
11
|
+
private setDefaultXss;
|
|
12
|
+
setBaseUrl(url: string): void;
|
|
13
|
+
setBreaks(breaks: boolean): void;
|
|
14
|
+
setRenderParse(func: Function): void;
|
|
15
|
+
getXssWhiteList(): IWhiteList;
|
|
16
|
+
setXssWhiteList(list: IWhiteList): void;
|
|
17
|
+
setCustomXssRules(rules: ICustomXssRule[]): void;
|
|
18
|
+
setCustomRendererRules(rules: ICustomRenderRule[]): void;
|
|
19
|
+
setOptions(options?: {}): void;
|
|
20
|
+
setPlugins(plugins: Array<MdPlugin>): void;
|
|
21
|
+
private onIgnoreTagAttr;
|
|
22
|
+
private replaceInternalUrl;
|
|
23
|
+
private handleHeaderId;
|
|
24
|
+
generateHTML(text: string): string;
|
|
25
|
+
setRules(mdRules: Record<string, any>): void;
|
|
26
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SetupContext } from 'vue';
|
|
2
|
+
import { MdRenderProps } from '../editor-md-types';
|
|
3
|
+
import { MDRenderService } from './md-render-service';
|
|
4
|
+
export declare function useEditorMdRender(props: MdRenderProps, ctx: SetupContext): {
|
|
5
|
+
previewRef: import("vue").Ref<any>;
|
|
6
|
+
renderService: MDRenderService;
|
|
7
|
+
onPreviewClick: (e: any) => void;
|
|
8
|
+
setContainerContent: () => void;
|
|
9
|
+
};
|
|
10
|
+
export declare function useMdRenderWatcher(props: MdRenderProps, renderService: MDRenderService, setContainerContent: () => void): void;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Ref, SetupContext } from 'vue';
|
|
2
|
+
import { EditorMdProps } from '../editor-md-types';
|
|
3
|
+
export declare function useEditorMd(props: EditorMdProps, ctx: SetupContext): {
|
|
4
|
+
editorRef: Ref<any>;
|
|
5
|
+
renderRef: Ref<any>;
|
|
6
|
+
toolbars: Record<string, import("../toolbar-config").IToolbarItemConfig>;
|
|
7
|
+
previewHtmlList: Ref<any[]>;
|
|
8
|
+
getEditorIns: () => any;
|
|
9
|
+
onPaste: (e: ClipboardEvent) => void;
|
|
10
|
+
previewContentChange: (html: string) => void;
|
|
11
|
+
onChecked: (e: string) => void;
|
|
12
|
+
onPreviewScroll: () => void;
|
|
13
|
+
onPreviewMouseout: () => void;
|
|
14
|
+
onPreviewMouseover: () => void;
|
|
15
|
+
};
|
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
import type { PropType, ExtractPropTypes, InjectionKey, Ref } from 'vue';
|
|
2
|
+
import { IToolbarItemConfig } from './toolbar-config';
|
|
3
|
+
export interface MDThemeToolbarConfig {
|
|
4
|
+
icons: {
|
|
5
|
+
[key: string]: string;
|
|
6
|
+
};
|
|
7
|
+
}
|
|
8
|
+
export interface MDThemeConfig {
|
|
9
|
+
toolbar: MDThemeToolbarConfig;
|
|
10
|
+
}
|
|
11
|
+
export interface MdPlugin {
|
|
12
|
+
plugin: any;
|
|
13
|
+
opts?: Object;
|
|
14
|
+
}
|
|
15
|
+
export interface ICustomXssRule {
|
|
16
|
+
key: string;
|
|
17
|
+
value: string[];
|
|
18
|
+
}
|
|
19
|
+
export interface ICustomRenderRule {
|
|
20
|
+
key: string;
|
|
21
|
+
value: Function;
|
|
22
|
+
}
|
|
23
|
+
export declare type Mode = 'editonly' | 'readonly' | 'normal';
|
|
24
|
+
export declare type ToolbarConfigProp = Array<string | string[]>;
|
|
25
|
+
export declare const editorMdProps: {
|
|
26
|
+
modelValue: {
|
|
27
|
+
type: StringConstructor;
|
|
28
|
+
default: string;
|
|
29
|
+
};
|
|
30
|
+
options: {
|
|
31
|
+
type: ObjectConstructor;
|
|
32
|
+
default: () => {};
|
|
33
|
+
};
|
|
34
|
+
mode: {
|
|
35
|
+
type: PropType<Mode>;
|
|
36
|
+
default: string;
|
|
37
|
+
};
|
|
38
|
+
customThemeConfig: {
|
|
39
|
+
type: PropType<MDThemeConfig>;
|
|
40
|
+
};
|
|
41
|
+
customToolbars: {
|
|
42
|
+
type: PropType<Record<string, IToolbarItemConfig>>;
|
|
43
|
+
};
|
|
44
|
+
disableChangeEvent: {
|
|
45
|
+
type: BooleanConstructor;
|
|
46
|
+
default: boolean;
|
|
47
|
+
};
|
|
48
|
+
editorContainerHeight: {
|
|
49
|
+
type: NumberConstructor;
|
|
50
|
+
};
|
|
51
|
+
imageUploadToServer: {
|
|
52
|
+
type: BooleanConstructor;
|
|
53
|
+
default: boolean;
|
|
54
|
+
};
|
|
55
|
+
hidePreviewView: {
|
|
56
|
+
type: BooleanConstructor;
|
|
57
|
+
default: boolean;
|
|
58
|
+
};
|
|
59
|
+
maxlength: {
|
|
60
|
+
type: NumberConstructor;
|
|
61
|
+
default: null;
|
|
62
|
+
};
|
|
63
|
+
placeholder: {
|
|
64
|
+
type: StringConstructor;
|
|
65
|
+
default: string;
|
|
66
|
+
};
|
|
67
|
+
toolbarConfig: {
|
|
68
|
+
type: PropType<ToolbarConfigProp>;
|
|
69
|
+
default: () => (string | string[])[];
|
|
70
|
+
};
|
|
71
|
+
fullscreenZIndex: {
|
|
72
|
+
type: NumberConstructor;
|
|
73
|
+
default: number;
|
|
74
|
+
};
|
|
75
|
+
hintConfig: {
|
|
76
|
+
type: PropType<Record<string, any>>;
|
|
77
|
+
};
|
|
78
|
+
customHintReplaceFn: {
|
|
79
|
+
type: PropType<(prefix: string, row: any) => string>;
|
|
80
|
+
};
|
|
81
|
+
baseUrl: {
|
|
82
|
+
type: StringConstructor;
|
|
83
|
+
default: null;
|
|
84
|
+
};
|
|
85
|
+
breaks: {
|
|
86
|
+
type: BooleanConstructor;
|
|
87
|
+
default: boolean;
|
|
88
|
+
};
|
|
89
|
+
customParse: {
|
|
90
|
+
type: PropType<(html: string) => string>;
|
|
91
|
+
default: null;
|
|
92
|
+
};
|
|
93
|
+
renderParse: {
|
|
94
|
+
type: PropType<(html: string) => string>;
|
|
95
|
+
default: null;
|
|
96
|
+
};
|
|
97
|
+
mdRules: {
|
|
98
|
+
type: ObjectConstructor;
|
|
99
|
+
default: () => {};
|
|
100
|
+
};
|
|
101
|
+
customRendererRules: {
|
|
102
|
+
type: PropType<ICustomRenderRule[]>;
|
|
103
|
+
default: () => never[];
|
|
104
|
+
};
|
|
105
|
+
customXssRules: {
|
|
106
|
+
type: PropType<ICustomXssRule[]>;
|
|
107
|
+
default: () => never[];
|
|
108
|
+
};
|
|
109
|
+
mdPlugins: {
|
|
110
|
+
type: PropType<MdPlugin[]>;
|
|
111
|
+
default: () => never[];
|
|
112
|
+
};
|
|
113
|
+
};
|
|
114
|
+
export declare type EditorMdProps = ExtractPropTypes<typeof editorMdProps>;
|
|
115
|
+
export interface IEditorMdInjection {
|
|
116
|
+
showFullscreen: Ref<boolean>;
|
|
117
|
+
toolbars: Record<string, IToolbarItemConfig>;
|
|
118
|
+
toolbarConfig: Ref<ToolbarConfigProp>;
|
|
119
|
+
getEditorIns: () => any;
|
|
120
|
+
t: (name: string) => string;
|
|
121
|
+
}
|
|
122
|
+
export declare const EditorMdInjectionKey: InjectionKey<IEditorMdInjection>;
|
|
123
|
+
export declare const mdRenderProps: {
|
|
124
|
+
content: {
|
|
125
|
+
type: StringConstructor;
|
|
126
|
+
default: string;
|
|
127
|
+
};
|
|
128
|
+
disableRender: {
|
|
129
|
+
type: BooleanConstructor;
|
|
130
|
+
default: boolean;
|
|
131
|
+
};
|
|
132
|
+
baseUrl: {
|
|
133
|
+
type: StringConstructor;
|
|
134
|
+
default: null;
|
|
135
|
+
};
|
|
136
|
+
breaks: {
|
|
137
|
+
type: BooleanConstructor;
|
|
138
|
+
default: boolean;
|
|
139
|
+
};
|
|
140
|
+
customParse: {
|
|
141
|
+
type: PropType<(html: string) => string>;
|
|
142
|
+
default: null;
|
|
143
|
+
};
|
|
144
|
+
renderParse: {
|
|
145
|
+
type: PropType<(html: string) => string>;
|
|
146
|
+
default: null;
|
|
147
|
+
};
|
|
148
|
+
mdRules: {
|
|
149
|
+
type: ObjectConstructor;
|
|
150
|
+
default: () => {};
|
|
151
|
+
};
|
|
152
|
+
customRendererRules: {
|
|
153
|
+
type: PropType<ICustomRenderRule[]>;
|
|
154
|
+
default: () => never[];
|
|
155
|
+
};
|
|
156
|
+
customXssRules: {
|
|
157
|
+
type: PropType<ICustomXssRule[]>;
|
|
158
|
+
default: () => never[];
|
|
159
|
+
};
|
|
160
|
+
mdPlugins: {
|
|
161
|
+
type: PropType<MdPlugin[]>;
|
|
162
|
+
default: () => never[];
|
|
163
|
+
};
|
|
164
|
+
};
|
|
165
|
+
export declare type MdRenderProps = ExtractPropTypes<typeof mdRenderProps>;
|
|
166
|
+
export declare const mdToolbarItemProps: {
|
|
167
|
+
config: {
|
|
168
|
+
type: PropType<IToolbarItemConfig>;
|
|
169
|
+
default: () => {};
|
|
170
|
+
};
|
|
171
|
+
};
|
|
172
|
+
export declare type MdToolbarItemProps = ExtractPropTypes<typeof mdToolbarItemProps>;
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
import './editor-md.scss';
|
|
2
|
+
declare const _default: import("vue").DefineComponent<{
|
|
3
|
+
modelValue: {
|
|
4
|
+
type: StringConstructor;
|
|
5
|
+
default: string;
|
|
6
|
+
};
|
|
7
|
+
options: {
|
|
8
|
+
type: ObjectConstructor;
|
|
9
|
+
default: () => {};
|
|
10
|
+
};
|
|
11
|
+
mode: {
|
|
12
|
+
type: import("vue").PropType<import("./editor-md-types").Mode>;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
customThemeConfig: {
|
|
16
|
+
type: import("vue").PropType<import("./editor-md-types").MDThemeConfig>;
|
|
17
|
+
};
|
|
18
|
+
customToolbars: {
|
|
19
|
+
type: import("vue").PropType<Record<string, import("./toolbar-config").IToolbarItemConfig>>;
|
|
20
|
+
};
|
|
21
|
+
disableChangeEvent: {
|
|
22
|
+
type: BooleanConstructor;
|
|
23
|
+
default: boolean;
|
|
24
|
+
};
|
|
25
|
+
editorContainerHeight: {
|
|
26
|
+
type: NumberConstructor;
|
|
27
|
+
};
|
|
28
|
+
imageUploadToServer: {
|
|
29
|
+
type: BooleanConstructor;
|
|
30
|
+
default: boolean;
|
|
31
|
+
};
|
|
32
|
+
hidePreviewView: {
|
|
33
|
+
type: BooleanConstructor;
|
|
34
|
+
default: boolean;
|
|
35
|
+
};
|
|
36
|
+
maxlength: {
|
|
37
|
+
type: NumberConstructor;
|
|
38
|
+
default: null;
|
|
39
|
+
};
|
|
40
|
+
placeholder: {
|
|
41
|
+
type: StringConstructor;
|
|
42
|
+
default: string;
|
|
43
|
+
};
|
|
44
|
+
toolbarConfig: {
|
|
45
|
+
type: import("vue").PropType<import("./editor-md-types").ToolbarConfigProp>;
|
|
46
|
+
default: () => (string | string[])[];
|
|
47
|
+
};
|
|
48
|
+
fullscreenZIndex: {
|
|
49
|
+
type: NumberConstructor;
|
|
50
|
+
default: number;
|
|
51
|
+
};
|
|
52
|
+
hintConfig: {
|
|
53
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
54
|
+
};
|
|
55
|
+
customHintReplaceFn: {
|
|
56
|
+
type: import("vue").PropType<(prefix: string, row: any) => string>;
|
|
57
|
+
};
|
|
58
|
+
baseUrl: {
|
|
59
|
+
type: StringConstructor;
|
|
60
|
+
default: null;
|
|
61
|
+
};
|
|
62
|
+
breaks: {
|
|
63
|
+
type: BooleanConstructor;
|
|
64
|
+
default: boolean;
|
|
65
|
+
};
|
|
66
|
+
customParse: {
|
|
67
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
68
|
+
default: null;
|
|
69
|
+
};
|
|
70
|
+
renderParse: {
|
|
71
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
72
|
+
default: null;
|
|
73
|
+
};
|
|
74
|
+
mdRules: {
|
|
75
|
+
type: ObjectConstructor;
|
|
76
|
+
default: () => {};
|
|
77
|
+
};
|
|
78
|
+
customRendererRules: {
|
|
79
|
+
type: import("vue").PropType<import("./editor-md-types").ICustomRenderRule[]>;
|
|
80
|
+
default: () => never[];
|
|
81
|
+
};
|
|
82
|
+
customXssRules: {
|
|
83
|
+
type: import("vue").PropType<import("./editor-md-types").ICustomXssRule[]>;
|
|
84
|
+
default: () => never[];
|
|
85
|
+
};
|
|
86
|
+
mdPlugins: {
|
|
87
|
+
type: import("vue").PropType<import("./editor-md-types").MdPlugin[]>;
|
|
88
|
+
default: () => never[];
|
|
89
|
+
};
|
|
90
|
+
}, () => JSX.Element, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, import("vue").EmitsOptions, "update:modelValue" | "afterEditorInit" | "mdCheckedEvent" | "selectHint" | "contentChange" | "previewContentChange", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
91
|
+
modelValue: {
|
|
92
|
+
type: StringConstructor;
|
|
93
|
+
default: string;
|
|
94
|
+
};
|
|
95
|
+
options: {
|
|
96
|
+
type: ObjectConstructor;
|
|
97
|
+
default: () => {};
|
|
98
|
+
};
|
|
99
|
+
mode: {
|
|
100
|
+
type: import("vue").PropType<import("./editor-md-types").Mode>;
|
|
101
|
+
default: string;
|
|
102
|
+
};
|
|
103
|
+
customThemeConfig: {
|
|
104
|
+
type: import("vue").PropType<import("./editor-md-types").MDThemeConfig>;
|
|
105
|
+
};
|
|
106
|
+
customToolbars: {
|
|
107
|
+
type: import("vue").PropType<Record<string, import("./toolbar-config").IToolbarItemConfig>>;
|
|
108
|
+
};
|
|
109
|
+
disableChangeEvent: {
|
|
110
|
+
type: BooleanConstructor;
|
|
111
|
+
default: boolean;
|
|
112
|
+
};
|
|
113
|
+
editorContainerHeight: {
|
|
114
|
+
type: NumberConstructor;
|
|
115
|
+
};
|
|
116
|
+
imageUploadToServer: {
|
|
117
|
+
type: BooleanConstructor;
|
|
118
|
+
default: boolean;
|
|
119
|
+
};
|
|
120
|
+
hidePreviewView: {
|
|
121
|
+
type: BooleanConstructor;
|
|
122
|
+
default: boolean;
|
|
123
|
+
};
|
|
124
|
+
maxlength: {
|
|
125
|
+
type: NumberConstructor;
|
|
126
|
+
default: null;
|
|
127
|
+
};
|
|
128
|
+
placeholder: {
|
|
129
|
+
type: StringConstructor;
|
|
130
|
+
default: string;
|
|
131
|
+
};
|
|
132
|
+
toolbarConfig: {
|
|
133
|
+
type: import("vue").PropType<import("./editor-md-types").ToolbarConfigProp>;
|
|
134
|
+
default: () => (string | string[])[];
|
|
135
|
+
};
|
|
136
|
+
fullscreenZIndex: {
|
|
137
|
+
type: NumberConstructor;
|
|
138
|
+
default: number;
|
|
139
|
+
};
|
|
140
|
+
hintConfig: {
|
|
141
|
+
type: import("vue").PropType<Record<string, any>>;
|
|
142
|
+
};
|
|
143
|
+
customHintReplaceFn: {
|
|
144
|
+
type: import("vue").PropType<(prefix: string, row: any) => string>;
|
|
145
|
+
};
|
|
146
|
+
baseUrl: {
|
|
147
|
+
type: StringConstructor;
|
|
148
|
+
default: null;
|
|
149
|
+
};
|
|
150
|
+
breaks: {
|
|
151
|
+
type: BooleanConstructor;
|
|
152
|
+
default: boolean;
|
|
153
|
+
};
|
|
154
|
+
customParse: {
|
|
155
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
156
|
+
default: null;
|
|
157
|
+
};
|
|
158
|
+
renderParse: {
|
|
159
|
+
type: import("vue").PropType<(html: string) => string>;
|
|
160
|
+
default: null;
|
|
161
|
+
};
|
|
162
|
+
mdRules: {
|
|
163
|
+
type: ObjectConstructor;
|
|
164
|
+
default: () => {};
|
|
165
|
+
};
|
|
166
|
+
customRendererRules: {
|
|
167
|
+
type: import("vue").PropType<import("./editor-md-types").ICustomRenderRule[]>;
|
|
168
|
+
default: () => never[];
|
|
169
|
+
};
|
|
170
|
+
customXssRules: {
|
|
171
|
+
type: import("vue").PropType<import("./editor-md-types").ICustomXssRule[]>;
|
|
172
|
+
default: () => never[];
|
|
173
|
+
};
|
|
174
|
+
mdPlugins: {
|
|
175
|
+
type: import("vue").PropType<import("./editor-md-types").MdPlugin[]>;
|
|
176
|
+
default: () => never[];
|
|
177
|
+
};
|
|
178
|
+
}>>, {
|
|
179
|
+
options: Record<string, any>;
|
|
180
|
+
mode: import("./editor-md-types").Mode;
|
|
181
|
+
placeholder: string;
|
|
182
|
+
maxlength: number;
|
|
183
|
+
modelValue: string;
|
|
184
|
+
baseUrl: string;
|
|
185
|
+
disableChangeEvent: boolean;
|
|
186
|
+
imageUploadToServer: boolean;
|
|
187
|
+
hidePreviewView: boolean;
|
|
188
|
+
toolbarConfig: import("./editor-md-types").ToolbarConfigProp;
|
|
189
|
+
fullscreenZIndex: number;
|
|
190
|
+
breaks: boolean;
|
|
191
|
+
customParse: (html: string) => string;
|
|
192
|
+
renderParse: (html: string) => string;
|
|
193
|
+
mdRules: Record<string, any>;
|
|
194
|
+
customRendererRules: import("./editor-md-types").ICustomRenderRule[];
|
|
195
|
+
customXssRules: import("./editor-md-types").ICustomXssRule[];
|
|
196
|
+
mdPlugins: import("./editor-md-types").MdPlugin[];
|
|
197
|
+
}>;
|
|
198
|
+
export default _default;
|