You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

75 lines
1.5 KiB
Vue

<template>
<div class="sidebarBox">
<ul class="menuBoxUl">
<li class="menuItem" v-for="(item, index) in routeItem" :key="index">
<router-link :to="item.path"> {{ item.name }} </router-link>
</li>
</ul>
</div>
</template>
<script>
export default {
data() {
return {
routeItem: [
{
path: "/dataReport",
name: "数据报表",
},
// {
// path: "/equipment",
// name: "设备台账管理",
// },
// {
// path: "/systemManagement",
// name: "系统管理",
// },
{
path: "/icdConfig",
name: "icd配置",
},
],
};
},
watch: {},
methods: {},
created() {},
};
</script>
<style lang="less">
.sidebarBox {
// width: 55%;
// margin: 0 auto;
display: flex;
align-items: center;
.menuBoxUl {
flex: 1;
display: flex;
align-items: center;
justify-content: space-around;
.menuItem {
list-style: none;
display: flex;
height: 40px;
justify-content: center;
align-items: center;
cursor: pointer;
font-size: 14px;
margin-right: 32px;
a {
color: #6de1ff;
background-image: url(../assets/menu.png);
height: 40px;
line-height: 40px;
padding: 0 12px;
background-size: 100% 100%;
background-repeat: no-repeat;
overflow: hidden;
}
}
}
}
</style>