소스 검색

fix: 优化最大值限制

zouawen 3 달 전
부모
커밋
b2013436c5
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

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