mirror of
https://gitee.com/dapppp/ruoyi-plus-vben5.git
synced 2026-03-19 22:25:36 +08:00
fix: 优化最小值限制
This commit is contained in:
@@ -260,7 +260,7 @@ const { startDrag } = useSidebarDrag();
|
|||||||
|
|
||||||
const handleDragSidebar = (e: MouseEvent) => {
|
const handleDragSidebar = (e: MouseEvent) => {
|
||||||
const { isSidebarMixed, collapseWidth, extraWidth, width } = props;
|
const { isSidebarMixed, collapseWidth, extraWidth, width } = props;
|
||||||
const minLimit = isSidebarMixed ? width + collapseWidth : collapseWidth;
|
const minLimit = collapseWidth;
|
||||||
const maxLimit = isSidebarMixed ? width + 320 : 320;
|
const maxLimit = isSidebarMixed ? width + 320 : 320;
|
||||||
const currentWidth = isSidebarMixed ? extraWidth : width;
|
const currentWidth = isSidebarMixed ? extraWidth : width;
|
||||||
startDrag(
|
startDrag(
|
||||||
|
|||||||
Reference in New Issue
Block a user