🐛(component): 修复 menu 横向导航栏嵌套 router 颜色不兼容问题

This commit is contained in:
就眠儀式 2022-09-10 02:29:39 +08:00
parent d3609d636d
commit 1cbb0c7eb2
2 changed files with 6 additions and 4 deletions

View File

@ -49,7 +49,9 @@
.layui-nav .layui-nav-item > a {
display: block;
padding: 0 30px;
color: rgba(255, 255, 255, 0.7);
* {
color: rgba(255, 255, 255, 0.7);
}
}
.layui-nav .layui-this:after,
@ -75,8 +77,8 @@
}
.layui-nav .layui-nav-item a:hover,
.layui-nav .layui-this a {
color: #fff;
.layui-nav .layui-this * {
color: #fff !important;
}
.layui-nav .layui-this:after {

View File

@ -14,7 +14,7 @@
<template>
<lay-menu v-model:selected-key="selectedKey" v-model:open-keys="openKeys1">
<lay-menu-item id="1">首页</lay-menu-item>
<lay-menu-item id="1"><router-link to="/">hahah </router-link></lay-menu-item>
<lay-menu-item id="2">首页</lay-menu-item>
<lay-menu-item id="3">首页</lay-menu-item>
<lay-sub-menu id="7">