UNPKG

@scvzerng/vue2-context-menu

Version:
94 lines (92 loc) 2.17 kB
import { PropType, VNode } from 'vue'; import { ContextSubMenuInstance, MenuItem, MenuOptions } from './ContextMenuDefine'; /** * Context menu component */ export type GlobalHasSlot = (name: string) => boolean; export type GlobalRenderSlot = (name: string, params: Record<string, unknown>) => VNode; declare const _default: __VLS_WithTemplateSlots<import('vue').DefineComponent<{ /** * Menu options */ options: { type: PropType<MenuOptions>; default: null; }; /** * Show menu? */ show: { type: null; default: null; }; /** * Current container, For calculation only */ container: { type: PropType<HTMLElement>; default: null; }; /** * Make sure is user set the custom container. */ isFullScreenContainer: { type: BooleanConstructor; default: boolean; }; }, { closeMenu(fromItem?: MenuItem | undefined): void; isClosed(): boolean; /** * Show menu? */ getMenuRef(): ContextSubMenuInstance | undefined; getMenuDimensions(): { width: number; height: number; }; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { closeAnimFinished: (...args: any[]) => void; close: (...args: any[]) => void; }, string, Readonly<import('vue').ExtractPropTypes<{ /** * Menu options */ options: { type: PropType<MenuOptions>; default: null; }; /** * Show menu? */ show: { type: null; default: null; }; /** * Current container, For calculation only */ container: { type: PropType<HTMLElement>; default: null; }; /** * Make sure is user set the custom container. */ isFullScreenContainer: { type: BooleanConstructor; default: boolean; }; }>>, { options: MenuOptions; show: any; container: HTMLElement; isFullScreenContainer: boolean; }>, { default?(_: {}): any; }>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $scopedSlots: S; }; };