diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue index 339d086..77378bd 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/Area.vue @@ -199,6 +199,30 @@ const isSinglePanel = computed(() => { return false; }); +// 计算属性:是否是只有一个TabPage且有多个Panel的情况 +const isSingleTabPageWithMultiplePanels = computed(() => { + // 检查children配置 + if (props.children) { + const childrenArray = Array.isArray(props.children) ? props.children : [props.children]; + + // 只有一个child且是TabPage + if (childrenArray.length === 1 && childrenArray[0].type === 'TabPage') { + const tabPage = childrenArray[0]; + const tabPageChildren = tabPage.children; + + if (tabPageChildren) { + const tabPageChildrenArray = Array.isArray(tabPageChildren) ? tabPageChildren : [tabPageChildren]; + + // TabPage包含多个Panel + return tabPageChildrenArray.length > 1; + } + } + } + + // 默认不是 + return false; +}); + // 计算属性:是否显示标题栏 const shouldShowTitleBar = computed(() => { // 基础条件:props.showTitleBar为true @@ -207,6 +231,9 @@ const shouldShowTitleBar = computed(() => { // 单面板场景不显示标题栏 if (isSinglePanel.value) return false; + // 只有一个TabPage且有多个Panel的情况不显示标题栏 + if (isSingleTabPageWithMultiplePanels.value) return false; + // 检查children配置 if (props.children) { const childrenArray = Array.isArray(props.children) ? props.children : [props.children]; diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index 964a397..54225c9 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -713,6 +713,7 @@ const addFloatingPanel = (panel) => { // 使用children结构以兼容Render组件的渲染逻辑 children: { type: 'TabPage', + tabPosition: 'bottom', children: [ { ...safePanel, diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue index f71ebbe..754e002 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/TabPage.vue @@ -1,7 +1,7 @@