routes.d.ts 410 B

1234567891011121314151617181920212223
  1. import { RouteRecordRaw } from 'vue-router';
  2. type OriginRoutes = Array<OriginRecordRaw>
  3. type OriginRecordRaw = {
  4. path: string,
  5. name: string,
  6. meta: {
  7. hidden: boolean,
  8. breadcrumb: boolean,
  9. title: string,
  10. sort: number
  11. },
  12. children: OriginRoutes,
  13. plop: {
  14. url: string,
  15. type: 'single' | 'multi' | 'tab' | 'index',
  16. filePath: string
  17. }
  18. }
  19. type TargetRoutes = RouteRecordRaw[]