fastmenu.vue 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. <template>
  2. <div class="fast-menu">
  3. <div class="menu-list">
  4. <router-link v-for="(fastMenu,index) in fastMenu" :to="fastMenu.path" :key="index" class="header-right" exact><span>{{fastMenu.name}}</span></router-link>
  5. </div>
  6. </div>
  7. </template>
  8. <script>
  9. export default {
  10. data() {
  11. return {
  12. fastMenu:[
  13. {
  14. name:'数据中心',
  15. path:'/'
  16. },
  17. {
  18. name:'事件中心',
  19. path:'/'
  20. },
  21. {
  22. name:'监控中心',
  23. path:'/integrated/monitor'
  24. },
  25. {
  26. name:'任务中心',
  27. path:'/'
  28. },
  29. {
  30. name:'评测中心',
  31. path:'/'
  32. }
  33. ]
  34. }
  35. }
  36. }
  37. </script>
  38. <style rel="stylesheet/scss" lang="scss">
  39. @import '@/assets/styles/base.scss';
  40. .bigdata-con {
  41. .fast-menu {
  42. position: fixed;
  43. right: 1rem;
  44. display: flex;
  45. .menu-list {
  46. margin-left: 20px;
  47. display: flex;
  48. align-items: center;
  49. span {
  50. min-width: 5.625rem;
  51. background: url(../../assets/images/integrated/bigdata-header-right-bg.png) center no-repeat;
  52. font-size: 12px;
  53. display: flex;
  54. align-items: center;
  55. justify-content: center;
  56. padding: 10px 12px;
  57. color: $inBlue;
  58. height: 100%;
  59. cursor: pointer;
  60. text-align: center;
  61. -webkit-transform: translateX(0px);
  62. transform: translateX(0px);
  63. transition: all 0.5s ease-in-out;
  64. i {
  65. padding-right: 3px;
  66. }
  67. }
  68. span:hover {
  69. filter: brightness(2.3);
  70. -webkit-transform: translateX(-5px);
  71. transform: translateX(-5px);
  72. transition: all 0.5s ease-in-out;
  73. color: $inBlueHover;
  74. }
  75. }
  76. }
  77. }
  78. </style>