Commit 4c4ee858 authored by 夏敏伟's avatar 夏敏伟

修改样式bug

parent d52c8f08
......@@ -4,11 +4,12 @@
<el-menu default-active="1" class="second-router" mode="horizontal" @open="handleOpen" @close="handleClose"
background-color="transparent" text-color="#fff" @select="handleSelect">
<template v-for="(item, index) in module">
<el-menu-item :class="index == choice_status ? 'change-bg' : 'change-bg1'"
<el-menu-item
:class="[index == choice_status ? 'change-bg' : 'change-bg1', item.name == '生成报告' ? 'createBrief' : '']"
:index="(index + 1).toString()" @click="href_choice(item, index)">
<div>
<i :class="item.icon"></i>
<span v-text="item.name"></span>
<span v-if="item.name != '生成报告'" v-text="item.name"></span>
</div>
</el-menu-item>
</template>
......@@ -46,15 +47,16 @@
&:not(:first-child) {
margin-left: 10px;
}
}
.createBrief {
float: right;
background: none !important;
&:last-child {
float: right;
background: none !important;
&>div>i{
margin-top: 10px;
font-size: 20px;
color: white;
}
&>div>i {
margin-top: 10px;
font-size: 20px;
color: white;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment