[update 左侧菜单] 折叠宽度
This commit is contained in:
@@ -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;
|
||||
|
||||
|
||||
@@ -343,7 +343,7 @@ body {
|
||||
}
|
||||
|
||||
&.ant-header-side-closed {
|
||||
width: calc(100% - 80px)
|
||||
width: calc(100% - 56px)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user