config.d.ts 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. export interface ProjectSettingState {
  2. //导航模式
  3. navMode: string;
  4. //导航风格
  5. navTheme: string;
  6. //顶部设置
  7. headerSetting: object;
  8. //页脚
  9. showFooter: boolean;
  10. //菜单设置
  11. menuSetting: object;
  12. //多标签
  13. multiTabsSetting: object;
  14. //面包屑
  15. crumbsSetting: object;
  16. //权限模式
  17. permissionMode: string;
  18. }
  19. export interface IbodySetting {
  20. fixed: boolean;
  21. }
  22. export interface IheaderSetting {
  23. bgColor: string;
  24. fixed: boolean;
  25. isReload: boolean;
  26. }
  27. export interface ImenuSetting {
  28. minMenuWidth: number;
  29. menuWidth: number;
  30. fixed: boolean;
  31. mixMenu: boolean;
  32. collapsed: boolean;
  33. mobileWidth: number;
  34. }
  35. export interface IcrumbsSetting {
  36. show: boolean;
  37. showIcon: boolean;
  38. }
  39. export interface ImultiTabsSetting {
  40. bgColor: string;
  41. fixed: boolean;
  42. show: boolean;
  43. }
  44. export interface GlobConfig {
  45. title: string;
  46. apiUrl: string;
  47. shortName: string;
  48. urlPrefix?: string;
  49. uploadUrl?: string;
  50. prodMock: boolean;
  51. imgUrl?: string;
  52. }
  53. export interface GlobEnvConfig {
  54. // 标题
  55. VITE_GLOB_APP_TITLE: string;
  56. // 接口地址
  57. VITE_GLOB_API_URL: string;
  58. // 接口前缀
  59. VITE_GLOB_API_URL_PREFIX?: string;
  60. // Project abbreviation
  61. VITE_GLOB_APP_SHORT_NAME: string;
  62. // 图片上传地址
  63. VITE_GLOB_UPLOAD_URL?: string;
  64. //图片前缀地址
  65. VITE_GLOB_IMG_URL?: string;
  66. //生产环境开启mock
  67. VITE_GLOB_PROD_MOCK: boolean;
  68. }