From 7df715f612d698fe5cfcdbb8311433aa8ff9896c Mon Sep 17 00:00:00 2001 From: zqm Date: Mon, 3 Nov 2025 17:26:28 +0800 Subject: [PATCH] =?UTF-8?q?=E5=88=9B=E5=BB=BA=E6=B5=AE=E5=8A=A8=E5=8C=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Windows/Robot/Web/src/DockLayout/Area.vue | 84 +++++++++---------- .../Robot/Web/src/DockLayout/DockLayout.vue | 41 ++++----- 2 files changed, 57 insertions(+), 68 deletions(-) diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue index 90df47e..d7b4349 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue @@ -1,53 +1,53 @@ diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index a826963..7dd9979 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -4,27 +4,23 @@ -
- -
+ @close="onCloseFloatingArea(area.id)" + /> @@ -44,6 +40,7 @@ let areaIdCounter = 1 // 添加新的浮动区域 const addFloatingArea = () => { + // 创建新的Area组件配置 const newArea = { id: `floating-area-${areaIdCounter++}`, title: `浮动区域 ${areaIdCounter - 1}`, @@ -51,8 +48,8 @@ const addFloatingArea = () => { y: 50 + (areaIdCounter - 2) * 20, width: 300, height: 200, - collapsed: false, - toolbarExpanded: false + WindowState: '正常', + showTitleBar: true } floatingAreas.value.push(newArea) } @@ -106,15 +103,7 @@ defineExpose({ overflow: hidden; } -/* 浮动区域样式 */ -.floating-area { - position: absolute; - z-index: 10; - border-radius: 4px; - box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); - background-color: #fff; - overflow: hidden; -} +/* 浮动区域样式已直接应用到Area组件 */ /* 添加浮动区域按钮样式 */ .add-floating-btn {