fix: restore PageContainer header with Tabs display

This commit is contained in:
Your Name 2026-03-30 17:12:02 +08:00
parent 6498edff1b
commit 42612b21ee

View File

@ -336,10 +336,10 @@ export function MyPageContainer({
return (
<PageContainer
fixedHeader
header={{
title: title,
style: { backgroundColor: '#FFF' },
}}
// header={{
// title: title,
// style: { backgroundColor: '#FFF' },
// }}
token={{
paddingBlockPageContainerContent: 0,
paddingInlinePageContainerContent: 0,
@ -357,34 +357,29 @@ export function MyPageContainer({
<PageContainer
fixedHeader
header={{
title: false,
style: { backgroundColor: '#F00' },
title: (
<Tabs
type="editable-card"
activeKey={activeKey}
onChange={handleTabChange}
onEdit={handleTabEdit}
hideAdd
size="middle"
renderTabBar={renderTabBar}
items={tabs.map((tab) => ({
key: tab.key,
label: tab.label,
closable: tab.closable,
}))}
style={{
marginTop: 6,
marginBottom: 0,
}}
className="tabs-header-only"
/>
),
style: { backgroundColor: '#FFF' },
}}
// header={{
// title: (
// <Tabs
// type="editable-card"
// activeKey={activeKey}
// onChange={handleTabChange}
// onEdit={handleTabEdit}
// hideAdd
// size="middle"
// // 标签size
// renderTabBar={renderTabBar}
// items={tabs.map((tab) => ({
// key: tab.key,
// label: tab.label,
// closable: tab.closable,
// }))}
// style={{
// marginTop: 6,
// marginBottom: 0,
// }}
// className="tabs-header-only"
// />
// ),
// style: { backgroundColor: '#F00', padding: '64px 15px 0 15px' },
// }}
token={{
paddingBlockPageContainerContent: 0,
paddingInlinePageContainerContent: 0,