pay-admin/src/common/components/layout/MyPageContainer.tsx

28 lines
614 B
TypeScript
Raw Normal View History

2025-06-27 16:42:11 +08:00
import { PageContainer, PageContainerProps } from '@ant-design/pro-components';
import { Space } from 'antd';
export function MyPageContainer({
title,
children,
...rest
}: PageContainerProps) {
return (
<PageContainer
fixedHeader
header={{
title: title,
style: { backgroundColor: '#FFF' },
}}
token={{
paddingBlockPageContainerContent: 0,
paddingInlinePageContainerContent: 0,
}}
{...rest}
>
<Space direction="vertical" size="middle" style={{ width: '100%' }}>
{children}
</Space>
</PageContainer>
);
}