fix(desktop): 禁用审批面板拖拽展开
- 电脑端审批面板不再支持拖拽屏幕边缘展开 - 仅保留移动端的手动打开方式
This commit is contained in:
parent
be9592a2f4
commit
0eeec08320
@ -18,20 +18,14 @@ function clamp(value: number, min: number, max: number) {
|
||||
}
|
||||
|
||||
export function startResize(ctx: ResizeContext, panel: PanelKey, event: MouseEvent) {
|
||||
// 如果右侧面板(审批面板)已折叠,禁用拖拽边缘展开
|
||||
if (panel === 'right' && ctx.rightCollapsed) {
|
||||
return;
|
||||
}
|
||||
|
||||
ctx.isResizing = true;
|
||||
ctx.resizingPanel = panel;
|
||||
|
||||
if (panel === 'right' && ctx.rightCollapsed) {
|
||||
ctx.rightCollapsed = false;
|
||||
if (
|
||||
typeof ctx.rightWidth === 'number' &&
|
||||
typeof ctx.minPanelWidth === 'number' &&
|
||||
ctx.rightWidth < ctx.minPanelWidth
|
||||
) {
|
||||
ctx.rightWidth = ctx.minPanelWidth;
|
||||
}
|
||||
}
|
||||
|
||||
if (ctx.handleResize) {
|
||||
document.addEventListener('mousemove', ctx.handleResize as EventListener);
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user