From 8d5b39cb126f7a640ea6e7ae4fb7a583e6dbcf8a Mon Sep 17 00:00:00 2001 From: zqm Date: Tue, 4 Nov 2025 11:30:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=9E=E7=8E=B0=E5=8A=9F=E8=83=BD=EF=BC=9A?= =?UTF-8?q?=E5=BD=93=E5=86=85=E5=AE=B9=E5=8C=BA=E5=8F=AA=E5=8C=85=E5=90=AB?= =?UTF-8?q?=E4=B8=80=E4=B8=AAPanel=E6=97=B6=EF=BC=8C=E6=8B=96=E5=8A=A8Pane?= =?UTF-8?q?l=E6=A0=87=E9=A2=98=E6=A0=8F=E5=8F=AF=E4=BB=A5=E7=A7=BB?= =?UTF-8?q?=E5=8A=A8Area?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Robot/Web/src/DockLayout/DockLayout.vue | 22 +++++++++---------- .../Robot/Web/src/DockLayout/Panel.vue | 4 ++-- 2 files changed, 13 insertions(+), 13 deletions(-) diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index 6dc3f4a..db2e24f 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -105,17 +105,17 @@ const addFloatingPanel = () => { showTitleBar: true, // 添加一个Panel,填充满父容器 panels: [ - { - id: `panel-${areaIdCounter - 1}-1`, - title: `面板 1`, - x: 0, - y: 0, - width: 300, // 与Area宽度相同 - height: 250, // 与Area高度相同 - collapsed: false, - toolbarExpanded: false - } - ] + { + id: `panel-${areaIdCounter - 1}-1`, + title: `面板 1`, + x: 0, + y: 0, + width: 100, + height: 100, + collapsed: false, + toolbarExpanded: false + } + ] } floatingAreas.value.push(newArea) } diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/Panel.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/Panel.vue index 1bd1ebb..ecba5b0 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/Panel.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/Panel.vue @@ -1,6 +1,6 @@