vue-editify 0.1.37 → 0.1.39
Sign up to get free protection for your applications and to get access to all the features.
- package/examples/App.vue +6 -10
- package/lib/components/button/button.vue.d.ts +13 -13
- package/lib/components/button/props.d.ts +1 -1
- package/lib/components/checkbox/checkbox.vue.d.ts +10 -10
- package/lib/components/checkbox/props.d.ts +1 -1
- package/lib/components/colors/colors.vue.d.ts +6 -6
- package/lib/components/colors/props.d.ts +1 -1
- package/lib/components/icon/icon.vue.d.ts +1 -1
- package/lib/components/insertImage/insertImage.vue.d.ts +11 -11
- package/lib/components/insertLink/insertLink.vue.d.ts +4 -4
- package/lib/components/insertTable/insertTable.vue.d.ts +4 -4
- package/lib/components/insertVideo/insertVideo.vue.d.ts +11 -11
- package/lib/components/layer/layer.vue.d.ts +9 -9
- package/lib/components/menu/menu.vue.d.ts +6 -6
- package/lib/components/menu/props.d.ts +1 -1
- package/lib/components/toolbar/props.d.ts +1 -1
- package/lib/components/toolbar/toolbar.vue.d.ts +11 -11
- package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
- package/lib/components/triangle/triangle.vue.d.ts +4 -4
- package/lib/core/function.d.ts +1 -1
- package/lib/core/rule.d.ts +1 -1
- package/lib/core/tool.d.ts +8 -11
- package/lib/editify/editify.vue.d.ts +110 -84
- package/lib/editify/props.d.ts +9 -5
- package/lib/editify.es.js +15154 -404
- package/lib/editify.umd.js +1 -1
- package/lib/index.d.ts +4 -2
- package/lib/plugins/attachment/index.d.ts +3 -2
- package/lib/plugins/attachment/insertAttachment/insertAttachment.vue.d.ts +11 -11
- package/lib/plugins/mathformula/index.d.ts +31 -0
- package/lib/plugins/mathformula/insertMathformula/insertMathformula.vue.d.ts +18 -0
- package/lib/plugins/mathformula/insertMathformula/props.d.ts +9 -0
- package/lib/style.css +1 -1
- package/package.json +4 -2
- package/src/components/insertImage/insertImage.less +1 -0
- package/src/components/insertLink/insertLink.less +1 -0
- package/src/components/insertVideo/insertVideo.less +1 -0
- package/src/core/function.ts +4 -12
- package/src/core/rule.ts +7 -0
- package/src/core/tool.ts +3 -33
- package/src/editify/editify.less +1 -1
- package/src/editify/editify.vue +111 -26
- package/src/editify/props.ts +11 -4
- package/src/icon/iconfont.css +4 -0
- package/src/icon/iconfont.ttf +0 -0
- package/src/icon/iconfont.woff +0 -0
- package/src/index.ts +4 -1
- package/src/locale/en_US.ts +6 -1
- package/src/locale/zh_CN.ts +7 -2
- package/src/plugins/attachment/index.ts +26 -15
- package/src/plugins/attachment/insertAttachment/insertAttachment.less +1 -0
- package/src/plugins/mathformula/index.ts +210 -0
- package/src/plugins/mathformula/insertMathformula/insertMathformula.less +64 -0
- package/src/plugins/mathformula/insertMathformula/insertMathformula.vue +40 -0
- package/src/plugins/mathformula/insertMathformula/props.ts +11 -0
package/examples/App.vue
CHANGED
@@ -5,8 +5,9 @@
|
|
5
5
|
</template>
|
6
6
|
<script setup lang="ts">
|
7
7
|
import { h, ref } from 'vue'
|
8
|
-
import { AlexElement, MenuConfigType, Editify, attachment, PluginType } from '../src/index'
|
9
|
-
const val = ref<string>('<p><
|
8
|
+
import { AlexElement, MenuConfigType, Editify, attachment, PluginType, mathformula } from '../src/index'
|
9
|
+
const val = ref<string>('<p><br></p>')
|
10
|
+
|
10
11
|
const editify = ref<InstanceType<typeof Editify> | null>(null)
|
11
12
|
const menuConfig = ref<MenuConfigType>({
|
12
13
|
use: true,
|
@@ -23,14 +24,9 @@ const menuConfig = ref<MenuConfigType>({
|
|
23
24
|
})
|
24
25
|
|
25
26
|
const plugins = ref<PluginType[]>([
|
26
|
-
attachment(
|
27
|
-
|
28
|
-
leftBorder: true
|
29
|
-
customUpload: (files: File[]) => {
|
30
|
-
return files.map(item => {
|
31
|
-
return 'xxx'
|
32
|
-
})
|
33
|
-
}
|
27
|
+
attachment(),
|
28
|
+
mathformula({
|
29
|
+
leftBorder: true
|
34
30
|
})
|
35
31
|
])
|
36
32
|
</script>
|
@@ -2,7 +2,7 @@ import { ButtonDisplayConfigType, ButtonOptionsItemType, ButtonSelectConfigType
|
|
2
2
|
|
3
3
|
declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
4
4
|
type: {
|
5
|
-
type: import(
|
5
|
+
type: import('vue').PropType<import('./props').ButtonTypeType>;
|
6
6
|
default: string;
|
7
7
|
validator(value: any): boolean;
|
8
8
|
};
|
@@ -27,7 +27,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
27
27
|
default: boolean;
|
28
28
|
};
|
29
29
|
color: {
|
30
|
-
type: import(
|
30
|
+
type: import('vue').PropType<string | null>;
|
31
31
|
default: string;
|
32
32
|
};
|
33
33
|
disabled: {
|
@@ -39,11 +39,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
39
39
|
default: boolean;
|
40
40
|
};
|
41
41
|
selectConfig: {
|
42
|
-
type: import(
|
42
|
+
type: import('vue').PropType<ButtonSelectConfigType>;
|
43
43
|
default: null;
|
44
44
|
};
|
45
45
|
displayConfig: {
|
46
|
-
type: import(
|
46
|
+
type: import('vue').PropType<ButtonDisplayConfigType>;
|
47
47
|
default: null;
|
48
48
|
};
|
49
49
|
hideScroll: {
|
@@ -51,16 +51,16 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
51
51
|
default: boolean;
|
52
52
|
};
|
53
53
|
}, {
|
54
|
-
show: import(
|
55
|
-
status: import(
|
56
|
-
}, unknown, {}, {}, import(
|
54
|
+
show: import('vue').Ref<boolean>;
|
55
|
+
status: import('vue').Ref<"hover" | "down" | null>;
|
56
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
57
57
|
operate: (...args: any[]) => void;
|
58
58
|
layerShow: (...args: any[]) => void;
|
59
59
|
layerShown: (...args: any[]) => void;
|
60
60
|
layerHidden: (...args: any[]) => void;
|
61
|
-
}, string, import(
|
61
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
62
62
|
type: {
|
63
|
-
type: import(
|
63
|
+
type: import('vue').PropType<import('./props').ButtonTypeType>;
|
64
64
|
default: string;
|
65
65
|
validator(value: any): boolean;
|
66
66
|
};
|
@@ -85,7 +85,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
85
85
|
default: boolean;
|
86
86
|
};
|
87
87
|
color: {
|
88
|
-
type: import(
|
88
|
+
type: import('vue').PropType<string | null>;
|
89
89
|
default: string;
|
90
90
|
};
|
91
91
|
disabled: {
|
@@ -97,11 +97,11 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
97
97
|
default: boolean;
|
98
98
|
};
|
99
99
|
selectConfig: {
|
100
|
-
type: import(
|
100
|
+
type: import('vue').PropType<ButtonSelectConfigType>;
|
101
101
|
default: null;
|
102
102
|
};
|
103
103
|
displayConfig: {
|
104
|
-
type: import(
|
104
|
+
type: import('vue').PropType<ButtonDisplayConfigType>;
|
105
105
|
default: null;
|
106
106
|
};
|
107
107
|
hideScroll: {
|
@@ -115,7 +115,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
115
115
|
onLayerHidden?: ((...args: any[]) => any) | undefined;
|
116
116
|
}, {
|
117
117
|
color: string | null;
|
118
|
-
type: import(
|
118
|
+
type: import('./props').ButtonTypeType;
|
119
119
|
name: string;
|
120
120
|
title: string;
|
121
121
|
tooltip: boolean;
|
@@ -6,7 +6,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
6
6
|
default: boolean;
|
7
7
|
};
|
8
8
|
modelValue: {
|
9
|
-
type: import(
|
9
|
+
type: import('vue').PropType<boolean | any[]>;
|
10
10
|
default: boolean;
|
11
11
|
};
|
12
12
|
label: {
|
@@ -14,7 +14,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
14
14
|
default: null;
|
15
15
|
};
|
16
16
|
value: {
|
17
|
-
type: import(
|
17
|
+
type: import('vue').PropType<string | number | any[] | ObjectType>;
|
18
18
|
default: string;
|
19
19
|
};
|
20
20
|
round: {
|
@@ -22,25 +22,25 @@ declare const _default: import('vue').DefineComponent<{
|
|
22
22
|
default: boolean;
|
23
23
|
};
|
24
24
|
placement: {
|
25
|
-
type: import(
|
25
|
+
type: import('vue').PropType<"left" | "right">;
|
26
26
|
default: string;
|
27
27
|
validator(value: any): boolean;
|
28
28
|
};
|
29
29
|
color: {
|
30
|
-
type: import(
|
30
|
+
type: import('vue').PropType<string | null>;
|
31
31
|
default: string;
|
32
32
|
validator(value: any): boolean;
|
33
33
|
};
|
34
|
-
}, {}, unknown, {}, {}, import(
|
34
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
35
35
|
"update:modelValue": (...args: any[]) => void;
|
36
36
|
change: (...args: any[]) => void;
|
37
|
-
}, string, import(
|
37
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
38
38
|
disabled: {
|
39
39
|
type: BooleanConstructor;
|
40
40
|
default: boolean;
|
41
41
|
};
|
42
42
|
modelValue: {
|
43
|
-
type: import(
|
43
|
+
type: import('vue').PropType<boolean | any[]>;
|
44
44
|
default: boolean;
|
45
45
|
};
|
46
46
|
label: {
|
@@ -48,7 +48,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
48
48
|
default: null;
|
49
49
|
};
|
50
50
|
value: {
|
51
|
-
type: import(
|
51
|
+
type: import('vue').PropType<string | number | any[] | ObjectType>;
|
52
52
|
default: string;
|
53
53
|
};
|
54
54
|
round: {
|
@@ -56,12 +56,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
56
56
|
default: boolean;
|
57
57
|
};
|
58
58
|
placement: {
|
59
|
-
type: import(
|
59
|
+
type: import('vue').PropType<"left" | "right">;
|
60
60
|
default: string;
|
61
61
|
validator(value: any): boolean;
|
62
62
|
};
|
63
63
|
color: {
|
64
|
-
type: import(
|
64
|
+
type: import('vue').PropType<string | null>;
|
65
65
|
default: string;
|
66
66
|
validator(value: any): boolean;
|
67
67
|
};
|
@@ -2,7 +2,7 @@ import { ButtonOptionsItemType } from '../button/props';
|
|
2
2
|
|
3
3
|
declare const _default: import('vue').DefineComponent<{
|
4
4
|
data: {
|
5
|
-
type: import(
|
5
|
+
type: import('vue').PropType<ButtonOptionsItemType[]>;
|
6
6
|
default: () => never[];
|
7
7
|
};
|
8
8
|
value: {
|
@@ -10,18 +10,18 @@ declare const _default: import('vue').DefineComponent<{
|
|
10
10
|
default: null;
|
11
11
|
};
|
12
12
|
color: {
|
13
|
-
type: import(
|
13
|
+
type: import('vue').PropType<string | null>;
|
14
14
|
default: string;
|
15
15
|
};
|
16
16
|
tooltip: {
|
17
17
|
type: BooleanConstructor;
|
18
18
|
default: boolean;
|
19
19
|
};
|
20
|
-
}, {}, unknown, {}, {}, import(
|
20
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
21
21
|
change: (...args: any[]) => void;
|
22
|
-
}, string, import(
|
22
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
23
23
|
data: {
|
24
|
-
type: import(
|
24
|
+
type: import('vue').PropType<ButtonOptionsItemType[]>;
|
25
25
|
default: () => never[];
|
26
26
|
};
|
27
27
|
value: {
|
@@ -29,7 +29,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
29
29
|
default: null;
|
30
30
|
};
|
31
31
|
color: {
|
32
|
-
type: import(
|
32
|
+
type: import('vue').PropType<string | null>;
|
33
33
|
default: string;
|
34
34
|
};
|
35
35
|
tooltip: {
|
@@ -3,7 +3,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
3
3
|
type: StringConstructor;
|
4
4
|
default: string;
|
5
5
|
};
|
6
|
-
}, {}, unknown, {}, {}, import(
|
6
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
7
7
|
value: {
|
8
8
|
type: StringConstructor;
|
9
9
|
default: string;
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
color: {
|
3
|
-
type: import(
|
3
|
+
type: import('vue').PropType<string | null>;
|
4
4
|
default: string;
|
5
5
|
};
|
6
6
|
allowedFileType: {
|
7
|
-
type: import(
|
7
|
+
type: import('vue').PropType<string[]>;
|
8
8
|
default: null;
|
9
9
|
};
|
10
10
|
multiple: {
|
@@ -20,23 +20,23 @@ declare const _default: import('vue').DefineComponent<{
|
|
20
20
|
default: null;
|
21
21
|
};
|
22
22
|
customUpload: {
|
23
|
-
type: import(
|
23
|
+
type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
|
24
24
|
default: null;
|
25
25
|
};
|
26
26
|
handleError: {
|
27
|
-
type: import(
|
27
|
+
type: import('vue').PropType<(error: import('./props').InsertImageUploadErrorType, file: File) => void>;
|
28
28
|
default: null;
|
29
29
|
};
|
30
|
-
}, {}, unknown, {}, {}, import(
|
30
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
31
31
|
insert: (...args: any[]) => void;
|
32
32
|
change: (...args: any[]) => void;
|
33
|
-
}, string, import(
|
33
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
34
34
|
color: {
|
35
|
-
type: import(
|
35
|
+
type: import('vue').PropType<string | null>;
|
36
36
|
default: string;
|
37
37
|
};
|
38
38
|
allowedFileType: {
|
39
|
-
type: import(
|
39
|
+
type: import('vue').PropType<string[]>;
|
40
40
|
default: null;
|
41
41
|
};
|
42
42
|
multiple: {
|
@@ -52,11 +52,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
52
52
|
default: null;
|
53
53
|
};
|
54
54
|
customUpload: {
|
55
|
-
type: import(
|
55
|
+
type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
|
56
56
|
default: null;
|
57
57
|
};
|
58
58
|
handleError: {
|
59
|
-
type: import(
|
59
|
+
type: import('vue').PropType<(error: import('./props').InsertImageUploadErrorType, file: File) => void>;
|
60
60
|
default: null;
|
61
61
|
};
|
62
62
|
}>> & {
|
@@ -69,6 +69,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
69
69
|
maxSize: number;
|
70
70
|
minSize: number;
|
71
71
|
customUpload: (files: File[]) => string[] | Promise<string[]>;
|
72
|
-
handleError: (error: import(
|
72
|
+
handleError: (error: import('./props').InsertImageUploadErrorType, file: File) => void;
|
73
73
|
}, {}>;
|
74
74
|
export default _default;
|
@@ -1,17 +1,17 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
color: {
|
3
|
-
type: import(
|
3
|
+
type: import('vue').PropType<string | null>;
|
4
4
|
default: string;
|
5
5
|
};
|
6
6
|
text: {
|
7
7
|
type: StringConstructor;
|
8
8
|
default: string;
|
9
9
|
};
|
10
|
-
}, {}, unknown, {}, {}, import(
|
10
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
11
11
|
insert: (...args: any[]) => void;
|
12
|
-
}, string, import(
|
12
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
13
13
|
color: {
|
14
|
-
type: import(
|
14
|
+
type: import('vue').PropType<string | null>;
|
15
15
|
default: string;
|
16
16
|
};
|
17
17
|
text: {
|
@@ -1,6 +1,6 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
color: {
|
3
|
-
type: import(
|
3
|
+
type: import('vue').PropType<string | null>;
|
4
4
|
default: string;
|
5
5
|
};
|
6
6
|
maxRows: {
|
@@ -11,11 +11,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
11
11
|
type: NumberConstructor;
|
12
12
|
default: number;
|
13
13
|
};
|
14
|
-
}, {}, unknown, {}, {}, import(
|
14
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
15
15
|
insert: (...args: any[]) => void;
|
16
|
-
}, string, import(
|
16
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
17
17
|
color: {
|
18
|
-
type: import(
|
18
|
+
type: import('vue').PropType<string | null>;
|
19
19
|
default: string;
|
20
20
|
};
|
21
21
|
maxRows: {
|
@@ -1,10 +1,10 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
color: {
|
3
|
-
type: import(
|
3
|
+
type: import('vue').PropType<string | null>;
|
4
4
|
default: string;
|
5
5
|
};
|
6
6
|
allowedFileType: {
|
7
|
-
type: import(
|
7
|
+
type: import('vue').PropType<string[]>;
|
8
8
|
default: null;
|
9
9
|
};
|
10
10
|
multiple: {
|
@@ -20,23 +20,23 @@ declare const _default: import('vue').DefineComponent<{
|
|
20
20
|
default: null;
|
21
21
|
};
|
22
22
|
customUpload: {
|
23
|
-
type: import(
|
23
|
+
type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
|
24
24
|
default: null;
|
25
25
|
};
|
26
26
|
handleError: {
|
27
|
-
type: import(
|
27
|
+
type: import('vue').PropType<(error: import('./props').InsertVideoUploadErrorType, file: File) => void>;
|
28
28
|
default: null;
|
29
29
|
};
|
30
|
-
}, {}, unknown, {}, {}, import(
|
30
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
31
31
|
insert: (...args: any[]) => void;
|
32
32
|
change: (...args: any[]) => void;
|
33
|
-
}, string, import(
|
33
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
34
34
|
color: {
|
35
|
-
type: import(
|
35
|
+
type: import('vue').PropType<string | null>;
|
36
36
|
default: string;
|
37
37
|
};
|
38
38
|
allowedFileType: {
|
39
|
-
type: import(
|
39
|
+
type: import('vue').PropType<string[]>;
|
40
40
|
default: null;
|
41
41
|
};
|
42
42
|
multiple: {
|
@@ -52,11 +52,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
52
52
|
default: null;
|
53
53
|
};
|
54
54
|
customUpload: {
|
55
|
-
type: import(
|
55
|
+
type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
|
56
56
|
default: null;
|
57
57
|
};
|
58
58
|
handleError: {
|
59
|
-
type: import(
|
59
|
+
type: import('vue').PropType<(error: import('./props').InsertVideoUploadErrorType, file: File) => void>;
|
60
60
|
default: null;
|
61
61
|
};
|
62
62
|
}>> & {
|
@@ -69,6 +69,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
69
69
|
maxSize: number;
|
70
70
|
minSize: number;
|
71
71
|
customUpload: (files: File[]) => string[] | Promise<string[]>;
|
72
|
-
handleError: (error: import(
|
72
|
+
handleError: (error: import('./props').InsertVideoUploadErrorType, file: File) => void;
|
73
73
|
}, {}>;
|
74
74
|
export default _default;
|
@@ -6,7 +6,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
6
6
|
default: boolean;
|
7
7
|
};
|
8
8
|
node: {
|
9
|
-
type: import(
|
9
|
+
type: import('vue').PropType<string | HTMLElement | null>;
|
10
10
|
default: null;
|
11
11
|
};
|
12
12
|
border: {
|
@@ -26,7 +26,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
26
26
|
default: null;
|
27
27
|
};
|
28
28
|
placement: {
|
29
|
-
type: import(
|
29
|
+
type: import('vue').PropType<LayerPlacementType>;
|
30
30
|
default: string;
|
31
31
|
validator(value: any): boolean;
|
32
32
|
};
|
@@ -39,7 +39,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
39
39
|
default: number;
|
40
40
|
};
|
41
41
|
animation: {
|
42
|
-
type: import(
|
42
|
+
type: import('vue').PropType<import('./props').LayerAnimationType>;
|
43
43
|
default: null;
|
44
44
|
validator(value: any): boolean;
|
45
45
|
};
|
@@ -49,18 +49,18 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
49
49
|
};
|
50
50
|
}, {
|
51
51
|
setPosition: () => void;
|
52
|
-
}, unknown, {}, {}, import(
|
52
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
53
53
|
show: (...args: any[]) => void;
|
54
54
|
"update:modelValue": (...args: any[]) => void;
|
55
55
|
shown: (...args: any[]) => void;
|
56
56
|
hidden: (...args: any[]) => void;
|
57
|
-
}, string, import(
|
57
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
58
58
|
modelValue: {
|
59
59
|
type: BooleanConstructor;
|
60
60
|
default: boolean;
|
61
61
|
};
|
62
62
|
node: {
|
63
|
-
type: import(
|
63
|
+
type: import('vue').PropType<string | HTMLElement | null>;
|
64
64
|
default: null;
|
65
65
|
};
|
66
66
|
border: {
|
@@ -80,7 +80,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
80
80
|
default: null;
|
81
81
|
};
|
82
82
|
placement: {
|
83
|
-
type: import(
|
83
|
+
type: import('vue').PropType<LayerPlacementType>;
|
84
84
|
default: string;
|
85
85
|
validator(value: any): boolean;
|
86
86
|
};
|
@@ -93,7 +93,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
93
93
|
default: number;
|
94
94
|
};
|
95
95
|
animation: {
|
96
|
-
type: import(
|
96
|
+
type: import('vue').PropType<import('./props').LayerAnimationType>;
|
97
97
|
default: null;
|
98
98
|
validator(value: any): boolean;
|
99
99
|
};
|
@@ -116,7 +116,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
116
116
|
borderColor: string;
|
117
117
|
showTriangle: boolean;
|
118
118
|
zIndex: number;
|
119
|
-
animation: import(
|
119
|
+
animation: import('./props').LayerAnimationType;
|
120
120
|
useRange: boolean;
|
121
121
|
}, {}>, {
|
122
122
|
default?(_: {}): any;
|
@@ -1,25 +1,25 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
config: {
|
3
|
-
type: import(
|
3
|
+
type: import('vue').PropType<import('../../core/tool').MenuConfigType>;
|
4
4
|
default: null;
|
5
5
|
};
|
6
6
|
color: {
|
7
|
-
type: import(
|
7
|
+
type: import('vue').PropType<string | null>;
|
8
8
|
default: string;
|
9
9
|
};
|
10
10
|
}, {
|
11
11
|
handleRangeUpdate: () => void;
|
12
|
-
}, unknown, {}, {}, import(
|
12
|
+
}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
13
13
|
config: {
|
14
|
-
type: import(
|
14
|
+
type: import('vue').PropType<import('../../core/tool').MenuConfigType>;
|
15
15
|
default: null;
|
16
16
|
};
|
17
17
|
color: {
|
18
|
-
type: import(
|
18
|
+
type: import('vue').PropType<string | null>;
|
19
19
|
default: string;
|
20
20
|
};
|
21
21
|
}>>, {
|
22
22
|
color: string | null;
|
23
|
-
config: import(
|
23
|
+
config: import('../../core/tool').MenuConfigType;
|
24
24
|
}, {}>;
|
25
25
|
export default _default;
|
@@ -4,44 +4,44 @@ declare const _default: import('vue').DefineComponent<{
|
|
4
4
|
default: boolean;
|
5
5
|
};
|
6
6
|
node: {
|
7
|
-
type: import(
|
7
|
+
type: import('vue').PropType<string | HTMLElement>;
|
8
8
|
default: null;
|
9
9
|
};
|
10
10
|
type: {
|
11
|
-
type: import(
|
11
|
+
type: import('vue').PropType<"link" | "text" | "image" | "video" | "table" | "codeBlock">;
|
12
12
|
default: string;
|
13
13
|
validator(value: any): boolean;
|
14
14
|
};
|
15
15
|
config: {
|
16
|
-
type: import(
|
16
|
+
type: import('vue').PropType<import('../../core/tool').ToolbarConfigType>;
|
17
17
|
default: null;
|
18
18
|
};
|
19
19
|
color: {
|
20
|
-
type: import(
|
20
|
+
type: import('vue').PropType<string | null>;
|
21
21
|
default: string;
|
22
22
|
};
|
23
|
-
}, {}, unknown, {}, {}, import(
|
23
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
24
24
|
"update:modelValue": (...args: any[]) => void;
|
25
|
-
}, string, import(
|
25
|
+
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
26
26
|
modelValue: {
|
27
27
|
type: BooleanConstructor;
|
28
28
|
default: boolean;
|
29
29
|
};
|
30
30
|
node: {
|
31
|
-
type: import(
|
31
|
+
type: import('vue').PropType<string | HTMLElement>;
|
32
32
|
default: null;
|
33
33
|
};
|
34
34
|
type: {
|
35
|
-
type: import(
|
35
|
+
type: import('vue').PropType<"link" | "text" | "image" | "video" | "table" | "codeBlock">;
|
36
36
|
default: string;
|
37
37
|
validator(value: any): boolean;
|
38
38
|
};
|
39
39
|
config: {
|
40
|
-
type: import(
|
40
|
+
type: import('vue').PropType<import('../../core/tool').ToolbarConfigType>;
|
41
41
|
default: null;
|
42
42
|
};
|
43
43
|
color: {
|
44
|
-
type: import(
|
44
|
+
type: import('vue').PropType<string | null>;
|
45
45
|
default: string;
|
46
46
|
};
|
47
47
|
}>> & {
|
@@ -51,6 +51,6 @@ declare const _default: import('vue').DefineComponent<{
|
|
51
51
|
type: "link" | "text" | "image" | "video" | "table" | "codeBlock";
|
52
52
|
modelValue: boolean;
|
53
53
|
node: string | HTMLElement;
|
54
|
-
config: import(
|
54
|
+
config: import('../../core/tool').ToolbarConfigType;
|
55
55
|
}, {}>;
|
56
56
|
export default _default;
|
@@ -11,7 +11,7 @@ declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{
|
|
11
11
|
type: BooleanConstructor;
|
12
12
|
default: boolean;
|
13
13
|
};
|
14
|
-
}, {}, unknown, {}, {}, import(
|
14
|
+
}, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
15
15
|
content: {
|
16
16
|
type: StringConstructor;
|
17
17
|
default: string;
|