import { BeforeJump, JumpMethod, Menu, MenuItem } from '../types'; import type { Router } from 'vue-router'; export declare function badgeConfig(item: MenuItem): any; export declare function internalJump(jumpMethod: JumpMethod, menuData: Menu, router: Router): JumpMethod; export declare function defaultJump(params: MenuItem, router: Router): void; export declare function nextHandler(next: JumpMethod): (params: any) => void; type Params = { to: MenuItem; from: MenuItem; beforeJump: BeforeJump; jumpMethod: JumpMethod; menuData: Menu; router: Router; }; /** * 点击子菜单跳转的处理 * 1. 如果有 beforeJump 钩子函数,执行钩子函数,否则执行默认跳转 * 2. 如果 beforeJump 钩子函数中执行了 next(false),则不跳转 * 3. 如果 beforeJump 钩子函数中执行了 next({ name: 'xxx' }),则跳转到指定路由 * 4. 如果 beforeJump 钩子函数中执行了 next(),则执行默认跳转 * 5. next 方法根据 jumpMethod 参数决定是否执行默认跳转 */ export declare function jumpHandler({ to, from, beforeJump, jumpMethod, menuData, router }: Params): void; export {};