[update 左侧菜单] 折叠宽度

This commit is contained in:
danshihao
2024-08-08 17:44:01 +08:00
parent 79278f0be7
commit acc78726a9
2 changed files with 11 additions and 1 deletions
+10
View File
@@ -1,5 +1,6 @@
<template>
<a-layout-sider
:collapsedWidth="64"
:class="['sider', isDesktop() ? null : 'shadow', theme, fixSiderbar ? 'ant-fixed-sidemenu' : null ]"
width="208px"
:collapsible="collapsible"
@@ -165,6 +166,15 @@ export default {
<!-- update_begin author:sunjianlei date:20190530 for: 选中首页的时候不显示背景颜色 -->
<style lang="less">
.ant-menu.ant-menu-root {
&.ant-menu-inline-collapsed {
width: 64px;
& > .ant-menu-item,
& > .ant-menu-submenu > .ant-menu-submenu-title {
padding: 0 24px !important;
}
}
& > .ant-menu-item:first-child {
//background-color: transparent;
+1 -1
View File
@@ -343,7 +343,7 @@ body {
}
&.ant-header-side-closed {
width: calc(100% - 80px)
width: calc(100% - 56px)
}
}
}