Browse Source

fix: 优化最小值限制

pull/7576/head
zouawen 4 weeks ago
parent
commit
cc808cb8c5
  1. 2
      packages/@core/ui-kit/layout-ui/src/components/layout-sidebar.vue

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

Loading…
Cancel
Save