fix(projects): fix the issue of abnormal width of the sidebar in the top menu mix and reverse mode (#562)
This commit is contained in:
parent
613c836e0f
commit
c469512bd4
@ -85,8 +85,13 @@ function getSiderWidth() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function getSiderCollapsedWidth() {
|
function getSiderCollapsedWidth() {
|
||||||
|
const { reverseHorizontalMix } = themeStore.layout;
|
||||||
const { collapsedWidth, mixCollapsedWidth, mixChildMenuWidth } = themeStore.sider;
|
const { collapsedWidth, mixCollapsedWidth, mixChildMenuWidth } = themeStore.sider;
|
||||||
|
|
||||||
|
if (isHorizontalMix.value && reverseHorizontalMix) {
|
||||||
|
return isActiveFirstLevelMenuHasChildren.value ? collapsedWidth : 0;
|
||||||
|
}
|
||||||
|
|
||||||
let w = isVerticalMix.value || isHorizontalMix.value ? mixCollapsedWidth : collapsedWidth;
|
let w = isVerticalMix.value || isHorizontalMix.value ? mixCollapsedWidth : collapsedWidth;
|
||||||
|
|
||||||
if (isVerticalMix.value && appStore.mixSiderFixed && childLevelMenus.value.length) {
|
if (isVerticalMix.value && appStore.mixSiderFixed && childLevelMenus.value.length) {
|
||||||
|
Loading…
Reference in New Issue
Block a user