refactor(layout): 侧边栏宽度使用 CSS 变量

- 将侧边栏宽度从 SASS 变量改为 CSS 变量
- 更新相关样式文件,使用新的 CSS 变量
- 在 Sidebar 组件中动态设置侧边栏宽度
- 删除了不再使用的 $sideBarWidth SASS变量
This commit is contained in:
du.meimei
2025-05-07 18:29:15 +08:00
parent 185c8f12f5
commit dc1758288a
6 changed files with 35 additions and 16 deletions

View File

@@ -89,7 +89,8 @@ export default {
top: 0;
right: 0;
z-index: 9;
width: calc(100% - #{$sideBarWidth});
//width: calc(100% - #{$sideBarWidth});
width: calc(100% - var(--sidebar-width));
transition: width 0.28s;
}