@kaitify/vue 0.0.1-beta.2 → 0.0.1-beta.20
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/lib/core/popover/popover.vue.d.ts +3 -3
- package/lib/core/tabs/props.d.ts +9 -2
- package/lib/core/tabs/tabs.vue.d.ts +5 -2
- package/lib/editor/bubble/bubble.vue.d.ts +2 -2
- package/lib/editor/menu/built-in/attachment/attachment.vue.d.ts +4 -0
- package/lib/editor/menu/built-in/attachment/props.d.ts +7 -0
- package/lib/editor/menu/built-in/full-screen/full-screen.vue.d.ts +6 -0
- package/lib/editor/menu/built-in/full-screen/index.d.ts +3 -0
- package/lib/editor/menu/built-in/full-screen/props.d.ts +18 -0
- package/lib/editor/menu/built-in/image/image.vue.d.ts +4 -0
- package/lib/editor/menu/built-in/image/props.d.ts +7 -0
- package/lib/editor/menu/built-in/index.d.ts +1 -0
- package/lib/editor/menu/built-in/line-height/line-height.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/video/props.d.ts +7 -0
- package/lib/editor/menu/built-in/video/video.vue.d.ts +4 -0
- package/lib/editor/menu/menu.vue.d.ts +8 -8
- package/lib/editor/wrapper/props.d.ts +8 -0
- package/lib/editor/wrapper/wrapper.vue.d.ts +10 -4
- package/lib/index.d.ts +2 -0
- package/lib/kaitify-vue.es.js +1090 -586
- package/lib/kaitify-vue.umd.js +2 -2
- package/package.json +3 -3
|
@@ -21,22 +21,22 @@ declare const __VLS_component: import('vue').DefineComponent<PopoverPropsType, {
|
|
|
21
21
|
update: () => Promise<void>;
|
|
22
22
|
realPlacement: import('vue').Ref<PopoverPlacementType, PopoverPlacementType>;
|
|
23
23
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
24
|
+
hidden: (...args: any[]) => void;
|
|
24
25
|
show: (...args: any[]) => void;
|
|
25
26
|
showing: (...args: any[]) => void;
|
|
26
27
|
shown: (...args: any[]) => void;
|
|
27
28
|
hide: (...args: any[]) => void;
|
|
28
29
|
hiding: (...args: any[]) => void;
|
|
29
|
-
hidden: (...args: any[]) => void;
|
|
30
30
|
}, string, import('vue').PublicProps, Readonly<PopoverPropsType> & Readonly<{
|
|
31
|
+
onHidden?: ((...args: any[]) => any) | undefined;
|
|
31
32
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
32
33
|
onShowing?: ((...args: any[]) => any) | undefined;
|
|
33
34
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
34
35
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
35
36
|
onHiding?: ((...args: any[]) => any) | undefined;
|
|
36
|
-
onHidden?: ((...args: any[]) => any) | undefined;
|
|
37
37
|
}>, {
|
|
38
|
-
zIndex: number;
|
|
39
38
|
disabled: boolean;
|
|
39
|
+
zIndex: number;
|
|
40
40
|
animation: "fade" | "translate" | (string & {});
|
|
41
41
|
placement: PopoverPlacementType;
|
|
42
42
|
arrow: boolean;
|
package/lib/core/tabs/props.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { TabsPropsType } from './props';
|
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
slots: {
|
|
4
4
|
default?(_: {
|
|
5
|
-
|
|
5
|
+
current: string | number;
|
|
6
6
|
}): any;
|
|
7
7
|
};
|
|
8
8
|
refs: {};
|
|
@@ -10,7 +10,10 @@ declare function __VLS_template(): {
|
|
|
10
10
|
};
|
|
11
11
|
type __VLS_TemplateResult = ReturnType<typeof __VLS_template>;
|
|
12
12
|
declare const __VLS_component: import('vue').DefineComponent<TabsPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<TabsPropsType> & Readonly<{}>, {
|
|
13
|
-
|
|
13
|
+
data: {
|
|
14
|
+
label: string;
|
|
15
|
+
value: string | number;
|
|
16
|
+
}[];
|
|
14
17
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
15
18
|
declare const _default: __VLS_WithTemplateSlots<typeof __VLS_component, __VLS_TemplateResult["slots"]>;
|
|
16
19
|
export default _default;
|
|
@@ -14,19 +14,19 @@ declare const __VLS_component: import('vue').DefineComponent<BubblePropsType, {
|
|
|
14
14
|
elRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
15
15
|
popperInstance: import('vue').Ref<Instance | undefined, Instance | undefined>;
|
|
16
16
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
17
|
+
hidden: (...args: any[]) => void;
|
|
17
18
|
show: (...args: any[]) => void;
|
|
18
19
|
showing: (...args: any[]) => void;
|
|
19
20
|
shown: (...args: any[]) => void;
|
|
20
21
|
hide: (...args: any[]) => void;
|
|
21
22
|
hiding: (...args: any[]) => void;
|
|
22
|
-
hidden: (...args: any[]) => void;
|
|
23
23
|
}, string, import('vue').PublicProps, Readonly<BubblePropsType> & Readonly<{
|
|
24
|
+
onHidden?: ((...args: any[]) => any) | undefined;
|
|
24
25
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
25
26
|
onShowing?: ((...args: any[]) => any) | undefined;
|
|
26
27
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
27
28
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
28
29
|
onHiding?: ((...args: any[]) => any) | undefined;
|
|
29
|
-
onHidden?: ((...args: any[]) => any) | undefined;
|
|
30
30
|
}>, {
|
|
31
31
|
visible: boolean;
|
|
32
32
|
zIndex: number;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { AttachmentMenuPropsType } from './props';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<AttachmentMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<AttachmentMenuPropsType> & Readonly<{}>, {
|
|
3
3
|
disabled: boolean;
|
|
4
|
+
tabs: {
|
|
5
|
+
data: ("upload" | "remote")[];
|
|
6
|
+
default: "upload" | "remote";
|
|
7
|
+
};
|
|
4
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
9
|
export default _default;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { FullScreenMenuPropsType } from './props';
|
|
2
|
+
declare const _default: import('vue').DefineComponent<FullScreenMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<FullScreenMenuPropsType> & Readonly<{}>, {
|
|
3
|
+
disabled: boolean;
|
|
4
|
+
zIndex: number;
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
6
|
+
export default _default;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export type FullScreenMenuPropsType = {
|
|
2
|
+
/**
|
|
3
|
+
* 指定需要设置全屏的dom的选择器
|
|
4
|
+
*/
|
|
5
|
+
target: string;
|
|
6
|
+
/**
|
|
7
|
+
* 全屏层级
|
|
8
|
+
*/
|
|
9
|
+
zIndex?: number;
|
|
10
|
+
/**
|
|
11
|
+
* 是否禁用
|
|
12
|
+
*/
|
|
13
|
+
disabled?: boolean;
|
|
14
|
+
/**
|
|
15
|
+
* 快捷键设置
|
|
16
|
+
*/
|
|
17
|
+
shortcut?: (e: KeyboardEvent) => boolean;
|
|
18
|
+
};
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { ImageMenuPropsType } from './props';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<ImageMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<ImageMenuPropsType> & Readonly<{}>, {
|
|
3
3
|
disabled: boolean;
|
|
4
|
+
tabs: {
|
|
5
|
+
data: ("upload" | "remote")[];
|
|
6
|
+
default: "upload" | "remote";
|
|
7
|
+
};
|
|
4
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
9
|
export default _default;
|
|
@@ -2,7 +2,7 @@ import { LineHeightMenuPropsType } from './props';
|
|
|
2
2
|
import { MenuDataType } from '../../props';
|
|
3
3
|
declare const _default: import('vue').DefineComponent<LineHeightMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LineHeightMenuPropsType> & Readonly<{}>, {
|
|
4
4
|
data: MenuDataType[];
|
|
5
|
-
disabled: boolean;
|
|
6
5
|
defaultValue: string | number;
|
|
6
|
+
disabled: boolean;
|
|
7
7
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
8
8
|
export default _default;
|
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
import { VideoMenuPropsType } from './props';
|
|
2
2
|
declare const _default: import('vue').DefineComponent<VideoMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<VideoMenuPropsType> & Readonly<{}>, {
|
|
3
3
|
disabled: boolean;
|
|
4
|
+
tabs: {
|
|
5
|
+
data: ("upload" | "remote")[];
|
|
6
|
+
default: "upload" | "remote";
|
|
7
|
+
};
|
|
4
8
|
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {}, any>;
|
|
5
9
|
export default _default;
|
|
@@ -25,12 +25,12 @@ declare function __VLS_template(): {
|
|
|
25
25
|
readonly zIndex?: number | undefined;
|
|
26
26
|
readonly delay?: number | undefined;
|
|
27
27
|
readonly disabled?: boolean | undefined;
|
|
28
|
+
readonly onHidden?: ((...args: any[]) => any) | undefined;
|
|
28
29
|
readonly onShow?: ((...args: any[]) => any) | undefined;
|
|
29
30
|
readonly onShowing?: ((...args: any[]) => any) | undefined;
|
|
30
31
|
readonly onShown?: ((...args: any[]) => any) | undefined;
|
|
31
32
|
readonly onHide?: ((...args: any[]) => any) | undefined;
|
|
32
33
|
readonly onHiding?: ((...args: any[]) => any) | undefined;
|
|
33
|
-
readonly onHidden?: ((...args: any[]) => any) | undefined;
|
|
34
34
|
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
35
35
|
$attrs: {
|
|
36
36
|
[x: string]: unknown;
|
|
@@ -44,15 +44,15 @@ declare function __VLS_template(): {
|
|
|
44
44
|
$root: import('vue').ComponentPublicInstance | null;
|
|
45
45
|
$parent: import('vue').ComponentPublicInstance | null;
|
|
46
46
|
$host: Element | null;
|
|
47
|
-
$emit: ((event: "
|
|
47
|
+
$emit: ((event: "hidden", ...args: any[]) => void) & ((event: "show", ...args: any[]) => void) & ((event: "showing", ...args: any[]) => void) & ((event: "shown", ...args: any[]) => void) & ((event: "hide", ...args: any[]) => void) & ((event: "hiding", ...args: any[]) => void);
|
|
48
48
|
$el: any;
|
|
49
49
|
$options: import('vue').ComponentOptionsBase<Readonly<import('../../core/popover').PopoverPropsType> & Readonly<{
|
|
50
|
+
onHidden?: ((...args: any[]) => any) | undefined;
|
|
50
51
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
51
52
|
onShowing?: ((...args: any[]) => any) | undefined;
|
|
52
53
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
53
54
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
54
55
|
onHiding?: ((...args: any[]) => any) | undefined;
|
|
55
|
-
onHidden?: ((...args: any[]) => any) | undefined;
|
|
56
56
|
}>, {
|
|
57
57
|
visible: import('vue').Ref<boolean, boolean>;
|
|
58
58
|
showPopover: () => void;
|
|
@@ -61,15 +61,15 @@ declare function __VLS_template(): {
|
|
|
61
61
|
update: () => Promise<void>;
|
|
62
62
|
realPlacement: import('vue').Ref<import('../../core/popover').PopoverPlacementType, import('../../core/popover').PopoverPlacementType>;
|
|
63
63
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
64
|
+
hidden: (...args: any[]) => void;
|
|
64
65
|
show: (...args: any[]) => void;
|
|
65
66
|
showing: (...args: any[]) => void;
|
|
66
67
|
shown: (...args: any[]) => void;
|
|
67
68
|
hide: (...args: any[]) => void;
|
|
68
69
|
hiding: (...args: any[]) => void;
|
|
69
|
-
hidden: (...args: any[]) => void;
|
|
70
70
|
}, string, {
|
|
71
|
-
zIndex: number;
|
|
72
71
|
disabled: boolean;
|
|
72
|
+
zIndex: number;
|
|
73
73
|
animation: "fade" | "translate" | (string & {});
|
|
74
74
|
placement: import('../../core/popover').PopoverPlacementType;
|
|
75
75
|
arrow: boolean;
|
|
@@ -96,21 +96,21 @@ declare function __VLS_template(): {
|
|
|
96
96
|
$nextTick: typeof import('vue').nextTick;
|
|
97
97
|
$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;
|
|
98
98
|
} & Readonly<{
|
|
99
|
-
zIndex: number;
|
|
100
99
|
disabled: boolean;
|
|
100
|
+
zIndex: number;
|
|
101
101
|
animation: "fade" | "translate" | (string & {});
|
|
102
102
|
placement: import('../../core/popover').PopoverPlacementType;
|
|
103
103
|
arrow: boolean;
|
|
104
104
|
trigger: "hover" | "click" | "custom";
|
|
105
105
|
delay: number;
|
|
106
106
|
}> & Omit<Readonly<import('../../core/popover').PopoverPropsType> & Readonly<{
|
|
107
|
+
onHidden?: ((...args: any[]) => any) | undefined;
|
|
107
108
|
onShow?: ((...args: any[]) => any) | undefined;
|
|
108
109
|
onShowing?: ((...args: any[]) => any) | undefined;
|
|
109
110
|
onShown?: ((...args: any[]) => any) | undefined;
|
|
110
111
|
onHide?: ((...args: any[]) => any) | undefined;
|
|
111
112
|
onHiding?: ((...args: any[]) => any) | undefined;
|
|
112
|
-
|
|
113
|
-
}>, "visible" | "popperInstance" | "showPopover" | "hidePopover" | "update" | "realPlacement" | ("zIndex" | "disabled" | "animation" | "placement" | "arrow" | "trigger" | "delay")> & import('vue').ShallowUnwrapRef<{
|
|
113
|
+
}>, "visible" | "popperInstance" | "showPopover" | "hidePopover" | "update" | "realPlacement" | ("disabled" | "zIndex" | "animation" | "placement" | "arrow" | "trigger" | "delay")> & import('vue').ShallowUnwrapRef<{
|
|
114
114
|
visible: import('vue').Ref<boolean, boolean>;
|
|
115
115
|
showPopover: () => void;
|
|
116
116
|
hidePopover: () => void;
|
|
@@ -25,6 +25,14 @@ export type WrapperPropsType = {
|
|
|
25
25
|
* bubble气泡栏参数
|
|
26
26
|
*/
|
|
27
27
|
bubbleProps?: BubblePropsType;
|
|
28
|
+
/**
|
|
29
|
+
* before插槽挂载的元素,如果不设置,则就放置在编辑器前面
|
|
30
|
+
*/
|
|
31
|
+
appendBeforeTo?: string | HTMLElement;
|
|
32
|
+
/**
|
|
33
|
+
* after插槽挂载的元素,如果不设置,则就放置在编辑器后面
|
|
34
|
+
*/
|
|
35
|
+
appendAfterTo?: string | HTMLElement;
|
|
28
36
|
/**
|
|
29
37
|
* 是否自动聚焦
|
|
30
38
|
*/
|
|
@@ -1,12 +1,18 @@
|
|
|
1
1
|
import { StateType, WrapperPropsType } from './props';
|
|
2
2
|
declare function __VLS_template(): {
|
|
3
3
|
slots: {
|
|
4
|
+
before?(_: {
|
|
5
|
+
state: StateType;
|
|
6
|
+
}): any;
|
|
4
7
|
before?(_: {
|
|
5
8
|
state: StateType;
|
|
6
9
|
}): any;
|
|
7
10
|
after?(_: {
|
|
8
11
|
state: StateType;
|
|
9
12
|
}): any;
|
|
13
|
+
after?(_: {
|
|
14
|
+
state: StateType;
|
|
15
|
+
}): any;
|
|
10
16
|
bubble?(_: {
|
|
11
17
|
state: StateType;
|
|
12
18
|
}): any;
|
|
@@ -19,17 +25,17 @@ declare const __VLS_component: import('vue').DefineComponent<WrapperPropsType, {
|
|
|
19
25
|
elRef: import('vue').Ref<HTMLElement | undefined, HTMLElement | undefined>;
|
|
20
26
|
state: import('vue').ComputedRef<StateType>;
|
|
21
27
|
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {
|
|
28
|
+
"update:modelValue": (...args: any[]) => void;
|
|
29
|
+
created: (...args: any[]) => void;
|
|
22
30
|
blur: (...args: any[]) => void;
|
|
23
31
|
focus: (...args: any[]) => void;
|
|
24
32
|
keydown: (...args: any[]) => void;
|
|
25
33
|
keyup: (...args: any[]) => void;
|
|
26
|
-
"update:modelValue": (...args: any[]) => void;
|
|
27
34
|
selectionUpdate: (...args: any[]) => void;
|
|
28
35
|
insertParagraph: (...args: any[]) => void;
|
|
29
36
|
deleteComplete: (...args: any[]) => void;
|
|
30
37
|
beforeUpdateView: (...args: any[]) => void;
|
|
31
38
|
afterUpdateView: (...args: any[]) => void;
|
|
32
|
-
created: (...args: any[]) => void;
|
|
33
39
|
bubbleShow: (...args: any[]) => void;
|
|
34
40
|
bubbleShowing: (...args: any[]) => void;
|
|
35
41
|
bubbleShown: (...args: any[]) => void;
|
|
@@ -37,17 +43,17 @@ declare const __VLS_component: import('vue').DefineComponent<WrapperPropsType, {
|
|
|
37
43
|
bubbleHiding: (...args: any[]) => void;
|
|
38
44
|
bubbleHidden: (...args: any[]) => void;
|
|
39
45
|
}, string, import('vue').PublicProps, Readonly<WrapperPropsType> & Readonly<{
|
|
46
|
+
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
47
|
+
onCreated?: ((...args: any[]) => any) | undefined;
|
|
40
48
|
onBlur?: ((...args: any[]) => any) | undefined;
|
|
41
49
|
onFocus?: ((...args: any[]) => any) | undefined;
|
|
42
50
|
onKeydown?: ((...args: any[]) => any) | undefined;
|
|
43
51
|
onKeyup?: ((...args: any[]) => any) | undefined;
|
|
44
|
-
"onUpdate:modelValue"?: ((...args: any[]) => any) | undefined;
|
|
45
52
|
onSelectionUpdate?: ((...args: any[]) => any) | undefined;
|
|
46
53
|
onInsertParagraph?: ((...args: any[]) => any) | undefined;
|
|
47
54
|
onDeleteComplete?: ((...args: any[]) => any) | undefined;
|
|
48
55
|
onBeforeUpdateView?: ((...args: any[]) => any) | undefined;
|
|
49
56
|
onAfterUpdateView?: ((...args: any[]) => any) | undefined;
|
|
50
|
-
onCreated?: ((...args: any[]) => any) | undefined;
|
|
51
57
|
onBubbleShow?: ((...args: any[]) => any) | undefined;
|
|
52
58
|
onBubbleShowing?: ((...args: any[]) => any) | undefined;
|
|
53
59
|
onBubbleShown?: ((...args: any[]) => any) | undefined;
|