diff --git a/packages/fes-plugin-layout/types.d.ts b/packages/fes-plugin-layout/types.d.ts index 880878b5..cefee502 100644 --- a/packages/fes-plugin-layout/types.d.ts +++ b/packages/fes-plugin-layout/types.d.ts @@ -1,5 +1,6 @@ import { Component, VNode, Ref } from 'vue'; -import { Router, RouteLocationNormalized, NavigationGuardNext, NavigationGuardReturn, NavigationGuard } from 'vue-router'; +import { Router, RouteLocationNormalized, NavigationGuardNext, NavigationGuard } from 'vue-router'; +import { MenuOption } from '@fesjs/fes-design/es/menu/interface'; interface CustomNavigationGuardOption { router: Router; @@ -9,15 +10,15 @@ interface CustomNavigationGuardOption { } interface CustomNavigationGuard { - (option: CustomNavigationGuardOption): NavigationGuardReturn | Promise; + (option: CustomNavigationGuardOption): ReturnType; } interface Menu { - name: string; - path: string; - match: string[]; - title: string; - icon: string | Component; + name?: string; + path?: string; + match?: string[]; + title?: MenuOption['label']; + icon?: string | Component; children?: Menu[]; }