2023-06-25:style: 移除不必要样式

This commit is contained in:
YunaiV 2024-02-29 19:49:28 +08:00
parent fe61119735
commit 8d23c38f2f

View File

@ -124,16 +124,6 @@ export default defineComponent({
<style lang="scss" scoped> <style lang="scss" scoped>
$prefix-cls: #{$namespace}-menu; $prefix-cls: #{$namespace}-menu;
.is-active--after {
position: absolute;
top: 0;
right: 0;
width: 4px;
height: 100%;
background-color: var(--el-color-primary);
content: '';
}
.#{$prefix-cls} { .#{$prefix-cls} {
position: relative; position: relative;
transition: width var(--transition-time-02); transition: width var(--transition-time-02);
@ -171,10 +161,6 @@ $prefix-cls: #{$namespace}-menu;
.#{$elNamespace}-menu-item.is-active { .#{$elNamespace}-menu-item.is-active {
position: relative; position: relative;
&::after {
@extend .is-active--after;
}
} }
// //
@ -194,10 +180,6 @@ $prefix-cls: #{$namespace}-menu;
& > .is-active > .#{$elNamespace}-sub-menu__title { & > .is-active > .#{$elNamespace}-sub-menu__title {
position: relative; position: relative;
background-color: var(--left-menu-collapse-bg-active-color) !important; background-color: var(--left-menu-collapse-bg-active-color) !important;
&::after {
@extend .is-active--after;
}
} }
} }
@ -245,16 +227,6 @@ $prefix-cls: #{$namespace}-menu;
<style lang="scss"> <style lang="scss">
$prefix-cls: #{$namespace}-menu-popper; $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: '';
}
.#{$prefix-cls}--vertical, .#{$prefix-cls}--vertical,
.#{$prefix-cls}--horizontal { .#{$prefix-cls}--horizontal {
// //
@ -281,10 +253,6 @@ $prefix-cls: #{$namespace}-menu-popper;
&:hover { &:hover {
background-color: var(--left-menu-bg-active-color) !important; background-color: var(--left-menu-bg-active-color) !important;
} }
&::after {
@extend .is-active--after;
}
} }
} }
</style> </style>