From 6b9dd0a1b0c259a02c086f7834467e1fa2c2a5ea Mon Sep 17 00:00:00 2001 From: 张诺 <zhang_12370@163.com> Date: 星期五, 30 五月 2025 17:58:54 +0800 Subject: [PATCH] 调整基础信息供应商模块,客户信息模块并新增联动查询省市区联动,修改table表格方法 --- src/assets/styles/sidebar.scss | 66 +++++++++++++++++++++++--------- 1 files changed, 47 insertions(+), 19 deletions(-) diff --git a/src/assets/styles/sidebar.scss b/src/assets/styles/sidebar.scss index 9a4c487..a1a80ea 100644 --- a/src/assets/styles/sidebar.scss +++ b/src/assets/styles/sidebar.scss @@ -12,18 +12,21 @@ } .sidebar-container { + -webkit-transition: width .28s; transition: width 0.28s; width: $base-sidebar-width !important; + background-color: $base-menu-background; height: 100%; position: fixed; font-size: 0px; - top: 0; + top: 50px; bottom: 0; left: 0; z-index: 1001; overflow: hidden; -webkit-box-shadow: 2px 0 6px rgba(0,21,41,.35); - box-shadow: 0px 0px 8px 0px rgba(0, 0, 0, 0.1); + box-shadow: none; + margin: 0 auto; // reset element-ui css .horizontal-collapse-transition { @@ -39,7 +42,7 @@ } .el-scrollbar { - height: 100%; + height: 92%; } &.has-logo { @@ -51,24 +54,29 @@ .is-horizontal { display: none; } - a { display: inline-block; - width: 100%; + width: 80px; + height: 80px; overflow: hidden; + margin-top: 20px; } + .svg-icon { - margin-right: 16px; + //margin-right: 16px; } .el-menu { border: none; height: 100%; width: 100% !important; + padding: 0 20px !important; } .el-menu-item, .menu-title { + line-height: 20px; + font-size: 14px; overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; @@ -81,52 +89,69 @@ // menu hover .sub-menu-title-noDropdown, .el-sub-menu__title { + border-radius: 10px 10px 10px 10px; &:hover { - background-color: rgba(0, 0, 0, 0.06) !important; + background-color: #ffffff !important; + border-radius: 10px 10px 10px 10px; + color: $base-menu-color-active !important; } } & .theme-dark .is-active > .el-sub-menu__title { color: $base-menu-color-active !important; } - + & .nest-menu > a { + right: 20px; + position: relative; + } + & .nest-menu> .el-sub-menu > .el-sub-menu__title { + right: 20px; + position: relative; + } & .nest-menu .el-sub-menu>.el-sub-menu__title, & .el-sub-menu .el-menu-item { - min-width: $base-sidebar-width !important; + + height: 80px; + min-width: 80px !important; + border-radius: 10px 10px 10px 10px; &:hover { - background-color: rgba(0, 0, 0, 0.06) !important; + background-color: #ffffff !important; + border-radius: 10px 10px 10px 10px; + color: $base-menu-color-active !important; } } & .theme-dark .nest-menu .el-sub-menu>.el-sub-menu__title, & .theme-dark .el-sub-menu .el-menu-item { background-color: $base-sub-menu-background; - + border-radius: 10px 10px 10px 10px; &:hover { - background-color: $base-sub-menu-hover !important; + background-color: #ffffff !important; + border-radius: 10px 10px 10px 10px; + color: $base-menu-color-active !important; } } } .hideSidebar { .sidebar-container { - width: 54px !important; + width: 120px !important; } .main-container { - margin-left: 54px; + margin-left: 120px; } .sub-menu-title-noDropdown { - padding: 0 !important; + padding: 0 0 0 20px !important; position: relative; .el-tooltip { padding: 0 !important; .svg-icon { - margin-left: 20px; + //margin-left: 20px; } } } @@ -138,7 +163,7 @@ padding: 0 !important; .svg-icon { - margin-left: 20px; + //margin-left: 20px; } } @@ -203,15 +228,18 @@ .el-menu--vertical { &>.el-menu { .svg-icon { - margin-right: 16px; + //margin-right: 16px; } } .nest-menu .el-sub-menu>.el-sub-menu__title, .el-menu-item { + border-radius: 10px 10px 10px 10px; &:hover { // you can use $sub-menuHover - background-color: rgba(0, 0, 0, 0.06) !important; + background-color: #ffffff !important; + border-radius: 10px 10px 10px 10px; + color: $base-menu-color-active !important; } } -- Gitblit v1.9.3