fix: 优化最小值限制

This commit is contained in:
zouawen
2026-02-27 11:06:57 +08:00
parent afffc4b3f0
commit cc808cb8c5

View File

@@ -260,7 +260,7 @@ const { startDrag } = useSidebarDrag();
const handleDragSidebar = (e: MouseEvent) => {
const { isSidebarMixed, collapseWidth, extraWidth, width } = props;
const minLimit = isSidebarMixed ? width + collapseWidth : collapseWidth;
const minLimit = collapseWidth;
const maxLimit = isSidebarMixed ? width + 320 : 320;
const currentWidth = isSidebarMixed ? extraWidth : width;
startDrag(