fix: 修改标签页样式

This commit is contained in:
xiaoxian521 2021-06-28 15:40:23 +08:00
parent 3b86ad6fe8
commit 0cc4f2660e
3 changed files with 33 additions and 29 deletions

View File

@ -79,8 +79,8 @@ export default {
setup() {
const router = useRouter();
//
const markValue = ref(storageLocal.getItem("showModel") || "card");
//
const markValue = ref(storageLocal.getItem("showModel") || "smart");
const logoVal = ref(storageLocal.getItem("logoVal") || "1");

View File

@ -42,7 +42,6 @@ export default defineComponent({
position: relative;
width: 100%;
height: 50px;
background: #2b2f3a;
text-align: center;
overflow: hidden;
@ -52,15 +51,15 @@ export default defineComponent({
.sidebar-title {
display: inline-block;
margin: 0;
color: #fff;
color: #1890ff;
font-weight: 600;
line-height: 50px;
font-size: 20px;
margin-top: 16px;
font-family: Avenir, Helvetica Neue, Arial, Helvetica, sans-serif;
}
.fa-optin-monster {
font-size: 38px;
font-size: 30px;
color: #1890ff;
margin-top: 5px;
}

View File

@ -5,17 +5,17 @@
v-for="(item, index) in dynamicTagList"
:key="index"
:ref="'dynamic' + index"
:class="['scroll-item', $route.path === item.path ? 'is-active' : '', $route.path === item.path && showModel ==='card' ? 'card-active' : '' ]"
:class="['scroll-item is-closable', $route.path === item.path ? 'is-active' : '', $route.path === item.path && showModel ==='card' ? 'card-active' : '' ]"
@contextmenu.prevent.native="openMenu(item, $event)"
@mouseenter.prevent="onMouseenter(item, index)"
@mouseleave.prevent="onMouseleave(item, index)"
>
<router-link :to="item.path">{{ $t(item.meta.title) }}</router-link>
<i
<span
v-if="$route.path === item.path && index !== 0 || index === activeIndex && index !== 0"
class="iconfont team-iconshanchu"
class="el-icon-close"
@click="deleteMenu(item)"
></i>
></span>
<div
:ref="'schedule' + index"
v-if="showModel !=='card'"
@ -150,8 +150,8 @@ export default {
}
]);
//
const showModel = ref(storageLocal.getItem("showModel") || "card");
//
const showModel = ref(storageLocal.getItem("showModel") || "smart");
if (!showModel) {
storageLocal.setItem("showModel", "card");
}
@ -435,18 +435,36 @@ export default {
font-size: 14px;
display: flex;
box-shadow: 0 0 1px #888888;
.scroll-item {
border-radius: 3px 3px 0 0;
padding: 2px 8px;
padding: 2px 6px;
display: inline-block;
position: relative;
margin-right: 5px;
margin-right: 4px;
height: 28px;
line-height: 25px;
&:hover {
background-color: #eaf4fe;
transition: all 0.4s;
.el-icon-close {
font-size: 10px;
color: #1890ff;
cursor: pointer;
&:hover {
border-radius: 50%;
color: #fff;
background: #b4bccc;
font-size: 14px;
}
}
&.is-closable:not(:first-child) {
&:hover {
padding-right: 8px;
}
}
}
a {
text-decoration: none;
color: #666;
@ -534,19 +552,6 @@ export default {
}
}
//
.team-iconshanchu {
color: #1890ff;
cursor: pointer;
font-size: 14px;
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.team-iconshanchu:hover {
border-radius: 50%;
color: #fff;
background: #b4bccc;
}
//
.card-active {
border: 1px solid #1890ff;