浏览代码

fix: 优化最小值限制

zouawen 3 月之前
父节点
当前提交
cc808cb8c5
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue

+ 1 - 1
packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue

@@ -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(