enums.ts 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108
  1. import type { OptionsType } from "@/components/ReSegmented";
  2. const menuTypeOptions: Array<OptionsType> = [
  3. {
  4. label: "菜单",
  5. value: 0
  6. },
  7. {
  8. label: "iframe",
  9. value: 1
  10. },
  11. {
  12. label: "外链",
  13. value: 2
  14. },
  15. {
  16. label: "按钮",
  17. value: 3
  18. }
  19. ];
  20. const showLinkOptions: Array<OptionsType> = [
  21. {
  22. label: "显示",
  23. tip: "会在菜单中显示",
  24. value: true
  25. },
  26. {
  27. label: "隐藏",
  28. tip: "不会在菜单中显示",
  29. value: false
  30. }
  31. ];
  32. const fixedTagOptions: Array<OptionsType> = [
  33. {
  34. label: "固定",
  35. tip: "当前菜单名称固定显示在标签页且不可关闭",
  36. value: true
  37. },
  38. {
  39. label: "不固定",
  40. tip: "当前菜单名称不固定显示在标签页且可关闭",
  41. value: false
  42. }
  43. ];
  44. const keepAliveOptions: Array<OptionsType> = [
  45. {
  46. label: "缓存",
  47. tip: "会保存该页面的整体状态,刷新后会清空状态",
  48. value: true
  49. },
  50. {
  51. label: "不缓存",
  52. tip: "不会保存该页面的整体状态",
  53. value: false
  54. }
  55. ];
  56. const hiddenTagOptions: Array<OptionsType> = [
  57. {
  58. label: "允许",
  59. tip: "当前菜单名称或自定义信息允许添加到标签页",
  60. value: false
  61. },
  62. {
  63. label: "禁止",
  64. tip: "当前菜单名称或自定义信息禁止添加到标签页",
  65. value: true
  66. }
  67. ];
  68. const showParentOptions: Array<OptionsType> = [
  69. {
  70. label: "显示",
  71. tip: "会显示父级菜单",
  72. value: true
  73. },
  74. {
  75. label: "隐藏",
  76. tip: "不会显示父级菜单",
  77. value: false
  78. }
  79. ];
  80. const frameLoadingOptions: Array<OptionsType> = [
  81. {
  82. label: "开启",
  83. tip: "有首次加载动画",
  84. value: true
  85. },
  86. {
  87. label: "关闭",
  88. tip: "无首次加载动画",
  89. value: false
  90. }
  91. ];
  92. export {
  93. menuTypeOptions,
  94. showLinkOptions,
  95. fixedTagOptions,
  96. keepAliveOptions,
  97. hiddenTagOptions,
  98. showParentOptions,
  99. frameLoadingOptions
  100. };