type TabsCompProps = { label: string; children: React.ReactNode; key: string; breadcrumbs: string[]; }[]; type DetailProps = { content: string; }; type TabsWithDetailProps = (TabsCompProps[number] & DetailProps)[]; // 示例 const tabsWithDetail: TabsWithDetailProps = [ { label: "Tab 1", children: Content 1, key: "1", breadcrumbs: ["Home", "Tab 1"], content: "Detail Content 1", }, { label: "Tab 2", children: Content 2, key: "2", breadcrumbs: ["Home", "Tab 2"], content: "Detail Content 2", }, ];