From afdd48bc937c7f99ccd9925e59f5fc56fb51da55 Mon Sep 17 00:00:00 2001 From: zqm Date: Fri, 14 Nov 2025 09:39:59 +0800 Subject: [PATCH] =?UTF-8?q?=E8=B0=83=E6=95=B4DockIndicator.vue=E4=B8=AD?= =?UTF-8?q?=E7=9A=84=E5=8C=BA=E5=9F=9F=E6=8C=87=E7=A4=BA=E5=99=A8=E5=B8=83?= =?UTF-8?q?=E5=B1=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将左区、右区、下区三个区域指示器从外部移动到center-dock-container内部 - 按照上区指示器的布局方式,围绕中心指示器放置 - 更新相关CSS样式,确保视觉一致性和布局平衡 - 删除原有的外部指示器定义,简化代码结构 --- .../Web/src/DockLayout/DockIndicator.vue | 189 +++++++++++------- .../Robot/Web/src/DockLayout/DockLayout.vue | 2 +- 2 files changed, 118 insertions(+), 73 deletions(-) diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue index afaf8ae..c29f791 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue @@ -169,77 +169,7 @@ d="M10 13 L30 13 L30 19 L10 19 Z" /> - - - - - - - - +
@@ -290,6 +220,88 @@ clip-rule="evenodd" d="M10 21 L30 21 L30 30 L10 30 Z" /> + + + + + + + + + + + + + + + + + + + + + + + + + { /* 上区指示器:位于中心指示区上方指示器的上方4个像素处 */ .dock-top-area { position: absolute; - top: 46px; /* 向上偏移,确保距离中心指示区上方指示器上边缘4个像素 */ + top: 51px; /* 向上偏移,确保距离中心指示区上方指示器上边缘4个像素 */ + left: 50%; + transform: translateX(-50%); + opacity: 0.7; /* 默认半透明 */ + transition: opacity 0.2s; + z-index: 2; /* 确保在中心指示区上方 */ +} + +/* 左区指示器:位于中心指示区左侧指示器的右侧4个像素处 */ +.dock-left-area { + position: absolute; + top: 50%; + left: 51px; /* 向右偏移,确保距离中心指示区左侧指示器右边缘4个像素 */ + transform: translateY(-50%); + opacity: 0.7; /* 默认半透明 */ + transition: opacity 0.2s; + z-index: 2; /* 确保在中心指示区上方 */ +} + +/* 右区指示器:位于中心指示区右侧指示器的左侧4个像素处 */ +.dock-right-area { + position: absolute; + top: 50%; + right: 51px; /* 向左偏移,确保距离中心指示区右侧指示器左边缘4个像素 */ + transform: translateY(-50%); + opacity: 0.7; /* 默认半透明 */ + transition: opacity 0.2s; + z-index: 2; /* 确保在中心指示区上方 */ +} + +/* 下区指示器:位于中心指示区下方指示器的下方4个像素处 */ +.dock-bottom-area { + position: absolute; + bottom: 51px; /* 向上偏移,确保距离中心指示区下方指示器下边缘4个像素 */ left: 50%; transform: translateX(-50%); opacity: 0.7; /* 默认半透明 */ diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index e0b3b1c..127623b 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -3,7 +3,7 @@