vue-editify 0.1.17 → 0.1.19

Sign up to get free protection for your applications and to get access to all the features.
Files changed (80) hide show
  1. package/README.md +3 -3
  2. package/examples/App.vue +62 -53
  3. package/examples/main.ts +4 -4
  4. package/lib/components/button/button.vue.d.ts +11 -11
  5. package/lib/components/checkbox/checkbox.vue.d.ts +8 -8
  6. package/lib/components/colors/colors.vue.d.ts +4 -4
  7. package/lib/components/icon/icon.vue.d.ts +1 -1
  8. package/lib/components/insertImage/insertImage.vue.d.ts +9 -9
  9. package/lib/components/insertLink/insertLink.vue.d.ts +2 -2
  10. package/lib/components/insertTable/insertTable.vue.d.ts +2 -2
  11. package/lib/components/insertVideo/insertVideo.vue.d.ts +9 -9
  12. package/lib/components/layer/layer.vue.d.ts +9 -9
  13. package/lib/components/menu/menu.vue.d.ts +4 -4
  14. package/lib/components/toolbar/toolbar.vue.d.ts +9 -9
  15. package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
  16. package/lib/components/triangle/triangle.vue.d.ts +4 -4
  17. package/lib/editify/editify.vue.d.ts +88 -70
  18. package/lib/editify/props.d.ts +11 -3
  19. package/lib/editify.es.js +65 -46
  20. package/lib/editify.umd.js +1 -1
  21. package/lib/index.d.ts +1 -1
  22. package/lib/style.css +1 -1
  23. package/package.json +45 -45
  24. package/src/components/button/button.less +145 -145
  25. package/src/components/button/button.vue +197 -197
  26. package/src/components/button/props.ts +95 -95
  27. package/src/components/checkbox/checkbox.less +84 -84
  28. package/src/components/checkbox/checkbox.vue +68 -68
  29. package/src/components/checkbox/props.ts +49 -49
  30. package/src/components/colors/colors.less +75 -75
  31. package/src/components/colors/colors.vue +36 -36
  32. package/src/components/colors/props.ts +29 -29
  33. package/src/components/icon/icon.less +14 -14
  34. package/src/components/icon/icon.vue +12 -12
  35. package/src/components/icon/props.ts +11 -11
  36. package/src/components/insertImage/insertImage.less +135 -135
  37. package/src/components/insertImage/insertImage.vue +146 -146
  38. package/src/components/insertImage/props.ts +43 -43
  39. package/src/components/insertLink/insertLink.less +64 -64
  40. package/src/components/insertLink/insertLink.vue +58 -58
  41. package/src/components/insertLink/props.ts +16 -16
  42. package/src/components/insertTable/insertTable.less +54 -54
  43. package/src/components/insertTable/insertTable.vue +85 -85
  44. package/src/components/insertTable/props.ts +27 -27
  45. package/src/components/insertVideo/insertVideo.less +135 -135
  46. package/src/components/insertVideo/insertVideo.vue +146 -146
  47. package/src/components/insertVideo/props.ts +43 -43
  48. package/src/components/layer/layer.less +49 -49
  49. package/src/components/layer/layer.vue +598 -598
  50. package/src/components/layer/props.ts +71 -71
  51. package/src/components/menu/menu.less +63 -63
  52. package/src/components/menu/menu.vue +1569 -1569
  53. package/src/components/menu/props.ts +17 -17
  54. package/src/components/toolbar/props.ts +35 -35
  55. package/src/components/toolbar/toolbar.less +89 -89
  56. package/src/components/toolbar/toolbar.vue +1101 -1101
  57. package/src/components/tooltip/props.ts +21 -21
  58. package/src/components/tooltip/tooltip.less +23 -23
  59. package/src/components/tooltip/tooltip.vue +37 -37
  60. package/src/components/triangle/props.ts +26 -26
  61. package/src/components/triangle/triangle.less +79 -79
  62. package/src/components/triangle/triangle.vue +65 -65
  63. package/src/core/function.ts +1144 -1144
  64. package/src/core/rule.ts +259 -259
  65. package/src/core/tool.ts +1137 -1137
  66. package/src/css/base.less +30 -30
  67. package/src/css/hljs.less +54 -54
  68. package/src/editify/editify.less +404 -403
  69. package/src/editify/editify.vue +803 -792
  70. package/src/editify/props.ts +156 -146
  71. package/src/hljs/index.ts +197 -197
  72. package/src/icon/iconfont.css +219 -219
  73. package/src/index.ts +32 -32
  74. package/src/locale/en_US.ts +88 -88
  75. package/src/locale/index.ts +12 -12
  76. package/src/locale/zh_CN.ts +88 -88
  77. package/tsconfig.json +27 -27
  78. package/tsconfig.node.json +11 -11
  79. package/vite-env.d.ts +1 -1
  80. package/vite.config.ts +42 -42
package/README.md CHANGED
@@ -1,3 +1,3 @@
1
- #### 基于 Vue3 的 web 富文本编辑器,提供丰富的功能和精美的 UI
2
-
3
- > 具体使用方法请参阅:[vue-editify](https://www.ling0523.cn/vue-editify/start/)
1
+ #### 基于 Vue3 的 web 富文本编辑器,提供丰富的功能和精美的 UI
2
+
3
+ > 具体使用方法请参阅:[vue-editify](https://www.ling0523.cn/vue-editify/start/)
package/examples/App.vue CHANGED
@@ -1,53 +1,62 @@
1
- <template>
2
- <div style="padding: 80px 10px 10px 10px; height: 100%; box-sizing: border-box">
3
- <Editify ref="editify" border v-model="val" :menu="menuConfig" style="height: 100%" placeholder="Please Enter Text..." locale="zh_CN" allowPasteHtml :custom-image-paste="customImagePaste"></Editify>
4
- </div>
5
- </template>
6
- <script setup lang="ts">
7
- import { ref } from 'vue'
8
- import { Editify, insertImage, insertVideo } from '../src/index'
9
- import { MenuConfigType } from '../src/index'
10
- const val = ref<string>('<p><br></p>')
11
- const editify = ref<InstanceType<typeof Editify> | null>(null)
12
- const menuConfig = ref<MenuConfigType>({
13
- use: true,
14
- mode: 'fixed',
15
- image: {
16
- accept: ['jpg'],
17
- handleError: (error, file) => {
18
- console.log(error, file)
19
- }
20
- },
21
- fullScreen: {
22
- show: true
23
- }
24
- })
25
- const customImagePaste = url => {
26
- console.log(url)
27
- insertImage(editify.value!.editor!, url)
28
- }
29
- </script>
30
- <style lang="less">
31
- html,
32
- body {
33
- height: 100%;
34
- }
35
- body {
36
- margin: 0;
37
- }
38
-
39
- #app {
40
- height: 100%;
41
- overflow: auto;
42
- }
43
-
44
- span[data-zip] {
45
- display: inline-block;
46
- width: 40px;
47
- height: 40px;
48
- background: url(https://www.ling0523.cn/images/image_0_1702456046669.png) no-repeat center;
49
- background-size: cover;
50
- cursor: pointer;
51
- margin: 0 10px;
52
- }
53
- </style>
1
+ <template>
2
+ <div style="padding: 10px; height: 100%; box-sizing: border-box">
3
+ <Editify ref="editify" border v-model="val" :menu="menuConfig" style="height: 100%" placeholder="Please Enter Text..." locale="zh_CN" :customTextPaste="customTextPaste"></Editify>
4
+ </div>
5
+ </template>
6
+ <script setup lang="ts">
7
+ import { ref } from 'vue'
8
+ import { AlexElement, Editify, insertImage, insertVideo } from '../src/index'
9
+ import { MenuConfigType } from '../src/index'
10
+ const val = ref<string>('<p><br></p>')
11
+ const editify = ref<InstanceType<typeof Editify> | null>(null)
12
+ const menuConfig = ref<MenuConfigType>({
13
+ use: true,
14
+ mode: 'inner',
15
+ image: {
16
+ accept: ['jpg'],
17
+ handleError: (error, file) => {
18
+ console.log(error, file)
19
+ }
20
+ },
21
+ fullScreen: {
22
+ show: true
23
+ }
24
+ })
25
+ const customTextPaste = function (data: string) {
26
+ const text = new AlexElement(
27
+ 'text',
28
+ null,
29
+ null,
30
+ {
31
+ color: 'red',
32
+ 'font-weight': 'bold'
33
+ },
34
+ data
35
+ )
36
+ editify.value!.editor!.insertElement(text)
37
+ }
38
+ </script>
39
+ <style lang="less">
40
+ html,
41
+ body {
42
+ height: 100%;
43
+ }
44
+ body {
45
+ margin: 0;
46
+ }
47
+
48
+ #app {
49
+ height: 100%;
50
+ overflow: auto;
51
+ }
52
+
53
+ span[data-zip] {
54
+ display: inline-block;
55
+ width: 40px;
56
+ height: 40px;
57
+ background: url(https://www.ling0523.cn/images/image_0_1702456046669.png) no-repeat center;
58
+ background-size: cover;
59
+ cursor: pointer;
60
+ margin: 0 10px;
61
+ }
62
+ </style>
package/examples/main.ts CHANGED
@@ -1,4 +1,4 @@
1
- import { createApp } from 'vue'
2
- import App from './App.vue'
3
- const app = createApp(App)
4
- app.mount('#app')
1
+ import { createApp } from 'vue'
2
+ import App from './App.vue'
3
+ const app = createApp(App)
4
+ app.mount('#app')
@@ -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
  };
@@ -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
  };
@@ -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;
118
- type: import("./props").ButtonTypeType;
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("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,7 +22,7 @@ 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
  };
@@ -31,16 +31,16 @@ declare const _default: import('vue').DefineComponent<{
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,7 +56,7 @@ 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
  };
@@ -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: {
@@ -17,11 +17,11 @@ declare const _default: import('vue').DefineComponent<{
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: {
@@ -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;
@@ -4,7 +4,7 @@ declare const _default: import('vue').DefineComponent<{
4
4
  default: string;
5
5
  };
6
6
  accept: {
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
35
  type: StringConstructor;
36
36
  default: string;
37
37
  };
38
38
  accept: {
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;
@@ -7,9 +7,9 @@ declare const _default: import('vue').DefineComponent<{
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
14
  type: StringConstructor;
15
15
  default: string;
@@ -11,9 +11,9 @@ 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
18
  type: StringConstructor;
19
19
  default: string;
@@ -4,7 +4,7 @@ declare const _default: import('vue').DefineComponent<{
4
4
  default: string;
5
5
  };
6
6
  accept: {
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
35
  type: StringConstructor;
36
36
  default: string;
37
37
  };
38
38
  accept: {
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,6 +1,6 @@
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: {
@@ -9,9 +9,9 @@ declare const _default: import('vue').DefineComponent<{
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: {
@@ -20,6 +20,6 @@ declare const _default: import('vue').DefineComponent<{
20
20
  };
21
21
  }>>, {
22
22
  color: string;
23
- config: import("../../core/tool").MenuConfigType;
23
+ config: import('../../core/tool').MenuConfigType;
24
24
  }, {}>;
25
25
  export default _default;
@@ -4,40 +4,40 @@ 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
20
  type: StringConstructor;
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: {
@@ -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;
@@ -1,6 +1,6 @@
1
1
  declare const _default: import('vue').DefineComponent<{
2
2
  placement: {
3
- type: import("vue").PropType<import("./props").TrianglePlacementType>;
3
+ type: import('vue').PropType<import('./props').TrianglePlacementType>;
4
4
  default: string;
5
5
  validator(value: any): boolean;
6
6
  };
@@ -12,9 +12,9 @@ declare const _default: import('vue').DefineComponent<{
12
12
  type: StringConstructor;
13
13
  default: null;
14
14
  };
15
- }, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
15
+ }, {}, unknown, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
16
16
  placement: {
17
- type: import("vue").PropType<import("./props").TrianglePlacementType>;
17
+ type: import('vue').PropType<import('./props').TrianglePlacementType>;
18
18
  default: string;
19
19
  validator(value: any): boolean;
20
20
  };
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<{
27
27
  default: null;
28
28
  };
29
29
  }>>, {
30
- placement: import("./props").TrianglePlacementType;
30
+ placement: import('./props').TrianglePlacementType;
31
31
  color: string;
32
32
  background: string;
33
33
  }, {}>;