import { Vue } from 'vue-property-decorator'; import './context-menu.less'; export declare class ContextMenu extends Vue { /** * 设置右键菜单Class * * @type {string} * @memberof ContextMenu */ contextMenuClass?: string; /** * 设置右键菜单Style * * @type {*} * @memberof ContextMenu */ contextMenuStyle?: any; /** * 右键菜单数据,在调用renderContent时会传回去。 * * @type {*} * @memberof ContextMenu */ data?: any; /** * 用于绘制右键菜单内容 * * @type {any} * @memberof ContextMenu */ renderContent?: any; /** * 菜单数据 * * @type {any[]} * @memberof ContextMenu */ menus?: any[]; /** * 是否阻止默认绘制上下文菜单 * * @type {any} * @memberof ContextMenu */ isBlocked?: any; /** * 显示右键菜单 * * @param {*} x x轴坐标 * @param {*} y y轴坐标 */ showContextMenu(x: number, y: number): void; /** * 绘制菜单 * * @param {*} position 菜单显示位置 * @param {*} mount Vue实例挂载 * @param {*} container 容器 * @returns */ renderContextMenu(position: any, mount: any, container: any, cssClass: string): void; /** * 组件挂在完毕 * * @memberof ContextMenu */ mounted(): void; /** * 菜单点击 * * @param {*} data * @memberof ContextMenu */ menuClick(item: any, data: any): void; /** * 绘制内容 * * @returns * @memberof ContextMenu */ render(): JSX.Element; } //# sourceMappingURL=context-menu.d.ts.map