12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788 |
- <template>
- <div class="fast-menu">
- <div class="menu-list">
- <router-link v-for="(fastMenu,index) in fastMenu" :to="fastMenu.path" :key="index" class="header-right" exact><span>{{fastMenu.name}}</span></router-link>
- </div>
- </div>
- </template>
- <script>
- export default {
- data() {
- return {
- fastMenu:[
- {
- name:'数据中心',
- path:'/'
- },
- {
- name:'事件中心',
- path:'/'
- },
- {
- name:'监控中心',
- path:'/integrated/monitor'
- },
- {
- name:'任务中心',
- path:'/'
- },
- {
- name:'评测中心',
- path:'/'
- }
- ]
- }
- }
- }
- </script>
- <style rel="stylesheet/scss" lang="scss">
- @import '@/assets/styles/base.scss';
- .bigdata-con {
- .fast-menu {
- position: fixed;
- right: 1rem;
- display: flex;
- .menu-list {
- margin-left: 20px;
- display: flex;
- align-items: center;
- span {
- min-width: 5.625rem;
- background: url(../../assets/images/integrated/bigdata-header-right-bg.png) center no-repeat;
- font-size: 12px;
- display: flex;
- align-items: center;
- justify-content: center;
- padding: 10px 12px;
- color: $inBlue;
- height: 100%;
- cursor: pointer;
- text-align: center;
- -webkit-transform: translateX(0px);
- transform: translateX(0px);
- transition: all 0.5s ease-in-out;
- i {
- padding-right: 3px;
- }
- }
- span:hover {
- filter: brightness(2.3);
- -webkit-transform: translateX(-5px);
- transform: translateX(-5px);
- transition: all 0.5s ease-in-out;
- color: $inBlueHover;
- }
- }
- }
- }
- </style>
|