layout.d.ts 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. // aside
  2. declare type AsideState = {
  3. menuList: RouteRecordRaw[];
  4. clientWidth: number;
  5. };
  6. // columnsAside
  7. declare type ColumnsAsideState<T = any> = {
  8. columnsAsideList: T[];
  9. liIndex: number;
  10. liOldIndex: null | number;
  11. liHoverIndex: null | number;
  12. liOldPath: null | string;
  13. difference: number;
  14. routeSplit: string[];
  15. };
  16. // navBars breadcrumb
  17. declare type BreadcrumbState<T = any> = {
  18. breadcrumbList: T[];
  19. routeSplit: string[];
  20. routeSplitFirst: string;
  21. routeSplitIndex: number;
  22. routeLinkList:any[];
  23. };
  24. // navBars search
  25. declare type SearchState<T = any> = {
  26. isShowSearch: boolean;
  27. menuQuery: string;
  28. tagsViewList: T[];
  29. };
  30. // navBars tagsView
  31. declare type TagsViewState<T = any> = {
  32. routeActive: string | T;
  33. routePath: string | unknown;
  34. dropdown: {
  35. x: string | number;
  36. y: string | number;
  37. };
  38. sortable: T;
  39. tagsRefsIndex: number;
  40. tagsViewList: T[];
  41. tagsViewRoutesList: T[];
  42. };
  43. // navBars parent
  44. declare type ParentViewState<T = any> = {
  45. refreshRouterViewKey: string;
  46. iframeRefreshKey: string;
  47. keepAliveNameList: string[];
  48. iframeList: T[];
  49. };
  50. // navBars link
  51. declare type LinkViewState = {
  52. title: string;
  53. isLink: string;
  54. };