diff --git a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue index 9859c4f..c91899d 100644 --- a/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue +++ b/AutoRobot/Windows/Robot/Web/src/DockLayout/DockLayout.vue @@ -27,6 +27,7 @@ :key="tabPage.id" :id="tabPage.id" :title="tabPage.title" + :panels="tabPage.panels" >
- -
+ +
- {{ tab.title }} + {{ panel.title }} ×
- - - - + +
@@ -39,15 +30,10 @@ import { defineProps, defineEmits, ref } from 'vue' const props = defineProps({ id: { type: String, required: true }, title: { type: String, default: '标签页' }, - // 可选的标签页数组配置 - tabs: { + // 从父组件传入的面板数组 + panels: { type: Array, default: () => [] - }, - // 默认激活的标签页索引 - activeIndex: { - type: Number, - default: 0 } })