|
@@ -191,7 +191,10 @@ watchEffect(() => {
|
|
|
function calcMenuWidthStyle(isHiddenDom: boolean): CSSProperties {
|
|
|
const { extraWidth, fixedExtra, isSidebarMixed, show, width } = props;
|
|
|
|
|
|
- let widthValue = `${width + (isSidebarMixed && fixedExtra && extraVisible.value ? extraWidth : 0)}px`;
|
|
|
+ let widthValue =
|
|
|
+ width === 0
|
|
|
+ ? '0px'
|
|
|
+ : `${width + (isSidebarMixed && fixedExtra && extraVisible.value ? extraWidth : 0)}px`;
|
|
|
|
|
|
const { collapseWidth } = props;
|
|
|
|