From 2a6906ae06eb8b77fd1ce4afca5caf7d88415a1b Mon Sep 17 00:00:00 2001 From: zqm Date: Thu, 13 Nov 2025 17:08:21 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4DockIndicator=E4=B8=8A?= =?UTF-8?q?=E5=8C=BA=E6=8C=87=E7=A4=BA=E5=99=A8=E4=BD=8D=E7=BD=AE=EF=BC=8C?= =?UTF-8?q?=E5=B0=86=E5=85=B6=E7=A7=BB=E8=87=B3=E4=B8=AD=E5=BF=83=E5=8C=BA?= =?UTF-8?q?=E5=9F=9F=E5=AE=B9=E5=99=A8=E5=86=85=E9=83=A8=E5=B9=B6=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=E6=AD=A3=E7=A1=AE=E7=9A=84=E7=9B=B8=E5=AF=B9=E5=AE=9A?= =?UTF-8?q?=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Web/src/DockLayout/DockIndicator.vue | 67 +++++++++++-------- .../Robot/Web/src/DockLayout/DockLayout.vue | 1 + 2 files changed, 41 insertions(+), 27 deletions(-) diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue index 12177d7..ee19485 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue @@ -65,31 +65,7 @@ - - - - - - - +
+ + + + + + + + d="M0 67 L58 67 L67 58 L67 0 L118 0 L118 58 L128 67 L185 67 L185 118 L128 118 L118 128 L118 185 L67 185 L67 128 L58 118 L0 118 Z" /> + d="M1 68 L59 68 L68 59 L68 1 L117 1 L117 59 L127 68 L184 68 L184 117 L127 117 L117 127 L117 184 L68 184 L68 127 L59 117 L1 117 Z" /> @@ -663,6 +665,17 @@ watch(activeDockZone, (newZone) => { z-index: 1; /* 中心指示区在下层 */ } +/* 上区指示器:位于中心指示区上方指示器的上方4个像素处 */ +.dock-top-area { + position: absolute; + top: -45px; /* 向上偏移,确保距离中心指示区上方指示器上边缘4个像素 */ + left: 50%; + transform: translateX(-50%); + opacity: 0.7; /* 默认半透明 */ + transition: opacity 0.2s; + z-index: 2; /* 确保在中心指示区上方 */ +} + /* 中心指示区上方指示器:位于中心指示区上边缘,距离上边框5像素 */ .indicator-center-top { position: absolute; diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index aa025da..127623b 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -1,6 +1,7 @@