vue-editify 0.2.28 → 0.2.29
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/examples/App.vue +4 -1
- package/lib/components/button/button.vue.d.ts +216 -28
- package/lib/components/checkbox/checkbox.vue.d.ts +5 -5
- package/lib/components/colors/colors.vue.d.ts +5 -5
- package/lib/components/icon/icon.vue.d.ts +4 -4
- package/lib/components/insertAttachment/insertAttachment.vue.d.ts +6 -6
- package/lib/components/insertImage/insertImage.vue.d.ts +6 -6
- package/lib/components/insertLink/insertLink.vue.d.ts +5 -5
- package/lib/components/insertMathformula/insertMathformula.vue.d.ts +5 -5
- package/lib/components/insertTable/insertTable.vue.d.ts +5 -5
- package/lib/components/insertVideo/insertVideo.vue.d.ts +6 -6
- package/lib/components/layer/layer.vue.d.ts +8 -8
- package/lib/components/tooltip/tooltip.vue.d.ts +4 -4
- package/lib/components/triangle/triangle.vue.d.ts +4 -4
- package/lib/components/updateLink/updateLink.vue.d.ts +5 -5
- package/lib/editify/editify.vue.d.ts +648 -13
- package/lib/editify/menu/menu.vue.d.ts +8 -6
- package/lib/editify/toolbar/toolbar.vue.d.ts +215 -27
- package/lib/editify.es.js +598 -215
- package/lib/editify.umd.js +2 -2
- package/lib/index.d.ts +648 -13
- package/package.json +1 -1
- package/src/editify/editify.less +0 -2
- package/src/editify/editify.vue +21 -9
- package/src/editify/menu/menu.vue +71 -66
- package/src/index.ts +8 -61
package/examples/App.vue
CHANGED
|
@@ -2,7 +2,9 @@
|
|
|
2
2
|
<div style="height: 100%; padding: 40px; box-sizing: border-box">
|
|
3
3
|
<button @click="insert">插入</button>
|
|
4
4
|
<div>{{ val }}</div>
|
|
5
|
-
<Editify :dark="dark" ref="editifyRef" border v-model="val" :menu="menuConfig"
|
|
5
|
+
<Editify :dark="dark" autofocus ref="editifyRef" border v-model="val" :menu="menuConfig"
|
|
6
|
+
placeholder="Please Enter Text..." :toolbar="toolbarConfig" locale="zh_CN" show-word-length allow-paste-html>
|
|
7
|
+
</Editify>
|
|
6
8
|
</div>
|
|
7
9
|
</template>
|
|
8
10
|
<script setup lang="ts">
|
|
@@ -80,6 +82,7 @@ html,
|
|
|
80
82
|
body {
|
|
81
83
|
height: 100%;
|
|
82
84
|
}
|
|
85
|
+
|
|
83
86
|
body {
|
|
84
87
|
margin: 0;
|
|
85
88
|
background-color: var(--editify-background);
|
|
@@ -9,7 +9,7 @@ declare function __VLS_template(): {
|
|
|
9
9
|
item: ButtonOptionsItemType;
|
|
10
10
|
}): any;
|
|
11
11
|
};
|
|
12
|
-
declare const __VLS_component: import('vue').DefineComponent<{
|
|
12
|
+
declare const __VLS_component: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
13
13
|
type: {
|
|
14
14
|
type: import('vue').PropType<import('./props').ButtonTypeType>;
|
|
15
15
|
default: string;
|
|
@@ -63,15 +63,16 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
63
63
|
type: NumberConstructor;
|
|
64
64
|
default: number;
|
|
65
65
|
};
|
|
66
|
-
}
|
|
67
|
-
show: import('vue').Ref<boolean>;
|
|
68
|
-
status: import('vue').Ref<"hover" | "down" | null>;
|
|
66
|
+
}>, {
|
|
67
|
+
show: import('vue').Ref<boolean, boolean>;
|
|
68
|
+
status: import('vue').Ref<"hover" | "down" | null, "hover" | "down" | null>;
|
|
69
69
|
layerRef: import('vue').Ref<({
|
|
70
70
|
$: import('vue').ComponentInternalInstance;
|
|
71
71
|
$data: {};
|
|
72
72
|
$props: Partial<{
|
|
73
73
|
color: string;
|
|
74
74
|
zIndex: number;
|
|
75
|
+
animation: import('../layer').LayerAnimationType;
|
|
75
76
|
modelValue: boolean;
|
|
76
77
|
node: string | HTMLElement | null;
|
|
77
78
|
scrollNode: string | HTMLElement | null;
|
|
@@ -80,12 +81,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
80
81
|
background: string;
|
|
81
82
|
placement: import('../layer').LayerPlacementType;
|
|
82
83
|
showTriangle: boolean;
|
|
83
|
-
animation: import('../layer').LayerAnimationType;
|
|
84
84
|
useRange: boolean;
|
|
85
85
|
insideElements: HTMLElement[];
|
|
86
86
|
}> & Omit<{
|
|
87
87
|
readonly color: string;
|
|
88
88
|
readonly zIndex: number;
|
|
89
|
+
readonly animation: import('../layer').LayerAnimationType;
|
|
89
90
|
readonly modelValue: boolean;
|
|
90
91
|
readonly node: string | HTMLElement | null;
|
|
91
92
|
readonly scrollNode: string | HTMLElement | null;
|
|
@@ -94,14 +95,28 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
94
95
|
readonly background: string;
|
|
95
96
|
readonly placement: import('../layer').LayerPlacementType;
|
|
96
97
|
readonly showTriangle: boolean;
|
|
97
|
-
readonly animation: import('../layer').LayerAnimationType;
|
|
98
98
|
readonly useRange: boolean;
|
|
99
99
|
readonly insideElements: HTMLElement[];
|
|
100
|
-
onHidden?: ((...args: any[]) => any) | undefined;
|
|
101
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
102
|
-
onShow?: ((...args: any[]) => any) | undefined;
|
|
103
|
-
onShown?: ((...args: any[]) => any) | undefined;
|
|
104
|
-
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps
|
|
100
|
+
readonly onHidden?: ((...args: any[]) => any) | undefined;
|
|
101
|
+
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
102
|
+
readonly onShow?: ((...args: any[]) => any) | undefined;
|
|
103
|
+
readonly onShown?: ((...args: any[]) => any) | undefined;
|
|
104
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements">;
|
|
105
|
+
$attrs: {
|
|
106
|
+
[x: string]: unknown;
|
|
107
|
+
};
|
|
108
|
+
$refs: {
|
|
109
|
+
[x: string]: unknown;
|
|
110
|
+
};
|
|
111
|
+
$slots: Readonly<{
|
|
112
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
113
|
+
}>;
|
|
114
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
115
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
116
|
+
$host: Element | null;
|
|
117
|
+
$emit: ((event: "hidden", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "shown", ...args: any[]) => void);
|
|
118
|
+
$el: any;
|
|
119
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
105
120
|
modelValue: {
|
|
106
121
|
type: BooleanConstructor;
|
|
107
122
|
default: boolean;
|
|
@@ -156,12 +171,170 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
156
171
|
type: import('vue').PropType<HTMLElement[]>;
|
|
157
172
|
default: () => never[];
|
|
158
173
|
};
|
|
159
|
-
}>> & {
|
|
174
|
+
}>> & Readonly<{
|
|
160
175
|
onHidden?: ((...args: any[]) => any) | undefined;
|
|
161
176
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
162
177
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
163
178
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
164
|
-
}
|
|
179
|
+
}>, {
|
|
180
|
+
setPosition: () => void;
|
|
181
|
+
elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
182
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
183
|
+
hidden: (...args: any[]) => void;
|
|
184
|
+
"update:modelValue": (...args: any[]) => void;
|
|
185
|
+
show: (...args: any[]) => void;
|
|
186
|
+
shown: (...args: any[]) => void;
|
|
187
|
+
}, string, {
|
|
188
|
+
color: string;
|
|
189
|
+
zIndex: number;
|
|
190
|
+
animation: import('../layer').LayerAnimationType;
|
|
191
|
+
modelValue: boolean;
|
|
192
|
+
node: string | HTMLElement | null;
|
|
193
|
+
scrollNode: string | HTMLElement | null;
|
|
194
|
+
border: boolean;
|
|
195
|
+
borderColor: string;
|
|
196
|
+
background: string;
|
|
197
|
+
placement: import('../layer').LayerPlacementType;
|
|
198
|
+
showTriangle: boolean;
|
|
199
|
+
useRange: boolean;
|
|
200
|
+
insideElements: HTMLElement[];
|
|
201
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
202
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
203
|
+
created?: (() => void) | (() => void)[];
|
|
204
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
205
|
+
mounted?: (() => void) | (() => void)[];
|
|
206
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
207
|
+
updated?: (() => void) | (() => void)[];
|
|
208
|
+
activated?: (() => void) | (() => void)[];
|
|
209
|
+
deactivated?: (() => void) | (() => void)[];
|
|
210
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
211
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
212
|
+
destroyed?: (() => void) | (() => void)[];
|
|
213
|
+
unmounted?: (() => void) | (() => void)[];
|
|
214
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
215
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
216
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
217
|
+
};
|
|
218
|
+
$forceUpdate: () => void;
|
|
219
|
+
$nextTick: typeof import('vue').nextTick;
|
|
220
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
221
|
+
} & Readonly<{
|
|
222
|
+
color: string;
|
|
223
|
+
zIndex: number;
|
|
224
|
+
animation: import('../layer').LayerAnimationType;
|
|
225
|
+
modelValue: boolean;
|
|
226
|
+
node: string | HTMLElement | null;
|
|
227
|
+
scrollNode: string | HTMLElement | null;
|
|
228
|
+
border: boolean;
|
|
229
|
+
borderColor: string;
|
|
230
|
+
background: string;
|
|
231
|
+
placement: import('../layer').LayerPlacementType;
|
|
232
|
+
showTriangle: boolean;
|
|
233
|
+
useRange: boolean;
|
|
234
|
+
insideElements: HTMLElement[];
|
|
235
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
236
|
+
modelValue: {
|
|
237
|
+
type: BooleanConstructor;
|
|
238
|
+
default: boolean;
|
|
239
|
+
};
|
|
240
|
+
node: {
|
|
241
|
+
type: import('vue').PropType<string | HTMLElement | null>;
|
|
242
|
+
default: null;
|
|
243
|
+
};
|
|
244
|
+
scrollNode: {
|
|
245
|
+
type: import('vue').PropType<string | HTMLElement | null>;
|
|
246
|
+
default: null;
|
|
247
|
+
};
|
|
248
|
+
border: {
|
|
249
|
+
type: BooleanConstructor;
|
|
250
|
+
default: boolean;
|
|
251
|
+
};
|
|
252
|
+
borderColor: {
|
|
253
|
+
type: StringConstructor;
|
|
254
|
+
default: null;
|
|
255
|
+
};
|
|
256
|
+
background: {
|
|
257
|
+
type: StringConstructor;
|
|
258
|
+
default: null;
|
|
259
|
+
};
|
|
260
|
+
color: {
|
|
261
|
+
type: StringConstructor;
|
|
262
|
+
default: null;
|
|
263
|
+
};
|
|
264
|
+
placement: {
|
|
265
|
+
type: import('vue').PropType<import('../layer').LayerPlacementType>;
|
|
266
|
+
default: string;
|
|
267
|
+
validator(value: any): boolean;
|
|
268
|
+
};
|
|
269
|
+
showTriangle: {
|
|
270
|
+
type: BooleanConstructor;
|
|
271
|
+
default: boolean;
|
|
272
|
+
};
|
|
273
|
+
zIndex: {
|
|
274
|
+
type: NumberConstructor;
|
|
275
|
+
default: number;
|
|
276
|
+
};
|
|
277
|
+
animation: {
|
|
278
|
+
type: import('vue').PropType<import('../layer').LayerAnimationType>;
|
|
279
|
+
default: null;
|
|
280
|
+
validator(value: any): boolean;
|
|
281
|
+
};
|
|
282
|
+
useRange: {
|
|
283
|
+
type: BooleanConstructor;
|
|
284
|
+
default: boolean;
|
|
285
|
+
};
|
|
286
|
+
insideElements: {
|
|
287
|
+
type: import('vue').PropType<HTMLElement[]>;
|
|
288
|
+
default: () => never[];
|
|
289
|
+
};
|
|
290
|
+
}>> & Readonly<{
|
|
291
|
+
onHidden?: ((...args: any[]) => any) | undefined;
|
|
292
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
293
|
+
onShow?: ((...args: any[]) => any) | undefined;
|
|
294
|
+
onShown?: ((...args: any[]) => any) | undefined;
|
|
295
|
+
}>, "setPosition" | "elRef" | ("color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements")> & import('vue').ShallowUnwrapRef<{
|
|
296
|
+
setPosition: () => void;
|
|
297
|
+
elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
298
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
299
|
+
$slots: {
|
|
300
|
+
default?(_: {}): any;
|
|
301
|
+
};
|
|
302
|
+
}) | null, ({
|
|
303
|
+
$: import('vue').ComponentInternalInstance;
|
|
304
|
+
$data: {};
|
|
305
|
+
$props: Partial<{
|
|
306
|
+
color: string;
|
|
307
|
+
zIndex: number;
|
|
308
|
+
animation: import('../layer').LayerAnimationType;
|
|
309
|
+
modelValue: boolean;
|
|
310
|
+
node: string | HTMLElement | null;
|
|
311
|
+
scrollNode: string | HTMLElement | null;
|
|
312
|
+
border: boolean;
|
|
313
|
+
borderColor: string;
|
|
314
|
+
background: string;
|
|
315
|
+
placement: import('../layer').LayerPlacementType;
|
|
316
|
+
showTriangle: boolean;
|
|
317
|
+
useRange: boolean;
|
|
318
|
+
insideElements: HTMLElement[];
|
|
319
|
+
}> & Omit<{
|
|
320
|
+
readonly color: string;
|
|
321
|
+
readonly zIndex: number;
|
|
322
|
+
readonly animation: import('../layer').LayerAnimationType;
|
|
323
|
+
readonly modelValue: boolean;
|
|
324
|
+
readonly node: string | HTMLElement | null;
|
|
325
|
+
readonly scrollNode: string | HTMLElement | null;
|
|
326
|
+
readonly border: boolean;
|
|
327
|
+
readonly borderColor: string;
|
|
328
|
+
readonly background: string;
|
|
329
|
+
readonly placement: import('../layer').LayerPlacementType;
|
|
330
|
+
readonly showTriangle: boolean;
|
|
331
|
+
readonly useRange: boolean;
|
|
332
|
+
readonly insideElements: HTMLElement[];
|
|
333
|
+
readonly onHidden?: ((...args: any[]) => any) | undefined;
|
|
334
|
+
readonly "onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
335
|
+
readonly onShow?: ((...args: any[]) => any) | undefined;
|
|
336
|
+
readonly onShown?: ((...args: any[]) => any) | undefined;
|
|
337
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps, "color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements">;
|
|
165
338
|
$attrs: {
|
|
166
339
|
[x: string]: unknown;
|
|
167
340
|
};
|
|
@@ -173,6 +346,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
173
346
|
}>;
|
|
174
347
|
$root: import('vue').ComponentPublicInstance | null;
|
|
175
348
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
349
|
+
$host: Element | null;
|
|
176
350
|
$emit: ((event: "hidden", ...args: any[]) => void) & ((event: "update:modelValue", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "shown", ...args: any[]) => void);
|
|
177
351
|
$el: any;
|
|
178
352
|
$options: import('vue').ComponentOptionsBase<Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -230,15 +404,15 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
230
404
|
type: import('vue').PropType<HTMLElement[]>;
|
|
231
405
|
default: () => never[];
|
|
232
406
|
};
|
|
233
|
-
}>> & {
|
|
407
|
+
}>> & Readonly<{
|
|
234
408
|
onHidden?: ((...args: any[]) => any) | undefined;
|
|
235
409
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
236
410
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
237
411
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
238
|
-
}
|
|
412
|
+
}>, {
|
|
239
413
|
setPosition: () => void;
|
|
240
|
-
elRef: import('vue').Ref<HTMLElement | null>;
|
|
241
|
-
},
|
|
414
|
+
elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
415
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
242
416
|
hidden: (...args: any[]) => void;
|
|
243
417
|
"update:modelValue": (...args: any[]) => void;
|
|
244
418
|
show: (...args: any[]) => void;
|
|
@@ -246,6 +420,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
246
420
|
}, string, {
|
|
247
421
|
color: string;
|
|
248
422
|
zIndex: number;
|
|
423
|
+
animation: import('../layer').LayerAnimationType;
|
|
249
424
|
modelValue: boolean;
|
|
250
425
|
node: string | HTMLElement | null;
|
|
251
426
|
scrollNode: string | HTMLElement | null;
|
|
@@ -254,10 +429,9 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
254
429
|
background: string;
|
|
255
430
|
placement: import('../layer').LayerPlacementType;
|
|
256
431
|
showTriangle: boolean;
|
|
257
|
-
animation: import('../layer').LayerAnimationType;
|
|
258
432
|
useRange: boolean;
|
|
259
433
|
insideElements: HTMLElement[];
|
|
260
|
-
}, {}, string, {}> & {
|
|
434
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
261
435
|
beforeCreate?: (() => void) | (() => void)[];
|
|
262
436
|
created?: (() => void) | (() => void)[];
|
|
263
437
|
beforeMount?: (() => void) | (() => void)[];
|
|
@@ -276,8 +450,22 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
276
450
|
};
|
|
277
451
|
$forceUpdate: () => void;
|
|
278
452
|
$nextTick: typeof import('vue').nextTick;
|
|
279
|
-
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, (
|
|
280
|
-
} &
|
|
453
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (...args: [R, R, import('@vue/reactivity').OnCleanup]) => any : (...args: [any, any, import('@vue/reactivity').OnCleanup]) => any, options?: import('vue').WatchOptions): import('vue').WatchStopHandle;
|
|
454
|
+
} & Readonly<{
|
|
455
|
+
color: string;
|
|
456
|
+
zIndex: number;
|
|
457
|
+
animation: import('../layer').LayerAnimationType;
|
|
458
|
+
modelValue: boolean;
|
|
459
|
+
node: string | HTMLElement | null;
|
|
460
|
+
scrollNode: string | HTMLElement | null;
|
|
461
|
+
border: boolean;
|
|
462
|
+
borderColor: string;
|
|
463
|
+
background: string;
|
|
464
|
+
placement: import('../layer').LayerPlacementType;
|
|
465
|
+
showTriangle: boolean;
|
|
466
|
+
useRange: boolean;
|
|
467
|
+
insideElements: HTMLElement[];
|
|
468
|
+
}> & Omit<Readonly<import('vue').ExtractPropTypes<{
|
|
281
469
|
modelValue: {
|
|
282
470
|
type: BooleanConstructor;
|
|
283
471
|
default: boolean;
|
|
@@ -332,21 +520,21 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
332
520
|
type: import('vue').PropType<HTMLElement[]>;
|
|
333
521
|
default: () => never[];
|
|
334
522
|
};
|
|
335
|
-
}>> & {
|
|
523
|
+
}>> & Readonly<{
|
|
336
524
|
onHidden?: ((...args: any[]) => any) | undefined;
|
|
337
525
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
338
526
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
339
527
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
340
|
-
}
|
|
528
|
+
}>, "setPosition" | "elRef" | ("color" | "zIndex" | "animation" | "modelValue" | "node" | "scrollNode" | "border" | "borderColor" | "background" | "placement" | "showTriangle" | "useRange" | "insideElements")> & import('vue').ShallowUnwrapRef<{
|
|
341
529
|
setPosition: () => void;
|
|
342
|
-
elRef: import('vue').Ref<HTMLElement | null>;
|
|
530
|
+
elRef: import('vue').Ref<HTMLElement | null, HTMLElement | null>;
|
|
343
531
|
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
344
532
|
$slots: {
|
|
345
533
|
default?(_: {}): any;
|
|
346
534
|
};
|
|
347
535
|
}) | null>;
|
|
348
536
|
handleClick: () => void;
|
|
349
|
-
},
|
|
537
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
350
538
|
operate: (...args: any[]) => void;
|
|
351
539
|
layerShow: (...args: any[]) => void;
|
|
352
540
|
layerShown: (...args: any[]) => void;
|
|
@@ -405,12 +593,12 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
405
593
|
type: NumberConstructor;
|
|
406
594
|
default: number;
|
|
407
595
|
};
|
|
408
|
-
}>> & {
|
|
596
|
+
}>> & Readonly<{
|
|
409
597
|
onOperate?: ((...args: any[]) => any) | undefined;
|
|
410
598
|
onLayerShow?: ((...args: any[]) => any) | undefined;
|
|
411
599
|
onLayerShown?: ((...args: any[]) => any) | undefined;
|
|
412
600
|
onLayerHidden?: ((...args: any[]) => any) | undefined;
|
|
413
|
-
}
|
|
601
|
+
}>, {
|
|
414
602
|
type: import('./props').ButtonTypeType;
|
|
415
603
|
name: string;
|
|
416
604
|
title: string;
|
|
@@ -424,7 +612,7 @@ declare const __VLS_component: import('vue').DefineComponent<{
|
|
|
424
612
|
displayConfig: import('./props').ButtonDisplayConfigType;
|
|
425
613
|
hideScroll: boolean;
|
|
426
614
|
zIndex: number;
|
|
427
|
-
}, {}>;
|
|
615
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
428
616
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, ReturnType<typeof __VLS_template>>;
|
|
429
617
|
export default _default;
|
|
430
618
|
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ObjectType } from '../../core/tool';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
disabled: {
|
|
5
5
|
type: BooleanConstructor;
|
|
6
6
|
default: boolean;
|
|
@@ -31,7 +31,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
31
31
|
default: string;
|
|
32
32
|
validator(value: any): boolean;
|
|
33
33
|
};
|
|
34
|
-
}
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
35
|
change: (...args: any[]) => void;
|
|
36
36
|
"update:modelValue": (...args: any[]) => void;
|
|
37
37
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -65,10 +65,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
65
65
|
default: string;
|
|
66
66
|
validator(value: any): boolean;
|
|
67
67
|
};
|
|
68
|
-
}>> & {
|
|
68
|
+
}>> & Readonly<{
|
|
69
69
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
70
70
|
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
71
|
-
}
|
|
71
|
+
}>, {
|
|
72
72
|
color: string;
|
|
73
73
|
disabled: boolean;
|
|
74
74
|
value: string | number | any[] | ObjectType;
|
|
@@ -76,5 +76,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
76
76
|
modelValue: boolean | any[];
|
|
77
77
|
placement: "left" | "right";
|
|
78
78
|
round: boolean;
|
|
79
|
-
}, {}>;
|
|
79
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
80
80
|
export default _default;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ButtonOptionsItemType } from '../button';
|
|
2
2
|
|
|
3
|
-
declare const _default: import('vue').DefineComponent<{
|
|
3
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
4
4
|
data: {
|
|
5
5
|
type: import('vue').PropType<ButtonOptionsItemType[]>;
|
|
6
6
|
default: () => never[];
|
|
@@ -21,7 +21,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
21
21
|
type: NumberConstructor;
|
|
22
22
|
default: number;
|
|
23
23
|
};
|
|
24
|
-
}
|
|
24
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
25
25
|
change: (...args: any[]) => void;
|
|
26
26
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
27
27
|
data: {
|
|
@@ -44,13 +44,13 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
44
44
|
type: NumberConstructor;
|
|
45
45
|
default: number;
|
|
46
46
|
};
|
|
47
|
-
}>> & {
|
|
47
|
+
}>> & Readonly<{
|
|
48
48
|
onChange?: ((...args: any[]) => any) | undefined;
|
|
49
|
-
}
|
|
49
|
+
}>, {
|
|
50
50
|
tooltip: boolean;
|
|
51
51
|
color: string;
|
|
52
52
|
zIndex: number;
|
|
53
53
|
value: string;
|
|
54
54
|
data: ButtonOptionsItemType[];
|
|
55
|
-
}, {}>;
|
|
55
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
56
56
|
export default _default;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
value: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
5
5
|
};
|
|
6
|
-
}
|
|
6
|
+
}>, {}, {}, {}, {}, 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;
|
|
10
10
|
};
|
|
11
|
-
}
|
|
11
|
+
}>> & Readonly<{}>, {
|
|
12
12
|
value: string;
|
|
13
|
-
}, {}>;
|
|
13
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
14
14
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
color: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -31,7 +31,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
31
31
|
type: import('vue').PropType<(error: import('./props').InsertAttachmentUploadErrorType, file: File) => void>;
|
|
32
32
|
default: null;
|
|
33
33
|
};
|
|
34
|
-
}
|
|
34
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
35
35
|
insert: (...args: any[]) => void;
|
|
36
36
|
change: (...args: any[]) => void;
|
|
37
37
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -67,10 +67,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
67
67
|
type: import('vue').PropType<(error: import('./props').InsertAttachmentUploadErrorType, file: File) => void>;
|
|
68
68
|
default: null;
|
|
69
69
|
};
|
|
70
|
-
}>> & {
|
|
71
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
70
|
+
}>> & Readonly<{
|
|
72
71
|
onInsert?: ((...args: any[]) => any) | undefined;
|
|
73
|
-
|
|
72
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
73
|
+
}>, {
|
|
74
74
|
color: string;
|
|
75
75
|
allowedFileType: string[];
|
|
76
76
|
multiple: boolean;
|
|
@@ -79,5 +79,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
79
79
|
customUpload: ((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>);
|
|
80
80
|
handleError: (error: import('./props').InsertAttachmentUploadErrorType, file: File) => void;
|
|
81
81
|
accept: string;
|
|
82
|
-
}, {}>;
|
|
82
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
83
83
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
color: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -27,7 +27,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
27
27
|
type: import('vue').PropType<(error: import('./props').InsertImageUploadErrorType, file: File) => void>;
|
|
28
28
|
default: null;
|
|
29
29
|
};
|
|
30
|
-
}
|
|
30
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
31
31
|
insert: (...args: any[]) => void;
|
|
32
32
|
change: (...args: any[]) => void;
|
|
33
33
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
@@ -59,10 +59,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
59
59
|
type: import('vue').PropType<(error: import('./props').InsertImageUploadErrorType, file: File) => void>;
|
|
60
60
|
default: null;
|
|
61
61
|
};
|
|
62
|
-
}>> & {
|
|
63
|
-
onChange?: ((...args: any[]) => any) | undefined;
|
|
62
|
+
}>> & Readonly<{
|
|
64
63
|
onInsert?: ((...args: any[]) => any) | undefined;
|
|
65
|
-
|
|
64
|
+
onChange?: ((...args: any[]) => any) | undefined;
|
|
65
|
+
}>, {
|
|
66
66
|
color: string;
|
|
67
67
|
allowedFileType: string[];
|
|
68
68
|
multiple: boolean;
|
|
@@ -70,5 +70,5 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
70
70
|
minSize: number;
|
|
71
71
|
customUpload: ((files: File[]) => string[]) | ((files: File[]) => Promise<string[]>);
|
|
72
72
|
handleError: (error: import('./props').InsertImageUploadErrorType, file: File) => void;
|
|
73
|
-
}, {}>;
|
|
73
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
74
74
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
color: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
}
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
insert: (...args: any[]) => void;
|
|
12
12
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
13
|
color: {
|
|
@@ -18,10 +18,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
-
}>> & {
|
|
21
|
+
}>> & Readonly<{
|
|
22
22
|
onInsert?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}
|
|
23
|
+
}>, {
|
|
24
24
|
color: string;
|
|
25
25
|
presetText: string;
|
|
26
|
-
}, {}>;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
27
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
color: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -7,7 +7,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
7
7
|
type: StringConstructor;
|
|
8
8
|
default: string;
|
|
9
9
|
};
|
|
10
|
-
}
|
|
10
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
11
11
|
insert: (...args: any[]) => void;
|
|
12
12
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
13
13
|
color: {
|
|
@@ -18,10 +18,10 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
18
18
|
type: StringConstructor;
|
|
19
19
|
default: string;
|
|
20
20
|
};
|
|
21
|
-
}>> & {
|
|
21
|
+
}>> & Readonly<{
|
|
22
22
|
onInsert?: ((...args: any[]) => any) | undefined;
|
|
23
|
-
}
|
|
23
|
+
}>, {
|
|
24
24
|
color: string;
|
|
25
25
|
defaultLaTexContent: string;
|
|
26
|
-
}, {}>;
|
|
26
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
27
27
|
export default _default;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const _default: import('vue').DefineComponent<{
|
|
1
|
+
declare const _default: import('vue').DefineComponent<import('vue').ExtractPropTypes<{
|
|
2
2
|
color: {
|
|
3
3
|
type: StringConstructor;
|
|
4
4
|
default: string;
|
|
@@ -11,7 +11,7 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
11
11
|
type: NumberConstructor;
|
|
12
12
|
default: number;
|
|
13
13
|
};
|
|
14
|
-
}
|
|
14
|
+
}>, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
15
15
|
insert: (...args: any[]) => void;
|
|
16
16
|
}, string, import('vue').PublicProps, Readonly<import('vue').ExtractPropTypes<{
|
|
17
17
|
color: {
|
|
@@ -26,11 +26,11 @@ declare const _default: import('vue').DefineComponent<{
|
|
|
26
26
|
type: NumberConstructor;
|
|
27
27
|
default: number;
|
|
28
28
|
};
|
|
29
|
-
}>> & {
|
|
29
|
+
}>> & Readonly<{
|
|
30
30
|
onInsert?: ((...args: any[]) => any) | undefined;
|
|
31
|
-
}
|
|
31
|
+
}>, {
|
|
32
32
|
color: string;
|
|
33
33
|
maxRows: number;
|
|
34
34
|
maxColumns: number;
|
|
35
|
-
}, {}>;
|
|
35
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, any>;
|
|
36
36
|
export default _default;
|