router-icons.ts 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. import { renderIcon, renderImg } from '@/utils/index';
  2. import HandleFeedback from '@/assets/icons/handleFeedback.png';
  3. import Handle from '@/assets/icons/handle.png';
  4. import {
  5. DashboardOutlined,
  6. ExclamationCircleOutlined,
  7. ProfileOutlined,
  8. CheckCircleOutlined,
  9. SettingOutlined,
  10. ControlOutlined,
  11. ProjectOutlined,
  12. WalletOutlined,
  13. TableOutlined,
  14. SafetyOutlined,
  15. BellOutlined,
  16. BookOutlined,
  17. ToolOutlined,
  18. PictureOutlined,
  19. CameraOutlined,
  20. ApartmentOutlined,
  21. UserOutlined,
  22. FunctionOutlined,
  23. SendOutlined,
  24. LineChartOutlined,
  25. } from '@vicons/antd';
  26. import {
  27. OptionsSharp,
  28. DesktopOutline,
  29. DocumentTextOutline,
  30. DiamondOutline,
  31. FileTrayFullOutline,
  32. } from '@vicons/ionicons5';
  33. //前端路由图标映射表
  34. export const constantRouterIcon = {
  35. DashboardOutlined: renderIcon(DashboardOutlined),
  36. OptionsSharp: renderIcon(OptionsSharp),
  37. ExclamationCircleOutlined: renderIcon(ExclamationCircleOutlined),
  38. ProfileOutlined: renderIcon(ProfileOutlined),
  39. CheckCircleOutlined: renderIcon(CheckCircleOutlined),
  40. SettingOutlined: renderIcon(SettingOutlined),
  41. ControlOutlined: renderIcon(ControlOutlined),
  42. WalletOutlined: renderIcon(WalletOutlined),
  43. DesktopOutline: renderIcon(DesktopOutline),
  44. ProjectOutlined: renderIcon(ProjectOutlined),
  45. DocumentTextOutline: renderIcon(DocumentTextOutline),
  46. DiamondOutline: renderIcon(DiamondOutline),
  47. TableOutlined: renderIcon(TableOutlined),
  48. SafetyOutlined: renderIcon(SafetyOutlined),
  49. BellOutlined: renderIcon(BellOutlined),
  50. BookOutlined: renderIcon(BookOutlined),
  51. ToolOutlined: renderIcon(ToolOutlined),
  52. PictureOutlined: renderIcon(PictureOutlined),
  53. CameraOutlined: renderIcon(CameraOutlined),
  54. ApartmentOutlined: renderIcon(ApartmentOutlined),
  55. UserOutlined: renderIcon(UserOutlined),
  56. FunctionOutlined: renderIcon(FunctionOutlined),
  57. SendOutlined: renderIcon(SendOutlined),
  58. LineChartOutlined: renderIcon(LineChartOutlined),
  59. FileTrayFullOutline: renderIcon(FileTrayFullOutline),
  60. HandleFeedback: renderImg(HandleFeedback),
  61. Handle: renderImg(Handle),
  62. };