@kaitify/vue 0.0.4-beta.2 → 0.0.4-beta.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/lib/core/button/button.vue.d.ts +3 -2
- package/lib/core/checkbox/checkbox.vue.d.ts +1 -1
- package/lib/core/divider/divider.vue.d.ts +1 -1
- package/lib/core/popover/popover.vue.d.ts +13 -457
- package/lib/core/tabs/tabs.vue.d.ts +3 -2
- package/lib/editor/bubble/bubble.vue.d.ts +9 -457
- package/lib/editor/bubble/props.d.ts +0 -4
- package/lib/editor/menu/built-in/align-center/align-center.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/align-justify/align-justify.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/align-left/align-left.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/align-right/align-right.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/attachment/attachment.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/back-color/back-color.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/blockquote/blockquote.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/bold/bold.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/clear-format/clear-format.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/code/code.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/code-block/code-block-languages.vue.d.ts +235 -1
- package/lib/editor/menu/built-in/code-block/code-block.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/color/color.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/decrease-indent/decrease-indent.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/emoji/emoji.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/font-family/font-family.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/font-size/font-size.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/full-screen/full-screen.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/heading/heading.vue.d.ts +235 -1
- package/lib/editor/menu/built-in/horizontal/horizontal.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/image/image.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/increase-indent/increase-indent.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/italic/italic.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/line-height/line-height.vue.d.ts +234 -2
- package/lib/editor/menu/built-in/line-height/props.d.ts +0 -4
- package/lib/editor/menu/built-in/link/link-unset.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/link/link.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/math/math.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/ordered-list/ordered-list.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/redo/redo.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/strikethrough/strikethrough.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/subscript/subscript.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/superscript/superscript.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/table/table-add-column.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/table/table-add-row.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/table/table-delete-column.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/table/table-delete-row.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/table/table-merge-cell.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/table/table-unset.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/table/table.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/task/task.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/underline/underline.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/undo/undo.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/unordered-list/unordered-list.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/video/video-controls.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/video/video-loop.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/video/video-muted.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/video/video.vue.d.ts +234 -1
- package/lib/editor/menu/built-in/wrap-down/wrap-down.vue.d.ts +1 -1
- package/lib/editor/menu/built-in/wrap-up/wrap-up.vue.d.ts +1 -1
- package/lib/editor/menu/menu.vue.d.ts +137 -915
- package/lib/editor/wrapper/props.d.ts +31 -56
- package/lib/editor/wrapper/wrapper.vue.d.ts +39 -14
- package/lib/index.d.ts +1 -0
- package/lib/kaitify-vue.es.js +639 -576
- package/lib/kaitify-vue.umd.js +2 -2
- package/lib/locale/en-us.d.ts +1 -0
- package/lib/locale/ja-jp.d.ts +1 -0
- package/lib/locale/ko-kr.d.ts +1 -0
- package/package.json +7 -8
|
@@ -1,5 +1,238 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import { LinkMenuPropsType } from './props';
|
|
2
3
|
declare const _default: import('vue').DefineComponent<LinkMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<LinkMenuPropsType> & Readonly<{}>, {
|
|
3
4
|
disabled: boolean;
|
|
4
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
|
+
menuRef: ({
|
|
7
|
+
$: import('vue').ComponentInternalInstance;
|
|
8
|
+
$data: {};
|
|
9
|
+
$props: {
|
|
10
|
+
readonly disabled?: boolean | undefined;
|
|
11
|
+
readonly active?: boolean | undefined;
|
|
12
|
+
readonly itemDisabled?: ((item: import('../..').MenuDataType) => boolean) | undefined;
|
|
13
|
+
readonly itemActive?: ((item: import('../..').MenuDataType) => boolean) | undefined;
|
|
14
|
+
readonly popover?: boolean | undefined;
|
|
15
|
+
readonly popoverProps?: Omit<import('../../../../core/popover').PopoverPropsType, "disabled" | "delay"> | undefined;
|
|
16
|
+
readonly data?: import('../..').MenuDataType[] | undefined;
|
|
17
|
+
readonly shortcut?: ((e: KeyboardEvent) => boolean) | {
|
|
18
|
+
[key: import('../..').MenuDataType["value"]]: (e: KeyboardEvent) => boolean;
|
|
19
|
+
} | undefined;
|
|
20
|
+
readonly onSelect?: ((value: import('../..').MenuDataType) => any) | undefined;
|
|
21
|
+
readonly onOperate?: (() => any) | undefined;
|
|
22
|
+
readonly onPopoverShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
23
|
+
readonly onPopoverShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
24
|
+
readonly onPopoverShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
25
|
+
readonly onPopoverHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
26
|
+
readonly onPopoverHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
27
|
+
readonly onPopoverHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
28
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
29
|
+
$attrs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
$refs: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
} & {
|
|
35
|
+
popoverRef: ({
|
|
36
|
+
$: import('vue').ComponentInternalInstance;
|
|
37
|
+
$data: {};
|
|
38
|
+
$props: {
|
|
39
|
+
readonly width?: string | number | undefined;
|
|
40
|
+
readonly minWidth?: string | number | undefined;
|
|
41
|
+
readonly maxHeight?: string | number | undefined;
|
|
42
|
+
readonly placement?: import('../../../../core/popover').PopoverPlacementType | undefined;
|
|
43
|
+
readonly arrow?: boolean | undefined;
|
|
44
|
+
readonly trigger?: "hover" | "click" | "custom" | undefined;
|
|
45
|
+
readonly animation?: "fade" | "translate" | (string & {}) | undefined;
|
|
46
|
+
readonly zIndex?: number | undefined;
|
|
47
|
+
readonly delay?: number | undefined;
|
|
48
|
+
readonly disabled?: boolean | undefined;
|
|
49
|
+
readonly onHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
50
|
+
readonly onHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
51
|
+
readonly onShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
52
|
+
readonly onShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
53
|
+
readonly onShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
54
|
+
readonly onHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
55
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
56
|
+
$attrs: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
$refs: {
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
} & {
|
|
62
|
+
referRef: HTMLDivElement;
|
|
63
|
+
popoverRef: HTMLDivElement;
|
|
64
|
+
arrowRef: HTMLDivElement;
|
|
65
|
+
};
|
|
66
|
+
$slots: Readonly<{
|
|
67
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
70
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
71
|
+
$host: Element | null;
|
|
72
|
+
$emit: ((event: "hidden", value: HTMLDivElement) => void) & ((event: "hide", value: HTMLDivElement) => void) & ((event: "show", value: HTMLDivElement) => void) & ((event: "showing", value: HTMLDivElement) => void) & ((event: "shown", value: HTMLDivElement) => void) & ((event: "hiding", value: HTMLDivElement) => void);
|
|
73
|
+
$el: any;
|
|
74
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../../core/popover').PopoverPropsType> & Readonly<{
|
|
75
|
+
onHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
76
|
+
onHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
77
|
+
onShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
78
|
+
onShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
79
|
+
onShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
80
|
+
onHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
visible: Ref<boolean, boolean>;
|
|
83
|
+
showPopover: () => void;
|
|
84
|
+
hidePopover: () => void;
|
|
85
|
+
popperInstance: Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
|
|
86
|
+
update: () => Promise<void>;
|
|
87
|
+
realPlacement: Ref<import('../../../../core/popover').PopoverPlacementType, import('../../../../core/popover').PopoverPlacementType>;
|
|
88
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
89
|
+
hidden: (value: HTMLDivElement) => any;
|
|
90
|
+
hide: (value: HTMLDivElement) => any;
|
|
91
|
+
show: (value: HTMLDivElement) => any;
|
|
92
|
+
showing: (value: HTMLDivElement) => any;
|
|
93
|
+
shown: (value: HTMLDivElement) => any;
|
|
94
|
+
hiding: (value: HTMLDivElement) => any;
|
|
95
|
+
}, string, {
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
zIndex: number;
|
|
98
|
+
animation: "fade" | "translate" | (string & {});
|
|
99
|
+
placement: import('../../../../core/popover').PopoverPlacementType;
|
|
100
|
+
arrow: boolean;
|
|
101
|
+
trigger: "hover" | "click" | "custom";
|
|
102
|
+
delay: number;
|
|
103
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
104
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
105
|
+
created?: (() => void) | (() => void)[];
|
|
106
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
107
|
+
mounted?: (() => void) | (() => void)[];
|
|
108
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
109
|
+
updated?: (() => void) | (() => void)[];
|
|
110
|
+
activated?: (() => void) | (() => void)[];
|
|
111
|
+
deactivated?: (() => void) | (() => void)[];
|
|
112
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
113
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
114
|
+
destroyed?: (() => void) | (() => void)[];
|
|
115
|
+
unmounted?: (() => void) | (() => void)[];
|
|
116
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
117
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
118
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
119
|
+
};
|
|
120
|
+
$forceUpdate: () => void;
|
|
121
|
+
$nextTick: typeof import('vue').nextTick;
|
|
122
|
+
$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;
|
|
123
|
+
} & Readonly<{
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
zIndex: number;
|
|
126
|
+
animation: "fade" | "translate" | (string & {});
|
|
127
|
+
placement: import('../../../../core/popover').PopoverPlacementType;
|
|
128
|
+
arrow: boolean;
|
|
129
|
+
trigger: "hover" | "click" | "custom";
|
|
130
|
+
delay: number;
|
|
131
|
+
}> & Omit<Readonly<import('../../../../core/popover').PopoverPropsType> & Readonly<{
|
|
132
|
+
onHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
133
|
+
onHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
134
|
+
onShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
135
|
+
onShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
136
|
+
onShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
137
|
+
onHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
138
|
+
}>, "visible" | "popperInstance" | "showPopover" | "hidePopover" | "update" | "realPlacement" | ("disabled" | "zIndex" | "animation" | "placement" | "arrow" | "trigger" | "delay")> & import('vue').ShallowUnwrapRef<{
|
|
139
|
+
visible: Ref<boolean, boolean>;
|
|
140
|
+
showPopover: () => void;
|
|
141
|
+
hidePopover: () => void;
|
|
142
|
+
popperInstance: Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
|
|
143
|
+
update: () => Promise<void>;
|
|
144
|
+
realPlacement: Ref<import('../../../../core/popover').PopoverPlacementType, import('../../../../core/popover').PopoverPlacementType>;
|
|
145
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
146
|
+
$slots: {
|
|
147
|
+
refer?(_: {}): any;
|
|
148
|
+
default?(_: {}): any;
|
|
149
|
+
};
|
|
150
|
+
}) | null;
|
|
151
|
+
};
|
|
152
|
+
$slots: Readonly<{
|
|
153
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
156
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
157
|
+
$host: Element | null;
|
|
158
|
+
$emit: ((event: "select", value: import('../..').MenuDataType) => void) & ((event: "operate") => void) & ((event: "popoverShow", value: HTMLDivElement) => void) & ((event: "popoverShowing", value: HTMLDivElement) => void) & ((event: "popoverShown", value: HTMLDivElement) => void) & ((event: "popoverHide", value: HTMLDivElement) => void) & ((event: "popoverHiding", value: HTMLDivElement) => void) & ((event: "popoverHidden", value: HTMLDivElement) => void);
|
|
159
|
+
$el: HTMLDivElement;
|
|
160
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../..').MenuPropsType> & Readonly<{
|
|
161
|
+
onSelect?: ((value: import('../..').MenuDataType) => any) | undefined;
|
|
162
|
+
onOperate?: (() => any) | undefined;
|
|
163
|
+
onPopoverShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
164
|
+
onPopoverShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
165
|
+
onPopoverShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
166
|
+
onPopoverHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
167
|
+
onPopoverHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
168
|
+
onPopoverHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
169
|
+
}>, {
|
|
170
|
+
showPopover: () => void;
|
|
171
|
+
hidePopover: () => void;
|
|
172
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
173
|
+
select: (value: import('../..').MenuDataType) => any;
|
|
174
|
+
operate: () => any;
|
|
175
|
+
popoverShow: (value: HTMLDivElement) => any;
|
|
176
|
+
popoverShowing: (value: HTMLDivElement) => any;
|
|
177
|
+
popoverShown: (value: HTMLDivElement) => any;
|
|
178
|
+
popoverHide: (value: HTMLDivElement) => any;
|
|
179
|
+
popoverHiding: (value: HTMLDivElement) => any;
|
|
180
|
+
popoverHidden: (value: HTMLDivElement) => any;
|
|
181
|
+
}, string, {
|
|
182
|
+
data: import('../..').MenuDataType[];
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
active: boolean;
|
|
185
|
+
popover: boolean;
|
|
186
|
+
popoverProps: Omit<import('../../../../core/popover').PopoverPropsType, "disabled" | "delay">;
|
|
187
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
188
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
189
|
+
created?: (() => void) | (() => void)[];
|
|
190
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
191
|
+
mounted?: (() => void) | (() => void)[];
|
|
192
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
193
|
+
updated?: (() => void) | (() => void)[];
|
|
194
|
+
activated?: (() => void) | (() => void)[];
|
|
195
|
+
deactivated?: (() => void) | (() => void)[];
|
|
196
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
197
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
198
|
+
destroyed?: (() => void) | (() => void)[];
|
|
199
|
+
unmounted?: (() => void) | (() => void)[];
|
|
200
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
201
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
202
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
203
|
+
};
|
|
204
|
+
$forceUpdate: () => void;
|
|
205
|
+
$nextTick: typeof import('vue').nextTick;
|
|
206
|
+
$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;
|
|
207
|
+
} & Readonly<{
|
|
208
|
+
data: import('../..').MenuDataType[];
|
|
209
|
+
disabled: boolean;
|
|
210
|
+
active: boolean;
|
|
211
|
+
popover: boolean;
|
|
212
|
+
popoverProps: Omit<import('../../../../core/popover').PopoverPropsType, "disabled" | "delay">;
|
|
213
|
+
}> & Omit<Readonly<import('../..').MenuPropsType> & Readonly<{
|
|
214
|
+
onSelect?: ((value: import('../..').MenuDataType) => any) | undefined;
|
|
215
|
+
onOperate?: (() => any) | undefined;
|
|
216
|
+
onPopoverShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
217
|
+
onPopoverShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
218
|
+
onPopoverShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
219
|
+
onPopoverHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
220
|
+
onPopoverHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
221
|
+
onPopoverHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
222
|
+
}>, "showPopover" | "hidePopover" | ("data" | "disabled" | "active" | "popover" | "popoverProps")> & import('vue').ShallowUnwrapRef<{
|
|
223
|
+
showPopover: () => void;
|
|
224
|
+
hidePopover: () => void;
|
|
225
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
226
|
+
$slots: {
|
|
227
|
+
default?(_: {}): any;
|
|
228
|
+
popover?(_: {}): any;
|
|
229
|
+
icon?(_: {
|
|
230
|
+
option: import('../..').MenuDataType;
|
|
231
|
+
}): any;
|
|
232
|
+
label?(_: {
|
|
233
|
+
option: import('../..').MenuDataType;
|
|
234
|
+
}): any;
|
|
235
|
+
};
|
|
236
|
+
}) | null;
|
|
237
|
+
}, HTMLDivElement>;
|
|
5
238
|
export default _default;
|
|
@@ -1,5 +1,238 @@
|
|
|
1
|
+
import { Ref } from 'vue';
|
|
1
2
|
import { MathMenuPropsType } from './props';
|
|
2
3
|
declare const _default: import('vue').DefineComponent<MathMenuPropsType, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<MathMenuPropsType> & Readonly<{}>, {
|
|
3
4
|
disabled: boolean;
|
|
4
|
-
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
5
|
+
}, {}, {}, {}, string, import('vue').ComponentProvideOptions, false, {
|
|
6
|
+
menuRef: ({
|
|
7
|
+
$: import('vue').ComponentInternalInstance;
|
|
8
|
+
$data: {};
|
|
9
|
+
$props: {
|
|
10
|
+
readonly disabled?: boolean | undefined;
|
|
11
|
+
readonly active?: boolean | undefined;
|
|
12
|
+
readonly itemDisabled?: ((item: import('../..').MenuDataType) => boolean) | undefined;
|
|
13
|
+
readonly itemActive?: ((item: import('../..').MenuDataType) => boolean) | undefined;
|
|
14
|
+
readonly popover?: boolean | undefined;
|
|
15
|
+
readonly popoverProps?: Omit<import('../../../../core/popover').PopoverPropsType, "disabled" | "delay"> | undefined;
|
|
16
|
+
readonly data?: import('../..').MenuDataType[] | undefined;
|
|
17
|
+
readonly shortcut?: ((e: KeyboardEvent) => boolean) | {
|
|
18
|
+
[key: import('../..').MenuDataType["value"]]: (e: KeyboardEvent) => boolean;
|
|
19
|
+
} | undefined;
|
|
20
|
+
readonly onSelect?: ((value: import('../..').MenuDataType) => any) | undefined;
|
|
21
|
+
readonly onOperate?: (() => any) | undefined;
|
|
22
|
+
readonly onPopoverShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
23
|
+
readonly onPopoverShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
24
|
+
readonly onPopoverShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
25
|
+
readonly onPopoverHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
26
|
+
readonly onPopoverHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
27
|
+
readonly onPopoverHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
28
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
29
|
+
$attrs: {
|
|
30
|
+
[x: string]: unknown;
|
|
31
|
+
};
|
|
32
|
+
$refs: {
|
|
33
|
+
[x: string]: unknown;
|
|
34
|
+
} & {
|
|
35
|
+
popoverRef: ({
|
|
36
|
+
$: import('vue').ComponentInternalInstance;
|
|
37
|
+
$data: {};
|
|
38
|
+
$props: {
|
|
39
|
+
readonly width?: string | number | undefined;
|
|
40
|
+
readonly minWidth?: string | number | undefined;
|
|
41
|
+
readonly maxHeight?: string | number | undefined;
|
|
42
|
+
readonly placement?: import('../../../../core/popover').PopoverPlacementType | undefined;
|
|
43
|
+
readonly arrow?: boolean | undefined;
|
|
44
|
+
readonly trigger?: "hover" | "click" | "custom" | undefined;
|
|
45
|
+
readonly animation?: "fade" | "translate" | (string & {}) | undefined;
|
|
46
|
+
readonly zIndex?: number | undefined;
|
|
47
|
+
readonly delay?: number | undefined;
|
|
48
|
+
readonly disabled?: boolean | undefined;
|
|
49
|
+
readonly onHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
50
|
+
readonly onHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
51
|
+
readonly onShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
52
|
+
readonly onShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
53
|
+
readonly onShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
54
|
+
readonly onHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
55
|
+
} & import('vue').VNodeProps & import('vue').AllowedComponentProps & import('vue').ComponentCustomProps;
|
|
56
|
+
$attrs: {
|
|
57
|
+
[x: string]: unknown;
|
|
58
|
+
};
|
|
59
|
+
$refs: {
|
|
60
|
+
[x: string]: unknown;
|
|
61
|
+
} & {
|
|
62
|
+
referRef: HTMLDivElement;
|
|
63
|
+
popoverRef: HTMLDivElement;
|
|
64
|
+
arrowRef: HTMLDivElement;
|
|
65
|
+
};
|
|
66
|
+
$slots: Readonly<{
|
|
67
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
68
|
+
}>;
|
|
69
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
70
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
71
|
+
$host: Element | null;
|
|
72
|
+
$emit: ((event: "hidden", value: HTMLDivElement) => void) & ((event: "hide", value: HTMLDivElement) => void) & ((event: "show", value: HTMLDivElement) => void) & ((event: "showing", value: HTMLDivElement) => void) & ((event: "shown", value: HTMLDivElement) => void) & ((event: "hiding", value: HTMLDivElement) => void);
|
|
73
|
+
$el: any;
|
|
74
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../../../../core/popover').PopoverPropsType> & Readonly<{
|
|
75
|
+
onHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
76
|
+
onHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
77
|
+
onShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
78
|
+
onShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
79
|
+
onShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
80
|
+
onHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
81
|
+
}>, {
|
|
82
|
+
visible: Ref<boolean, boolean>;
|
|
83
|
+
showPopover: () => void;
|
|
84
|
+
hidePopover: () => void;
|
|
85
|
+
popperInstance: Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
|
|
86
|
+
update: () => Promise<void>;
|
|
87
|
+
realPlacement: Ref<import('../../../../core/popover').PopoverPlacementType, import('../../../../core/popover').PopoverPlacementType>;
|
|
88
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
89
|
+
hidden: (value: HTMLDivElement) => any;
|
|
90
|
+
hide: (value: HTMLDivElement) => any;
|
|
91
|
+
show: (value: HTMLDivElement) => any;
|
|
92
|
+
showing: (value: HTMLDivElement) => any;
|
|
93
|
+
shown: (value: HTMLDivElement) => any;
|
|
94
|
+
hiding: (value: HTMLDivElement) => any;
|
|
95
|
+
}, string, {
|
|
96
|
+
disabled: boolean;
|
|
97
|
+
zIndex: number;
|
|
98
|
+
animation: "fade" | "translate" | (string & {});
|
|
99
|
+
placement: import('../../../../core/popover').PopoverPlacementType;
|
|
100
|
+
arrow: boolean;
|
|
101
|
+
trigger: "hover" | "click" | "custom";
|
|
102
|
+
delay: number;
|
|
103
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
104
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
105
|
+
created?: (() => void) | (() => void)[];
|
|
106
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
107
|
+
mounted?: (() => void) | (() => void)[];
|
|
108
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
109
|
+
updated?: (() => void) | (() => void)[];
|
|
110
|
+
activated?: (() => void) | (() => void)[];
|
|
111
|
+
deactivated?: (() => void) | (() => void)[];
|
|
112
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
113
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
114
|
+
destroyed?: (() => void) | (() => void)[];
|
|
115
|
+
unmounted?: (() => void) | (() => void)[];
|
|
116
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
117
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
118
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
119
|
+
};
|
|
120
|
+
$forceUpdate: () => void;
|
|
121
|
+
$nextTick: typeof import('vue').nextTick;
|
|
122
|
+
$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;
|
|
123
|
+
} & Readonly<{
|
|
124
|
+
disabled: boolean;
|
|
125
|
+
zIndex: number;
|
|
126
|
+
animation: "fade" | "translate" | (string & {});
|
|
127
|
+
placement: import('../../../../core/popover').PopoverPlacementType;
|
|
128
|
+
arrow: boolean;
|
|
129
|
+
trigger: "hover" | "click" | "custom";
|
|
130
|
+
delay: number;
|
|
131
|
+
}> & Omit<Readonly<import('../../../../core/popover').PopoverPropsType> & Readonly<{
|
|
132
|
+
onHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
133
|
+
onHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
134
|
+
onShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
135
|
+
onShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
136
|
+
onShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
137
|
+
onHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
138
|
+
}>, "visible" | "popperInstance" | "showPopover" | "hidePopover" | "update" | "realPlacement" | ("disabled" | "zIndex" | "animation" | "placement" | "arrow" | "trigger" | "delay")> & import('vue').ShallowUnwrapRef<{
|
|
139
|
+
visible: Ref<boolean, boolean>;
|
|
140
|
+
showPopover: () => void;
|
|
141
|
+
hidePopover: () => void;
|
|
142
|
+
popperInstance: Ref<import('@popperjs/core').Instance | undefined, import('@popperjs/core').Instance | undefined>;
|
|
143
|
+
update: () => Promise<void>;
|
|
144
|
+
realPlacement: Ref<import('../../../../core/popover').PopoverPlacementType, import('../../../../core/popover').PopoverPlacementType>;
|
|
145
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
146
|
+
$slots: {
|
|
147
|
+
refer?(_: {}): any;
|
|
148
|
+
default?(_: {}): any;
|
|
149
|
+
};
|
|
150
|
+
}) | null;
|
|
151
|
+
};
|
|
152
|
+
$slots: Readonly<{
|
|
153
|
+
[name: string]: import('vue').Slot<any> | undefined;
|
|
154
|
+
}>;
|
|
155
|
+
$root: import('vue').ComponentPublicInstance | null;
|
|
156
|
+
$parent: import('vue').ComponentPublicInstance | null;
|
|
157
|
+
$host: Element | null;
|
|
158
|
+
$emit: ((event: "select", value: import('../..').MenuDataType) => void) & ((event: "operate") => void) & ((event: "popoverShow", value: HTMLDivElement) => void) & ((event: "popoverShowing", value: HTMLDivElement) => void) & ((event: "popoverShown", value: HTMLDivElement) => void) & ((event: "popoverHide", value: HTMLDivElement) => void) & ((event: "popoverHiding", value: HTMLDivElement) => void) & ((event: "popoverHidden", value: HTMLDivElement) => void);
|
|
159
|
+
$el: HTMLDivElement;
|
|
160
|
+
$options: import('vue').ComponentOptionsBase<Readonly<import('../..').MenuPropsType> & Readonly<{
|
|
161
|
+
onSelect?: ((value: import('../..').MenuDataType) => any) | undefined;
|
|
162
|
+
onOperate?: (() => any) | undefined;
|
|
163
|
+
onPopoverShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
164
|
+
onPopoverShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
165
|
+
onPopoverShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
166
|
+
onPopoverHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
167
|
+
onPopoverHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
168
|
+
onPopoverHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
169
|
+
}>, {
|
|
170
|
+
showPopover: () => void;
|
|
171
|
+
hidePopover: () => void;
|
|
172
|
+
}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {} & {
|
|
173
|
+
select: (value: import('../..').MenuDataType) => any;
|
|
174
|
+
operate: () => any;
|
|
175
|
+
popoverShow: (value: HTMLDivElement) => any;
|
|
176
|
+
popoverShowing: (value: HTMLDivElement) => any;
|
|
177
|
+
popoverShown: (value: HTMLDivElement) => any;
|
|
178
|
+
popoverHide: (value: HTMLDivElement) => any;
|
|
179
|
+
popoverHiding: (value: HTMLDivElement) => any;
|
|
180
|
+
popoverHidden: (value: HTMLDivElement) => any;
|
|
181
|
+
}, string, {
|
|
182
|
+
data: import('../..').MenuDataType[];
|
|
183
|
+
disabled: boolean;
|
|
184
|
+
active: boolean;
|
|
185
|
+
popover: boolean;
|
|
186
|
+
popoverProps: Omit<import('../../../../core/popover').PopoverPropsType, "disabled" | "delay">;
|
|
187
|
+
}, {}, string, {}, import('vue').GlobalComponents, import('vue').GlobalDirectives, string, import('vue').ComponentProvideOptions> & {
|
|
188
|
+
beforeCreate?: (() => void) | (() => void)[];
|
|
189
|
+
created?: (() => void) | (() => void)[];
|
|
190
|
+
beforeMount?: (() => void) | (() => void)[];
|
|
191
|
+
mounted?: (() => void) | (() => void)[];
|
|
192
|
+
beforeUpdate?: (() => void) | (() => void)[];
|
|
193
|
+
updated?: (() => void) | (() => void)[];
|
|
194
|
+
activated?: (() => void) | (() => void)[];
|
|
195
|
+
deactivated?: (() => void) | (() => void)[];
|
|
196
|
+
beforeDestroy?: (() => void) | (() => void)[];
|
|
197
|
+
beforeUnmount?: (() => void) | (() => void)[];
|
|
198
|
+
destroyed?: (() => void) | (() => void)[];
|
|
199
|
+
unmounted?: (() => void) | (() => void)[];
|
|
200
|
+
renderTracked?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
201
|
+
renderTriggered?: ((e: import('vue').DebuggerEvent) => void) | ((e: import('vue').DebuggerEvent) => void)[];
|
|
202
|
+
errorCaptured?: ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void) | ((err: unknown, instance: import('vue').ComponentPublicInstance | null, info: string) => boolean | void)[];
|
|
203
|
+
};
|
|
204
|
+
$forceUpdate: () => void;
|
|
205
|
+
$nextTick: typeof import('vue').nextTick;
|
|
206
|
+
$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;
|
|
207
|
+
} & Readonly<{
|
|
208
|
+
data: import('../..').MenuDataType[];
|
|
209
|
+
disabled: boolean;
|
|
210
|
+
active: boolean;
|
|
211
|
+
popover: boolean;
|
|
212
|
+
popoverProps: Omit<import('../../../../core/popover').PopoverPropsType, "disabled" | "delay">;
|
|
213
|
+
}> & Omit<Readonly<import('../..').MenuPropsType> & Readonly<{
|
|
214
|
+
onSelect?: ((value: import('../..').MenuDataType) => any) | undefined;
|
|
215
|
+
onOperate?: (() => any) | undefined;
|
|
216
|
+
onPopoverShow?: ((value: HTMLDivElement) => any) | undefined;
|
|
217
|
+
onPopoverShowing?: ((value: HTMLDivElement) => any) | undefined;
|
|
218
|
+
onPopoverShown?: ((value: HTMLDivElement) => any) | undefined;
|
|
219
|
+
onPopoverHide?: ((value: HTMLDivElement) => any) | undefined;
|
|
220
|
+
onPopoverHiding?: ((value: HTMLDivElement) => any) | undefined;
|
|
221
|
+
onPopoverHidden?: ((value: HTMLDivElement) => any) | undefined;
|
|
222
|
+
}>, "showPopover" | "hidePopover" | ("data" | "disabled" | "active" | "popover" | "popoverProps")> & import('vue').ShallowUnwrapRef<{
|
|
223
|
+
showPopover: () => void;
|
|
224
|
+
hidePopover: () => void;
|
|
225
|
+
}> & {} & import('vue').ComponentCustomProperties & {} & {
|
|
226
|
+
$slots: {
|
|
227
|
+
default?(_: {}): any;
|
|
228
|
+
popover?(_: {}): any;
|
|
229
|
+
icon?(_: {
|
|
230
|
+
option: import('../..').MenuDataType;
|
|
231
|
+
}): any;
|
|
232
|
+
label?(_: {
|
|
233
|
+
option: import('../..').MenuDataType;
|
|
234
|
+
}): any;
|
|
235
|
+
};
|
|
236
|
+
}) | null;
|
|
237
|
+
}, HTMLDivElement>;
|
|
5
238
|
export default _default;
|