style: 移除不必要样式

This commit is contained in:
kailong321200875
2023-06-25 17:53:57 +08:00
parent 3b9c3d8b75
commit 366db45282
6 changed files with 121 additions and 127 deletions

View File

@@ -7,7 +7,6 @@ import { useRenderMenuItem } from './components/useRenderMenuItem'
import { useRouter } from 'vue-router'
import { isUrl } from '@/utils/is'
import { useDesign } from '@/hooks/web/useDesign'
import { LayoutType } from '@/types/layout'
const { getPrefixCls } = useDesign()
@@ -124,15 +123,15 @@ export default defineComponent({
<style lang="less" scoped>
@prefix-cls: ~'@{namespace}-menu';
.is-active--after {
position: absolute;
top: 0;
right: 0;
width: 4px;
height: 100%;
background-color: var(--el-color-primary);
content: '';
}
// .is-active--after {
// position: absolute;
// top: 0;
// right: 0;
// width: 4px;
// height: 100%;
// background-color: var(--el-color-primary);
// content: '';
// }
.@{prefix-cls} {
position: relative;
@@ -182,9 +181,9 @@ export default defineComponent({
.@{elNamespace}-menu-item.is-active {
position: relative;
&:after {
.is-active--after;
}
// &:after {
// .is-active--after;
// }
}
// 设置子菜单的背景颜色
@@ -205,9 +204,9 @@ export default defineComponent({
position: relative;
background-color: var(--left-menu-collapse-bg-active-color) !important;
&:after {
.is-active--after;
}
// &:after {
// .is-active--after;
// }
}
}
@@ -255,15 +254,15 @@ export default defineComponent({
<style lang="less">
@prefix-cls: ~'@{namespace}-menu-popper';
.is-active--after {
position: absolute;
top: 0;
right: 0;
width: 4px;
height: 100%;
background-color: var(--el-color-primary);
content: '';
}
// .is-active--after {
// position: absolute;
// top: 0;
// right: 0;
// width: 4px;
// height: 100%;
// background-color: var(--el-color-primary);
// content: '';
// }
.@{prefix-cls}--vertical,
.@{prefix-cls}--horizontal {
@@ -292,9 +291,9 @@ export default defineComponent({
background-color: var(--left-menu-bg-active-color) !important;
}
&:after {
.is-active--after;
}
// &:after {
// .is-active--after;
// }
}
}
</style>

View File

@@ -47,7 +47,6 @@ const setHeaderTheme = (color: string) => {
setCssVar('--top-header-bg-color', color)
setCssVar('--top-header-text-color', textColor)
setCssVar('--top-header-hover-color', textHoverColor)
setCssVar('--layout-border-color', topToolBorderColor)
appStore.setTheme({
topHeaderBgColor: color,
topHeaderTextColor: textColor,

View File

@@ -482,7 +482,7 @@ watch(
left: 0;
width: 100%;
height: calc(~'100% - 1px');
border-left: 1px solid var(--layout-border-color);
border-left: 1px solid var(--el-border-color);
content: '';
}
@@ -496,7 +496,7 @@ watch(
left: 0;
width: 100%;
height: calc(~'100% - 1px');
border-right: 1px solid var(--layout-border-color);
border-right: 1px solid var(--el-border-color);
content: '';
}
}