From 7b41ef8c4f6ca23da18e753ba0b43a039ee06d51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=A2=A6=E8=BF=9C?= <1063331231@qq.com> Date: Thu, 17 Jul 2025 21:08:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=96=B7=E6=B6=82=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E7=9A=84=E9=80=89=E6=8B=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/spray/trayGraph/index.vue | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/components/spray/trayGraph/index.vue b/src/components/spray/trayGraph/index.vue index 6bd31ed..eed3b00 100644 --- a/src/components/spray/trayGraph/index.vue +++ b/src/components/spray/trayGraph/index.vue @@ -131,6 +131,10 @@ const addSelect = () => { || newBoundBox.y < 0 || newBoundBox.x + newBoundBox.width > stageWidth || newBoundBox.y + newBoundBox.height > stageHeight + || oldBoundBox.width - (newBoundBox.x - oldBoundBox.x) < 25 + || newBoundBox.width < 25 + || oldBoundBox.height - (newBoundBox.y - oldBoundBox.y) < 25 + || newBoundBox.height < 25 ) { return oldBoundBox // 满足任一条件则拒绝调整 }