diff --git a/src/layouts/LayoutMixed/index.scss b/src/layouts/LayoutMixed/index.scss new file mode 100644 index 00000000..0c7c9a88 --- /dev/null +++ b/src/layouts/LayoutMixed/index.scss @@ -0,0 +1,77 @@ +.el-container { + width: 100%; + height: 100%; + :deep(.el-aside) { + width: auto; + background-color: var(--el-menu-bg-color); + border-right: 1px solid var(--el-aside-border-color); + .aside-box { + display: flex; + flex-direction: column; + height: 100%; + transition: width 0.3s ease; + .el-scrollbar { + height: calc(100% - 55px); + .el-menu { + width: 100%; + overflow-x: hidden; + border-right: none; + } + } + .logo { + box-sizing: border-box; + height: 55px; + .logo-img { + width: 28px; + margin-right: 6px; + object-fit: contain; + } + .logo-text { + font-size: 21.5px; + font-weight: bold; + color: var(--el-aside-logo-text-color); + white-space: nowrap; + } + } + } + } + .el-header { + box-sizing: border-box; + display: flex; + align-items: center; + justify-content: space-between; + height: 55px; + padding: 0 15px; + background-color: var(--el-header-bg-color); + border-bottom: 1px solid var(--el-header-border-color); + .tool-bar-lf, + .tool-bar-ri { + flex-shrink: 0; + } + .el-menu { + flex: 1; + height: 100%; + overflow: hidden; + border-bottom: none; + .el-sub-menu__hide-arrow { + width: 65px; + height: 55px; + } + .el-menu-item.is-active { + color: #ffffff !important; + } + .is-active { + background-color: var(--el-color-primary) !important; + border-bottom-color: var(--el-color-primary) !important; + &::before { + width: 0; + } + .el-sub-menu__title { + color: #ffffff !important; + background-color: var(--el-color-primary) !important; + border-bottom-color: var(--el-color-primary) !important; + } + } + } + } +} diff --git a/src/layouts/LayoutMixed/index.vue b/src/layouts/LayoutMixed/index.vue new file mode 100644 index 00000000..5b98a964 --- /dev/null +++ b/src/layouts/LayoutMixed/index.vue @@ -0,0 +1,101 @@ + + + + + + diff --git a/src/layouts/components/Header/ToolBarLeft.vue b/src/layouts/components/Header/ToolBarLeft.vue index 17af7ca5..1221781b 100644 --- a/src/layouts/components/Header/ToolBarLeft.vue +++ b/src/layouts/components/Header/ToolBarLeft.vue @@ -1,15 +1,19 @@