You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

11 lines
390 B

import { MenuDataItem } from '../types';
export declare const getMenuMatches: (flatMenuKeys: string[] | undefined, path: string) => string | undefined;
/**
* 获取当前的选中菜单列表
* @param pathname
* @param menuData
* @returns MenuDataItem[]
*/
export declare const getMatchMenu: (pathname: string, menuData: MenuDataItem[]) => MenuDataItem[];
export default getMatchMenu;