summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClariS <[email protected]>2023-09-07 17:12:31 +0800
committerGitHub <[email protected]>2023-09-07 17:12:31 +0800
commit8e83db52284a1af41a4c852c3cd9c1b0c729d8fc (patch)
tree1e78fcc48f2a8dbf2c564b99e80c28508a6ef69d
parent574f47cb00efc521e770bed506e160e5ce7e8d34 (diff)
fix: 替换 %placeholder 后侧边栏 tip-line 样式丢失 (#132)
-rw-r--r--src/layouts/components/Sidebar/index.vue14
1 files changed, 5 insertions, 9 deletions
diff --git a/src/layouts/components/Sidebar/index.vue b/src/layouts/components/Sidebar/index.vue
index c74967c..629d829 100644
--- a/src/layouts/components/Sidebar/index.vue
+++ b/src/layouts/components/Sidebar/index.vue
@@ -145,18 +145,14 @@ const tipLineWidth = computed(() => {
}
}
-:deep(.el-menu-item) {
- &.is-active {
- @extend %tip-line;
- }
+:deep(.el-menu-item.is-active) {
+ @extend %tip-line;
}
.el-menu--collapse {
- :deep(.el-sub-menu) {
- &.is-active {
- .el-sub-menu__title {
- @extend %tip-line;
- }
+ :deep(.el-sub-menu.is-active) {
+ .el-sub-menu__title {
+ @extend %tip-line;
}
}
}