From c781cda6dea4bad3f0b79dbfeeb4d726ff39deca Mon Sep 17 00:00:00 2001 From: zqm Date: Mon, 5 Jan 2026 16:01:16 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8D=95Area,=E5=8D=95tabpage=EF=BC=8C?= =?UTF-8?q?=E5=8F=8CPanel=E5=9C=BA=E6=99=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Robot/Web/src/DockLayout/DockLayout.vue | 37 ++++++++++++++++--- 1 file changed, 31 insertions(+), 6 deletions(-) diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index 5503299..964a397 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -713,12 +713,37 @@ const addFloatingPanel = (panel) => { // 使用children结构以兼容Render组件的渲染逻辑 children: { type: 'TabPage', - children: [{ - ...safePanel, - id: `panel-${Date.now()}`, - title: safePanel.title || '新建面板', - type: 'Panel' - }] + children: [ + { + ...safePanel, + id: `panel-${Date.now()}-1`, + title: panel?.title || '面板1', + type: 'Panel', + content: { + ...safePanel.content, + title: '面板1内容', + data: [ + { id: 1, label: '面板1数据1', value: '数据1' }, + { id: 2, label: '面板1数据2', value: '数据2' } + ] + } + }, + { + ...safePanel, + id: `panel-${Date.now()}-2`, + title: '面板2', + type: 'Panel', + content: { + ...safePanel.content, + title: '面板2内容', + color: '#68217A', + data: [ + { id: 3, label: '面板2数据1', value: '数据3' }, + { id: 4, label: '面板2数据2', value: '数据4' } + ] + } + } + ] } }