diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index 47897ba..450fcf5 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -47,7 +47,7 @@ { // 使用Render期望的children结构 children: [ { - type: 'tabpage', + type: 'TabPage', id: `tabpage-${currentId}-1`, title: `标签页 1`, tabPosition: 'bottom', children: { - type: 'panel', + type: 'Panel', items: [ { - type: 'panel', + type: 'Panel', id: `panel-${currentId}-1-1`, title: `面板 ${currentId}`, x: 0, @@ -335,7 +335,7 @@ const onMaximize = (panelId) => { for (const area of floatingAreas.value) { if (area.children) { for (const child of area.children) { - if (child.type === 'tabpage' && child.children && child.children.type === 'panel') { + if (child.type === 'TabPage' && child.children && child.children.type === 'Panel') { const panels = child.children.items || [] if (panels.length === 1 && panels[0].id === panelId) { // 当区域只包含一个Panel时,切换Area和Panel的最大化状态 @@ -393,7 +393,7 @@ const onClosePanel = (areaId, panelId) => { const area = floatingAreas.value.find(a => a.id === areaId) if (area && area.children) { for (const child of area.children) { - if (child.type === 'tabpage' && child.children && child.children.type === 'panel') { + if (child.type === 'TabPage' && child.children && child.children.type === 'Panel') { const panels = child.children.items || [] const panelIndex = panels.findIndex(p => p.id === panelId) if (panelIndex !== -1) { @@ -1539,7 +1539,7 @@ const clearHiddenList = () => { /** * 统一停靠结束处理函数 * 根据拖拽类型和目标区域执行相应的停靠逻辑 - * @param {string} dragType - 拖拽类型 ('panel', 'area', 'tabpage') + * @param {string} dragType - 拖拽类型 ('Panel', 'Area', 'TabPage') * @param {string} sourceAreaId - 源Area的ID * @param {Object} options - 可选参数 * @returns {Object} 处理结果 {success: boolean, message: string, strategy?: string} diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/Render.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/Render.vue index eabae21..2a03d71 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/Render.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/Render.vue @@ -6,13 +6,13 @@ v-on="componentListeners" > -