vue-editify 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/examples/App.vue +102 -62
- package/examples/main.ts +4 -4
- package/lib/components/button/button.vue.d.ts +11 -11
- package/lib/components/checkbox/checkbox.vue.d.ts +8 -8
- package/lib/components/colors/colors.vue.d.ts +4 -4
- package/lib/components/icon/icon.vue.d.ts +1 -1
- package/lib/components/insertImage/insertImage.vue.d.ts +9 -9
- package/lib/components/insertLink/insertLink.vue.d.ts +2 -2
- package/lib/components/insertTable/insertTable.vue.d.ts +2 -2
- package/lib/components/insertVideo/insertVideo.vue.d.ts +9 -9
- package/lib/components/layer/layer.vue.d.ts +9 -9
- package/lib/components/menu/menu.vue.d.ts +4 -4
- package/lib/components/toolbar/toolbar.vue.d.ts +9 -9
- package/lib/components/tooltip/tooltip.vue.d.ts +1 -1
- package/lib/components/triangle/triangle.vue.d.ts +4 -4
- package/lib/core/tool.d.ts +35 -35
- package/lib/editify/editify.vue.d.ts +68 -68
- package/lib/editify.es.js +57 -46
- package/lib/editify.umd.js +1 -1
- package/lib/index.d.ts +1 -1
- package/lib/style.css +1 -1
- package/package.json +45 -45
- package/src/components/button/button.less +145 -145
- package/src/components/button/button.vue +197 -197
- package/src/components/button/props.ts +95 -95
- package/src/components/checkbox/checkbox.less +84 -84
- package/src/components/checkbox/checkbox.vue +68 -68
- package/src/components/checkbox/props.ts +49 -49
- package/src/components/colors/colors.less +75 -75
- package/src/components/colors/colors.vue +36 -36
- package/src/components/colors/props.ts +29 -29
- package/src/components/icon/icon.less +14 -14
- package/src/components/icon/icon.vue +12 -12
- package/src/components/icon/props.ts +11 -11
- package/src/components/insertImage/insertImage.less +135 -135
- package/src/components/insertImage/insertImage.vue +146 -146
- package/src/components/insertImage/props.ts +43 -43
- package/src/components/insertLink/insertLink.less +64 -64
- package/src/components/insertLink/insertLink.vue +58 -58
- package/src/components/insertLink/props.ts +16 -16
- package/src/components/insertTable/insertTable.less +54 -54
- package/src/components/insertTable/insertTable.vue +85 -85
- package/src/components/insertTable/props.ts +27 -27
- package/src/components/insertVideo/insertVideo.less +135 -135
- package/src/components/insertVideo/insertVideo.vue +146 -146
- package/src/components/insertVideo/props.ts +43 -43
- package/src/components/layer/layer.less +49 -49
- package/src/components/layer/layer.vue +598 -598
- package/src/components/layer/props.ts +71 -71
- package/src/components/menu/menu.less +63 -63
- package/src/components/menu/menu.vue +1569 -1569
- package/src/components/menu/props.ts +17 -17
- package/src/components/toolbar/props.ts +35 -35
- package/src/components/toolbar/toolbar.less +89 -89
- package/src/components/toolbar/toolbar.vue +1101 -1101
- package/src/components/tooltip/props.ts +21 -21
- package/src/components/tooltip/tooltip.less +23 -23
- package/src/components/tooltip/tooltip.vue +37 -37
- package/src/components/triangle/props.ts +26 -26
- package/src/components/triangle/triangle.less +79 -79
- package/src/components/triangle/triangle.vue +65 -65
- package/src/core/function.ts +1150 -1144
- package/src/core/rule.ts +259 -259
- package/src/core/tool.ts +1137 -1137
- package/src/css/base.less +30 -30
- package/src/css/hljs.less +54 -54
- package/src/editify/editify.less +405 -404
- package/src/editify/editify.vue +810 -803
- package/src/editify/props.ts +156 -156
- package/src/hljs/index.ts +197 -197
- package/src/icon/iconfont.css +219 -219
- package/src/index.ts +32 -32
- package/src/locale/en_US.ts +88 -88
- package/src/locale/index.ts +12 -12
- package/src/locale/zh_CN.ts +88 -88
- package/tsconfig.json +27 -27
- package/tsconfig.node.json +11 -11
- package/vite-env.d.ts +1 -1
- package/vite.config.ts +42 -42
@@ -4,40 +4,40 @@ 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
20
|
type: StringConstructor;
|
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: {
|
@@ -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;
|
@@ -1,6 +1,6 @@
|
|
1
1
|
declare const _default: import('vue').DefineComponent<{
|
2
2
|
placement: {
|
3
|
-
type: import(
|
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(
|
15
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
16
16
|
placement: {
|
17
|
-
type: import(
|
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(
|
30
|
+
placement: import("./props").TrianglePlacementType;
|
31
31
|
color: string;
|
32
32
|
background: string;
|
33
33
|
}, {}>;
|
package/lib/core/tool.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { default as Button } from '../components/button/button.vue';
|
2
|
-
import {
|
2
|
+
import { VNode } from 'vue';
|
3
3
|
import { InsertImageUploadErrorType } from '../components/insertImage/props';
|
4
4
|
import { LocaleType } from '../locale';
|
5
5
|
import { ButtonOptionsItemType, ButtonTypeType } from '../components/button/props';
|
@@ -52,7 +52,7 @@ export interface MenuTableButtonType extends MenuButtonType {
|
|
52
52
|
maxColumns?: number;
|
53
53
|
}
|
54
54
|
export type MenuCustomButtonType = {
|
55
|
-
type
|
55
|
+
type?: ButtonTypeType;
|
56
56
|
title?: string;
|
57
57
|
leftBorder?: boolean;
|
58
58
|
rightBorder?: boolean;
|
@@ -67,9 +67,9 @@ export type MenuCustomButtonType = {
|
|
67
67
|
onLayerShown?: (name: string, btnInstance: InstanceType<typeof Button>) => void;
|
68
68
|
onLayerHidden?: (name: string, btnInstance: InstanceType<typeof Button>) => void;
|
69
69
|
onOperate?: (name: string, value: string | number | undefined, btnInstance: InstanceType<typeof Button>) => void;
|
70
|
-
default?:
|
71
|
-
layer?:
|
72
|
-
option?:
|
70
|
+
default?: () => VNode;
|
71
|
+
layer?: () => VNode;
|
72
|
+
option?: () => VNode;
|
73
73
|
};
|
74
74
|
export type CodeBlockToolbarType = {
|
75
75
|
languages?: MenuSelectButtonType;
|
@@ -103,36 +103,36 @@ export type ToolbarConfigType = {
|
|
103
103
|
extraDisabled?: ((name: string) => boolean) | null;
|
104
104
|
};
|
105
105
|
export type MenuSequenceType = {
|
106
|
-
[key: string]: number;
|
107
|
-
undo
|
108
|
-
redo
|
109
|
-
heading
|
110
|
-
indent
|
111
|
-
quote
|
112
|
-
align
|
113
|
-
orderList
|
114
|
-
unorderList
|
115
|
-
task
|
116
|
-
bold
|
117
|
-
underline
|
118
|
-
italic
|
119
|
-
strikethrough
|
120
|
-
code
|
121
|
-
super
|
122
|
-
sub
|
123
|
-
formatClear
|
124
|
-
fontSize
|
125
|
-
fontFamily
|
126
|
-
lineHeight
|
127
|
-
foreColor
|
128
|
-
backColor
|
129
|
-
link
|
130
|
-
image
|
131
|
-
video
|
132
|
-
table
|
133
|
-
codeBlock
|
134
|
-
sourceView
|
135
|
-
fullScreen
|
106
|
+
[key: string]: number | undefined;
|
107
|
+
undo?: number;
|
108
|
+
redo?: number;
|
109
|
+
heading?: number;
|
110
|
+
indent?: number;
|
111
|
+
quote?: number;
|
112
|
+
align?: number;
|
113
|
+
orderList?: number;
|
114
|
+
unorderList?: number;
|
115
|
+
task?: number;
|
116
|
+
bold?: number;
|
117
|
+
underline?: number;
|
118
|
+
italic?: number;
|
119
|
+
strikethrough?: number;
|
120
|
+
code?: number;
|
121
|
+
super?: number;
|
122
|
+
sub?: number;
|
123
|
+
formatClear?: number;
|
124
|
+
fontSize?: number;
|
125
|
+
fontFamily?: number;
|
126
|
+
lineHeight?: number;
|
127
|
+
foreColor?: number;
|
128
|
+
backColor?: number;
|
129
|
+
link?: number;
|
130
|
+
image?: number;
|
131
|
+
video?: number;
|
132
|
+
table?: number;
|
133
|
+
codeBlock?: number;
|
134
|
+
sourceView?: number;
|
135
|
+
fullScreen?: number;
|
136
136
|
};
|
137
137
|
export type MenuModeType = 'default' | 'inner' | 'fixed';
|
138
138
|
export type MenuConfigType = {
|
@@ -3,7 +3,7 @@ import { AlexElement, AlexElementsRangeType } from 'alex-editor';
|
|
3
3
|
|
4
4
|
declare const _default: import('vue').DefineComponent<{
|
5
5
|
locale: {
|
6
|
-
type: import(
|
6
|
+
type: import("vue").PropType<import("../locale").LocaleType>;
|
7
7
|
default: string;
|
8
8
|
};
|
9
9
|
modelValue: {
|
@@ -52,7 +52,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
52
52
|
default: number;
|
53
53
|
};
|
54
54
|
toolbar: {
|
55
|
-
type: import(
|
55
|
+
type: import("vue").PropType<ToolbarConfigType>;
|
56
56
|
default: null;
|
57
57
|
};
|
58
58
|
showWordLength: {
|
@@ -60,43 +60,43 @@ declare const _default: import('vue').DefineComponent<{
|
|
60
60
|
default: boolean;
|
61
61
|
};
|
62
62
|
customTextPaste: {
|
63
|
-
type: import(
|
63
|
+
type: import("vue").PropType<(data: string) => void | Promise<void>>;
|
64
64
|
default: null;
|
65
65
|
};
|
66
66
|
customHtmlPaste: {
|
67
|
-
type: import(
|
67
|
+
type: import("vue").PropType<(elements: AlexElement[]) => void | Promise<void>>;
|
68
68
|
default: null;
|
69
69
|
};
|
70
70
|
customImagePaste: {
|
71
|
-
type: import(
|
71
|
+
type: import("vue").PropType<(file: File) => void | Promise<void>>;
|
72
72
|
default: null;
|
73
73
|
};
|
74
74
|
customVideoPaste: {
|
75
|
-
type: import(
|
75
|
+
type: import("vue").PropType<(file: File) => void | Promise<void>>;
|
76
76
|
default: null;
|
77
77
|
};
|
78
78
|
customFilePaste: {
|
79
|
-
type: import(
|
79
|
+
type: import("vue").PropType<(file: File) => void | Promise<void>>;
|
80
80
|
default: null;
|
81
81
|
};
|
82
82
|
menu: {
|
83
|
-
type: import(
|
83
|
+
type: import("vue").PropType<MenuConfigType>;
|
84
84
|
default: null;
|
85
85
|
};
|
86
86
|
pasteKeepMarks: {
|
87
|
-
type: import(
|
87
|
+
type: import("vue").PropType<ObjectType>;
|
88
88
|
default: null;
|
89
89
|
};
|
90
90
|
pasteKeepStyles: {
|
91
|
-
type: import(
|
91
|
+
type: import("vue").PropType<ObjectType>;
|
92
92
|
default: null;
|
93
93
|
};
|
94
94
|
customParseNode: {
|
95
|
-
type: import(
|
95
|
+
type: import("vue").PropType<(el: AlexElement) => AlexElement>;
|
96
96
|
default: null;
|
97
97
|
};
|
98
98
|
renderRules: {
|
99
|
-
type: import(
|
99
|
+
type: import("vue").PropType<((el: AlexElement) => void)[]>;
|
100
100
|
default: () => never[];
|
101
101
|
};
|
102
102
|
autoheight: {
|
@@ -108,7 +108,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
108
108
|
default: boolean;
|
109
109
|
};
|
110
110
|
}, {
|
111
|
-
editor: import(
|
111
|
+
editor: import("vue").Ref<{
|
112
112
|
$el: HTMLElement;
|
113
113
|
disabled: boolean;
|
114
114
|
value: string;
|
@@ -129,10 +129,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
129
129
|
records: {
|
130
130
|
stack: {
|
131
131
|
key: number;
|
132
|
-
type: import(
|
132
|
+
type: import("alex-editor").AlexElementType;
|
133
133
|
parsedom: string | null;
|
134
|
-
marks: import(
|
135
|
-
styles: import(
|
134
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
135
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
136
136
|
textContent: string | null;
|
137
137
|
children: any[] | null;
|
138
138
|
parent: any | null;
|
@@ -172,10 +172,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
172
172
|
anchor: {
|
173
173
|
element: {
|
174
174
|
key: number;
|
175
|
-
type: import(
|
175
|
+
type: import("alex-editor").AlexElementType;
|
176
176
|
parsedom: string | null;
|
177
|
-
marks: import(
|
178
|
-
styles: import(
|
177
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
178
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
179
179
|
textContent: string | null;
|
180
180
|
children: any[] | null;
|
181
181
|
parent: any | null;
|
@@ -212,17 +212,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
212
212
|
__fullClone: () => AlexElement;
|
213
213
|
};
|
214
214
|
offset: number;
|
215
|
-
isEqual: (point: import(
|
215
|
+
isEqual: (point: import("alex-editor").AlexPoint) => boolean;
|
216
216
|
moveToEnd: (element: AlexElement) => void;
|
217
217
|
moveToStart: (element: AlexElement) => void;
|
218
218
|
};
|
219
219
|
focus: {
|
220
220
|
element: {
|
221
221
|
key: number;
|
222
|
-
type: import(
|
222
|
+
type: import("alex-editor").AlexElementType;
|
223
223
|
parsedom: string | null;
|
224
|
-
marks: import(
|
225
|
-
styles: import(
|
224
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
225
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
226
226
|
textContent: string | null;
|
227
227
|
children: any[] | null;
|
228
228
|
parent: any | null;
|
@@ -259,24 +259,24 @@ declare const _default: import('vue').DefineComponent<{
|
|
259
259
|
__fullClone: () => AlexElement;
|
260
260
|
};
|
261
261
|
offset: number;
|
262
|
-
isEqual: (point: import(
|
262
|
+
isEqual: (point: import("alex-editor").AlexPoint) => boolean;
|
263
263
|
moveToEnd: (element: AlexElement) => void;
|
264
264
|
moveToStart: (element: AlexElement) => void;
|
265
265
|
};
|
266
266
|
} | null;
|
267
267
|
}[];
|
268
268
|
current: number;
|
269
|
-
push: (stack: AlexElement[], range?: import(
|
270
|
-
get: (type: 1 | -1) => import(
|
271
|
-
updateCurrentRange: (range: import(
|
272
|
-
__cloneRange: (newStack: AlexElement[], range?: import(
|
269
|
+
push: (stack: AlexElement[], range?: import("alex-editor").AlexRange | null | undefined) => void;
|
270
|
+
get: (type: 1 | -1) => import("alex-editor").AlexHistoryResultType | null;
|
271
|
+
updateCurrentRange: (range: import("alex-editor").AlexRange) => void;
|
272
|
+
__cloneRange: (newStack: AlexElement[], range?: import("alex-editor").AlexRange | null | undefined) => import("alex-editor").AlexRange | null;
|
273
273
|
};
|
274
274
|
stack: {
|
275
275
|
key: number;
|
276
|
-
type: import(
|
276
|
+
type: import("alex-editor").AlexElementType;
|
277
277
|
parsedom: string | null;
|
278
|
-
marks: import(
|
279
|
-
styles: import(
|
278
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
279
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
280
280
|
textContent: string | null;
|
281
281
|
children: any[] | null;
|
282
282
|
parent: any | null;
|
@@ -316,10 +316,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
316
316
|
anchor: {
|
317
317
|
element: {
|
318
318
|
key: number;
|
319
|
-
type: import(
|
319
|
+
type: import("alex-editor").AlexElementType;
|
320
320
|
parsedom: string | null;
|
321
|
-
marks: import(
|
322
|
-
styles: import(
|
321
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
322
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
323
323
|
textContent: string | null;
|
324
324
|
children: any[] | null;
|
325
325
|
parent: any | null;
|
@@ -356,17 +356,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
356
356
|
__fullClone: () => AlexElement;
|
357
357
|
};
|
358
358
|
offset: number;
|
359
|
-
isEqual: (point: import(
|
359
|
+
isEqual: (point: import("alex-editor").AlexPoint) => boolean;
|
360
360
|
moveToEnd: (element: AlexElement) => void;
|
361
361
|
moveToStart: (element: AlexElement) => void;
|
362
362
|
};
|
363
363
|
focus: {
|
364
364
|
element: {
|
365
365
|
key: number;
|
366
|
-
type: import(
|
366
|
+
type: import("alex-editor").AlexElementType;
|
367
367
|
parsedom: string | null;
|
368
|
-
marks: import(
|
369
|
-
styles: import(
|
368
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
369
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
370
370
|
textContent: string | null;
|
371
371
|
children: any[] | null;
|
372
372
|
parent: any | null;
|
@@ -403,13 +403,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
403
403
|
__fullClone: () => AlexElement;
|
404
404
|
};
|
405
405
|
offset: number;
|
406
|
-
isEqual: (point: import(
|
406
|
+
isEqual: (point: import("alex-editor").AlexPoint) => boolean;
|
407
407
|
moveToEnd: (element: AlexElement) => void;
|
408
408
|
moveToStart: (element: AlexElement) => void;
|
409
409
|
};
|
410
410
|
} | null;
|
411
411
|
__guid: number;
|
412
|
-
__events: import(
|
412
|
+
__events: import("alex-editor/lib/core/tool").ObjectType;
|
413
413
|
__firstRender: boolean;
|
414
414
|
__isInputChinese: boolean;
|
415
415
|
__innerSelectionChange: boolean;
|
@@ -436,8 +436,8 @@ declare const _default: import('vue').DefineComponent<{
|
|
436
436
|
getElementByKey: (key: number) => AlexElement | null;
|
437
437
|
getPreviousElement: (ele: AlexElement) => AlexElement | null;
|
438
438
|
getNextElement: (ele: AlexElement) => AlexElement | null;
|
439
|
-
getPreviousElementOfPoint: (point: import(
|
440
|
-
getNextElementOfPoint: (point: import(
|
439
|
+
getPreviousElementOfPoint: (point: import("alex-editor").AlexPoint) => AlexElement | null;
|
440
|
+
getNextElementOfPoint: (point: import("alex-editor").AlexPoint) => AlexElement | null;
|
441
441
|
getElementsByRange: () => AlexElementsRangeType;
|
442
442
|
addElementTo: (childEle: AlexElement, parentEle: AlexElement, index?: number | undefined) => void;
|
443
443
|
addElementBefore: (newEle: AlexElement, targetEle: AlexElement) => void;
|
@@ -450,17 +450,17 @@ declare const _default: import('vue').DefineComponent<{
|
|
450
450
|
on: (eventName: string, eventHandle: (...args: any) => void) => void;
|
451
451
|
destroy: () => void;
|
452
452
|
} | null>;
|
453
|
-
isSourceView: import(
|
454
|
-
isFullScreen: import(
|
455
|
-
canUseMenu: import(
|
456
|
-
dataRangeCaches: import(
|
453
|
+
isSourceView: import("vue").Ref<boolean>;
|
454
|
+
isFullScreen: import("vue").Ref<boolean>;
|
455
|
+
canUseMenu: import("vue").Ref<boolean>;
|
456
|
+
dataRangeCaches: import("vue").Ref<{
|
457
457
|
list: {
|
458
458
|
element: {
|
459
459
|
key: number;
|
460
|
-
type: import(
|
460
|
+
type: import("alex-editor").AlexElementType;
|
461
461
|
parsedom: string | null;
|
462
|
-
marks: import(
|
463
|
-
styles: import(
|
462
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
463
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
464
464
|
textContent: string | null;
|
465
465
|
children: any[] | null;
|
466
466
|
parent: any | null;
|
@@ -501,10 +501,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
501
501
|
flatList: {
|
502
502
|
element: {
|
503
503
|
key: number;
|
504
|
-
type: import(
|
504
|
+
type: import("alex-editor").AlexElementType;
|
505
505
|
parsedom: string | null;
|
506
|
-
marks: import(
|
507
|
-
styles: import(
|
506
|
+
marks: import("alex-editor/lib/core/tool").ObjectType | null;
|
507
|
+
styles: import("alex-editor/lib/core/tool").ObjectType | null;
|
508
508
|
textContent: string | null;
|
509
509
|
children: any[] | null;
|
510
510
|
parent: any | null;
|
@@ -543,12 +543,12 @@ declare const _default: import('vue').DefineComponent<{
|
|
543
543
|
offset: false | number[];
|
544
544
|
}[];
|
545
545
|
}>;
|
546
|
-
textValue: import(
|
546
|
+
textValue: import("vue").ComputedRef<string>;
|
547
547
|
collapseToEnd: () => void;
|
548
548
|
collapseToStart: () => void;
|
549
549
|
undo: () => void;
|
550
550
|
redo: () => void;
|
551
|
-
}, unknown, {}, {}, import(
|
551
|
+
}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {
|
552
552
|
"update:modelValue": (...args: any[]) => void;
|
553
553
|
change: (...args: any[]) => void;
|
554
554
|
blur: (...args: any[]) => void;
|
@@ -557,9 +557,9 @@ declare const _default: import('vue').DefineComponent<{
|
|
557
557
|
insertparagraph: (...args: any[]) => void;
|
558
558
|
rangeupdate: (...args: any[]) => void;
|
559
559
|
updateview: (...args: any[]) => void;
|
560
|
-
}, string, import(
|
560
|
+
}, string, import("vue").PublicProps, Readonly<import("vue").ExtractPropTypes<{
|
561
561
|
locale: {
|
562
|
-
type: import(
|
562
|
+
type: import("vue").PropType<import("../locale").LocaleType>;
|
563
563
|
default: string;
|
564
564
|
};
|
565
565
|
modelValue: {
|
@@ -608,7 +608,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
608
608
|
default: number;
|
609
609
|
};
|
610
610
|
toolbar: {
|
611
|
-
type: import(
|
611
|
+
type: import("vue").PropType<ToolbarConfigType>;
|
612
612
|
default: null;
|
613
613
|
};
|
614
614
|
showWordLength: {
|
@@ -616,43 +616,43 @@ declare const _default: import('vue').DefineComponent<{
|
|
616
616
|
default: boolean;
|
617
617
|
};
|
618
618
|
customTextPaste: {
|
619
|
-
type: import(
|
619
|
+
type: import("vue").PropType<(data: string) => void | Promise<void>>;
|
620
620
|
default: null;
|
621
621
|
};
|
622
622
|
customHtmlPaste: {
|
623
|
-
type: import(
|
623
|
+
type: import("vue").PropType<(elements: AlexElement[]) => void | Promise<void>>;
|
624
624
|
default: null;
|
625
625
|
};
|
626
626
|
customImagePaste: {
|
627
|
-
type: import(
|
627
|
+
type: import("vue").PropType<(file: File) => void | Promise<void>>;
|
628
628
|
default: null;
|
629
629
|
};
|
630
630
|
customVideoPaste: {
|
631
|
-
type: import(
|
631
|
+
type: import("vue").PropType<(file: File) => void | Promise<void>>;
|
632
632
|
default: null;
|
633
633
|
};
|
634
634
|
customFilePaste: {
|
635
|
-
type: import(
|
635
|
+
type: import("vue").PropType<(file: File) => void | Promise<void>>;
|
636
636
|
default: null;
|
637
637
|
};
|
638
638
|
menu: {
|
639
|
-
type: import(
|
639
|
+
type: import("vue").PropType<MenuConfigType>;
|
640
640
|
default: null;
|
641
641
|
};
|
642
642
|
pasteKeepMarks: {
|
643
|
-
type: import(
|
643
|
+
type: import("vue").PropType<ObjectType>;
|
644
644
|
default: null;
|
645
645
|
};
|
646
646
|
pasteKeepStyles: {
|
647
|
-
type: import(
|
647
|
+
type: import("vue").PropType<ObjectType>;
|
648
648
|
default: null;
|
649
649
|
};
|
650
650
|
customParseNode: {
|
651
|
-
type: import(
|
651
|
+
type: import("vue").PropType<(el: AlexElement) => AlexElement>;
|
652
652
|
default: null;
|
653
653
|
};
|
654
654
|
renderRules: {
|
655
|
-
type: import(
|
655
|
+
type: import("vue").PropType<((el: AlexElement) => void)[]>;
|
656
656
|
default: () => never[];
|
657
657
|
};
|
658
658
|
autoheight: {
|
@@ -681,7 +681,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
681
681
|
placeholder: string;
|
682
682
|
autoheight: boolean;
|
683
683
|
toolbar: ToolbarConfigType;
|
684
|
-
locale: import(
|
684
|
+
locale: import("../locale").LocaleType;
|
685
685
|
autofocus: boolean;
|
686
686
|
allowCopy: boolean;
|
687
687
|
allowPaste: boolean;
|