vue-editify 0.1.37 → 0.1.40

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. package/examples/App.vue +6 -10
  2. package/lib/components/button/button.vue.d.ts +13 -13
  3. package/lib/components/button/props.d.ts +1 -1
  4. package/lib/components/checkbox/checkbox.vue.d.ts +10 -10
  5. package/lib/components/checkbox/props.d.ts +1 -1
  6. package/lib/components/colors/colors.vue.d.ts +6 -6
  7. package/lib/components/colors/props.d.ts +1 -1
  8. package/lib/components/icon/icon.vue.d.ts +1 -1
  9. package/lib/components/insertImage/insertImage.vue.d.ts +11 -11
  10. package/lib/components/insertLink/insertLink.vue.d.ts +4 -4
  11. package/lib/components/insertTable/insertTable.vue.d.ts +4 -4
  12. package/lib/components/insertVideo/insertVideo.vue.d.ts +11 -11
  13. package/lib/components/layer/layer.vue.d.ts +9 -9
  14. package/lib/components/menu/menu.vue.d.ts +6 -6
  15. package/lib/components/menu/props.d.ts +1 -1
  16. package/lib/components/toolbar/props.d.ts +1 -1
  17. package/lib/components/toolbar/toolbar.vue.d.ts +11 -11
  18. package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
  19. package/lib/components/triangle/triangle.vue.d.ts +4 -4
  20. package/lib/core/function.d.ts +1 -1
  21. package/lib/core/rule.d.ts +1 -1
  22. package/lib/core/tool.d.ts +8 -11
  23. package/lib/editify/editify.vue.d.ts +110 -84
  24. package/lib/editify/props.d.ts +9 -5
  25. package/lib/editify.es.js +15225 -404
  26. package/lib/editify.umd.js +1 -1
  27. package/lib/index.d.ts +4 -2
  28. package/lib/plugins/attachment/index.d.ts +3 -2
  29. package/lib/plugins/attachment/insertAttachment/insertAttachment.vue.d.ts +11 -11
  30. package/lib/plugins/mathformula/index.d.ts +49 -0
  31. package/lib/plugins/mathformula/insertMathformula/insertMathformula.vue.d.ts +27 -0
  32. package/lib/plugins/mathformula/insertMathformula/props.d.ts +13 -0
  33. package/lib/style.css +1 -1
  34. package/package.json +4 -2
  35. package/src/components/insertImage/insertImage.less +1 -0
  36. package/src/components/insertLink/insertLink.less +1 -0
  37. package/src/components/insertVideo/insertVideo.less +1 -0
  38. package/src/core/function.ts +4 -12
  39. package/src/core/rule.ts +7 -0
  40. package/src/core/tool.ts +3 -33
  41. package/src/editify/editify.less +28 -3
  42. package/src/editify/editify.vue +111 -26
  43. package/src/editify/props.ts +11 -4
  44. package/src/icon/iconfont.css +4 -0
  45. package/src/icon/iconfont.ttf +0 -0
  46. package/src/icon/iconfont.woff +0 -0
  47. package/src/index.ts +4 -1
  48. package/src/locale/en_US.ts +6 -1
  49. package/src/locale/zh_CN.ts +7 -2
  50. package/src/plugins/attachment/index.ts +26 -15
  51. package/src/plugins/attachment/insertAttachment/insertAttachment.less +1 -0
  52. package/src/plugins/mathformula/index.ts +298 -0
  53. package/src/plugins/mathformula/insertMathformula/insertMathformula.less +64 -0
  54. package/src/plugins/mathformula/insertMathformula/insertMathformula.vue +50 -0
  55. package/src/plugins/mathformula/insertMathformula/props.ts +16 -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><span data-editify-attachment="xxxxx" ></span></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
- multiple: true,
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("vue").PropType<import("./props").ButtonTypeType>;
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("vue").PropType<string | null>;
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("vue").PropType<ButtonSelectConfigType>;
42
+ type: import('vue').PropType<ButtonSelectConfigType>;
43
43
  default: null;
44
44
  };
45
45
  displayConfig: {
46
- type: import("vue").PropType<ButtonDisplayConfigType>;
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("vue").Ref<boolean>;
55
- status: import("vue").Ref<"hover" | "down" | null>;
56
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
61
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
62
62
  type: {
63
- type: import("vue").PropType<import("./props").ButtonTypeType>;
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("vue").PropType<string | null>;
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("vue").PropType<ButtonSelectConfigType>;
100
+ type: import('vue').PropType<ButtonSelectConfigType>;
101
101
  default: null;
102
102
  };
103
103
  displayConfig: {
104
- type: import("vue").PropType<ButtonDisplayConfigType>;
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("./props").ButtonTypeType;
118
+ type: import('./props').ButtonTypeType;
119
119
  name: string;
120
120
  title: string;
121
121
  tooltip: boolean;
@@ -1,5 +1,5 @@
1
- import { ObjectType } from '../../core/tool';
2
1
  import { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import { ObjectType } from '../../core/tool';
3
3
 
4
4
  export type ButtonTypeType = 'default' | 'select' | 'display';
5
5
  export type ButtonOptionsItemType = {
@@ -6,7 +6,7 @@ declare const _default: import('vue').DefineComponent<{
6
6
  default: boolean;
7
7
  };
8
8
  modelValue: {
9
- type: import("vue").PropType<boolean | any[]>;
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("vue").PropType<string | number | any[] | ObjectType>;
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("vue").PropType<"left" | "right">;
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("vue").PropType<string | null>;
30
+ type: import('vue').PropType<string | null>;
31
31
  default: string;
32
32
  validator(value: any): boolean;
33
33
  };
34
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
34
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
35
35
  "update:modelValue": (...args: any[]) => void;
36
36
  change: (...args: any[]) => void;
37
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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("vue").PropType<boolean | any[]>;
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("vue").PropType<string | number | any[] | ObjectType>;
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("vue").PropType<"left" | "right">;
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("vue").PropType<string | null>;
64
+ type: import('vue').PropType<string | null>;
65
65
  default: string;
66
66
  validator(value: any): boolean;
67
67
  };
@@ -1,5 +1,5 @@
1
- import { ObjectType } from '../../core/tool';
2
1
  import { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import { ObjectType } from '../../core/tool';
3
3
 
4
4
  export declare const CheckboxProps: {
5
5
  disabled: {
@@ -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("vue").PropType<ButtonOptionsItemType[]>;
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("vue").PropType<string | null>;
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
20
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
21
21
  change: (...args: any[]) => void;
22
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
22
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
23
23
  data: {
24
- type: import("vue").PropType<ButtonOptionsItemType[]>;
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("vue").PropType<string | null>;
32
+ type: import('vue').PropType<string | null>;
33
33
  default: string;
34
34
  };
35
35
  tooltip: {
@@ -1,5 +1,5 @@
1
- import { ButtonOptionsItemType } from '../button/props';
2
1
  import { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import { ButtonOptionsItemType } from '../button/props';
3
3
 
4
4
  export declare const ColorsProps: {
5
5
  data: {
@@ -3,7 +3,7 @@ declare const _default: import('vue').DefineComponent<{
3
3
  type: StringConstructor;
4
4
  default: string;
5
5
  };
6
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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("vue").PropType<string | null>;
3
+ type: import('vue').PropType<string | null>;
4
4
  default: string;
5
5
  };
6
6
  allowedFileType: {
7
- type: import("vue").PropType<string[]>;
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("vue").PropType<(files: File[]) => string[] | Promise<string[]>>;
23
+ type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
24
24
  default: null;
25
25
  };
26
26
  handleError: {
27
- type: import("vue").PropType<(error: import("./props").InsertImageUploadErrorType, file: File) => void>;
27
+ type: import('vue').PropType<(error: import('./props').InsertImageUploadErrorType, file: File) => void>;
28
28
  default: null;
29
29
  };
30
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
31
  insert: (...args: any[]) => void;
32
32
  change: (...args: any[]) => void;
33
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
34
  color: {
35
- type: import("vue").PropType<string | null>;
35
+ type: import('vue').PropType<string | null>;
36
36
  default: string;
37
37
  };
38
38
  allowedFileType: {
39
- type: import("vue").PropType<string[]>;
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("vue").PropType<(files: File[]) => string[] | Promise<string[]>>;
55
+ type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
56
56
  default: null;
57
57
  };
58
58
  handleError: {
59
- type: import("vue").PropType<(error: import("./props").InsertImageUploadErrorType, file: File) => void>;
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("./props").InsertImageUploadErrorType, file: File) => void;
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("vue").PropType<string | null>;
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
10
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
11
11
  insert: (...args: any[]) => void;
12
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
13
  color: {
14
- type: import("vue").PropType<string | null>;
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("vue").PropType<string | null>;
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
14
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
15
15
  insert: (...args: any[]) => void;
16
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
16
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
17
17
  color: {
18
- type: import("vue").PropType<string | null>;
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("vue").PropType<string | null>;
3
+ type: import('vue').PropType<string | null>;
4
4
  default: string;
5
5
  };
6
6
  allowedFileType: {
7
- type: import("vue").PropType<string[]>;
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("vue").PropType<(files: File[]) => string[] | Promise<string[]>>;
23
+ type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
24
24
  default: null;
25
25
  };
26
26
  handleError: {
27
- type: import("vue").PropType<(error: import("./props").InsertVideoUploadErrorType, file: File) => void>;
27
+ type: import('vue').PropType<(error: import('./props').InsertVideoUploadErrorType, file: File) => void>;
28
28
  default: null;
29
29
  };
30
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
30
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
31
31
  insert: (...args: any[]) => void;
32
32
  change: (...args: any[]) => void;
33
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
33
+ }, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
34
34
  color: {
35
- type: import("vue").PropType<string | null>;
35
+ type: import('vue').PropType<string | null>;
36
36
  default: string;
37
37
  };
38
38
  allowedFileType: {
39
- type: import("vue").PropType<string[]>;
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("vue").PropType<(files: File[]) => string[] | Promise<string[]>>;
55
+ type: import('vue').PropType<(files: File[]) => string[] | Promise<string[]>>;
56
56
  default: null;
57
57
  };
58
58
  handleError: {
59
- type: import("vue").PropType<(error: import("./props").InsertVideoUploadErrorType, file: File) => void>;
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("./props").InsertVideoUploadErrorType, file: File) => void;
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("vue").PropType<string | HTMLElement | null>;
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("vue").PropType<LayerPlacementType>;
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("vue").PropType<import("./props").LayerAnimationType>;
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
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("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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("vue").PropType<string | HTMLElement | null>;
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("vue").PropType<LayerPlacementType>;
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("vue").PropType<import("./props").LayerAnimationType>;
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("./props").LayerAnimationType;
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("vue").PropType<import("../../core/tool").MenuConfigType>;
3
+ type: import('vue').PropType<import('../../core/tool').MenuConfigType>;
4
4
  default: null;
5
5
  };
6
6
  color: {
7
- type: import("vue").PropType<string | null>;
7
+ type: import('vue').PropType<string | null>;
8
8
  default: string;
9
9
  };
10
10
  }, {
11
11
  handleRangeUpdate: () => void;
12
- }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
12
+ }, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
13
13
  config: {
14
- type: import("vue").PropType<import("../../core/tool").MenuConfigType>;
14
+ type: import('vue').PropType<import('../../core/tool').MenuConfigType>;
15
15
  default: null;
16
16
  };
17
17
  color: {
18
- type: import("vue").PropType<string | null>;
18
+ type: import('vue').PropType<string | null>;
19
19
  default: string;
20
20
  };
21
21
  }>>, {
22
22
  color: string | null;
23
- config: import("../../core/tool").MenuConfigType;
23
+ config: import('../../core/tool').MenuConfigType;
24
24
  }, {}>;
25
25
  export default _default;
@@ -1,5 +1,5 @@
1
- import { MenuConfigType } from '../../core/tool';
2
1
  import { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import { MenuConfigType } from '../../core/tool';
3
3
 
4
4
  export declare const MenuProps: {
5
5
  config: {
@@ -1,5 +1,5 @@
1
- import { ToolbarConfigType } from '../../core/tool';
2
1
  import { ExtractPublicPropTypes, PropType } from 'vue';
2
+ import { ToolbarConfigType } from '../../core/tool';
3
3
 
4
4
  export declare const ToolbarProps: {
5
5
  modelValue: {
@@ -4,44 +4,44 @@ declare const _default: import('vue').DefineComponent<{
4
4
  default: boolean;
5
5
  };
6
6
  node: {
7
- type: import("vue").PropType<string | HTMLElement>;
7
+ type: import('vue').PropType<string | HTMLElement>;
8
8
  default: null;
9
9
  };
10
10
  type: {
11
- type: import("vue").PropType<"link" | "text" | "image" | "video" | "table" | "codeBlock">;
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("vue").PropType<import("../../core/tool").ToolbarConfigType>;
16
+ type: import('vue').PropType<import('../../core/tool').ToolbarConfigType>;
17
17
  default: null;
18
18
  };
19
19
  color: {
20
- type: import("vue").PropType<string | null>;
20
+ type: import('vue').PropType<string | null>;
21
21
  default: string;
22
22
  };
23
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
23
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
24
24
  "update:modelValue": (...args: any[]) => void;
25
- }, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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("vue").PropType<string | HTMLElement>;
31
+ type: import('vue').PropType<string | HTMLElement>;
32
32
  default: null;
33
33
  };
34
34
  type: {
35
- type: import("vue").PropType<"link" | "text" | "image" | "video" | "table" | "codeBlock">;
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("vue").PropType<import("../../core/tool").ToolbarConfigType>;
40
+ type: import('vue').PropType<import('../../core/tool').ToolbarConfigType>;
41
41
  default: null;
42
42
  };
43
43
  color: {
44
- type: import("vue").PropType<string | null>;
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("../../core/tool").ToolbarConfigType;
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("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
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;