diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue index 839f9a6..370349d 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockIndicator.vue @@ -69,6 +69,7 @@ import { computed, watch, ref, onUnmounted } from 'vue' -// Props定义 const props = defineProps({ - // 是否可见 - visible: { - type: Boolean, - default: false - }, - // 目标区域的位置和大小信息 - targetRect: { - type: Object, - default: () => ({ - left: 0, - top: 0, - width: 0, - height: 0 - }) - }, - // 鼠标位置 - mousePosition: { - type: Object, - default: () => ({ - x: 0, - y: 0 - }) - } + visible: Boolean, + targetRect: Object, + mousePosition: Object, + hideEdgeIndicators: Boolean }) -// 鼠标悬停在哪个指示器上 +// 创建响应式的hoveredZone状态 const hoveredZone = ref(null) // 鼠标是否悬停在中心指示器上(用于控制中心指示区的显示) const isCenterIndicatorHovered = ref(false) diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index 127623b..53eacdf 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -6,12 +6,14 @@ :visible="showDockIndicator" :target-rect="targetAreaRect" :mouse-position="currentMousePosition" + :hide-edge-indicators="hideEdgeIndicators" @zone-active="onDockZoneActive" style="z-index: 9999;" /> +