UNPKG

@scvzerng/vue2-context-menu

Version:
57 lines (55 loc) 1.45 kB
import { PropType, VNode } from 'vue'; import { MenuOptions } from './ContextMenuDefine'; 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: BooleanConstructor; default: boolean; }; }, { closeMenu: () => void; isClosed: () => boolean; getMenuRef: () => import('./ContextMenuDefine').ContextSubMenuInstance | undefined; getMenuDimensions: () => { width: number; height: number; }; }, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, { close: (...args: any[]) => void; "update:show": (...args: any[]) => void; }, string, Readonly<import('vue').ExtractPropTypes<{ /** * Menu options */ options: { type: PropType<MenuOptions>; default: null; }; /** * Show menu? */ show: { type: BooleanConstructor; default: boolean; }; }>>, { options: MenuOptions; show: boolean; }>, Partial<Record<number, (_: any) => any>>>; export default _default; type __VLS_WithTemplateSlots<T, S> = T & { new (): { $scopedSlots: S; }; };