From 689ecb4f0cb48ce054adcc12ee45cbbefe7d15ce Mon Sep 17 00:00:00 2001 From: xudan Date: Wed, 10 Sep 2025 16:39:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=9B=B4=E6=96=B0=E6=9C=BA=E5=99=A8?= =?UTF-8?q?=E4=BA=BA=E8=8F=9C=E5=8D=95=E7=BB=84=E4=BB=B6=EF=BC=8C=E7=A7=BB?= =?UTF-8?q?=E9=99=A4=E5=86=97=E4=BD=99=E4=BB=A3=E7=A0=81=E5=B9=B6=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E5=AD=90=E8=8F=9C=E5=8D=95=E4=BD=8D=E7=BD=AE=E8=AE=BE?= =?UTF-8?q?=E7=BD=AE=EF=BC=8C=E5=A2=9E=E5=BC=BA=E7=94=A8=E6=88=B7=E4=BA=A4?= =?UTF-8?q?=E4=BA=92=E4=BD=93=E9=AA=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/context-menu/robot-menu.vue | 17 +++++++++-------- src/components/context-menu/storage-menu.vue | 4 +--- 2 files changed, 10 insertions(+), 11 deletions(-) diff --git a/src/components/context-menu/robot-menu.vue b/src/components/context-menu/robot-menu.vue index c608115..305bcfb 100644 --- a/src/components/context-menu/robot-menu.vue +++ b/src/components/context-menu/robot-menu.vue @@ -1,5 +1,13 @@ @@ -134,6 +134,7 @@ import { getRobotStatusColor, getRobotStatusText } from '../../services/context-menu/robot-menu.service'; +import RobotImageSettingsModal from '../modal/robot-image-settings-modal.vue'; interface Props { robotInfo?: RobotInfo; diff --git a/src/components/context-menu/storage-menu.vue b/src/components/context-menu/storage-menu.vue index 1625bf4..6c3959f 100644 --- a/src/components/context-menu/storage-menu.vue +++ b/src/components/context-menu/storage-menu.vue @@ -40,7 +40,7 @@ v-if="showSubMenu && selectedLocation" :open="!!showSubMenu" :trigger="[]" - :placement="subMenuPlacement" + placement="rightTop" :get-popup-container="getSubMenuContainer" @open-change="handleSubMenuOpenChange" > @@ -197,8 +197,6 @@ const subMenuTriggerStyle = computed(() => { return style; }); -// 子菜单位置 - 使用 rightTop 确保左上角与父菜单右上角平齐 -const subMenuPlacement = 'rightTop' as const; // 获取子菜单弹出层容器 const getSubMenuContainer = () => document.body;