layout.d.ts 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  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. };
  23. // navBars search
  24. declare type SearchState<T = any> = {
  25. isShowSearch: boolean;
  26. menuQuery: string;
  27. tagsViewList: T[];
  28. };
  29. // navBars tagsView
  30. declare type TagsViewState<T = any> = {
  31. routeActive: string | T;
  32. routePath: string | unknown;
  33. dropdown: {
  34. x: string | number;
  35. y: string | number;
  36. };
  37. sortable: T;
  38. tagsRefsIndex: number;
  39. tagsViewList: T[];
  40. tagsViewRoutesList: T[];
  41. };
  42. // navBars parent
  43. declare type ParentViewState<T = any> = {
  44. refreshRouterViewKey: string;
  45. iframeRefreshKey: string;
  46. keepAliveNameList: string[];
  47. iframeList: T[];
  48. };
  49. // navBars link
  50. declare type LinkViewState = {
  51. title: string;
  52. isLink: string;
  53. };