feat(react-web-next): 新增.editorconfig和.prettierrc配置文件,添加public/.gitkeep占位文件
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
import React from 'react';
|
||||
import { PageContainer } from '@ant-design/pro-components';
|
||||
|
||||
/**
|
||||
* PageHeaderPlus:美化后的页面容器。保留 PageContainer 能力,增强标题与背景视觉。
|
||||
*/
|
||||
export interface PageHeaderPlusProps {
|
||||
title?: React.ReactNode;
|
||||
subTitle?: React.ReactNode;
|
||||
extra?: React.ReactNode;
|
||||
children?: React.ReactNode;
|
||||
}
|
||||
|
||||
const PageHeaderPlus: React.FC<PageHeaderPlusProps> = ({ title, subTitle, extra, children }) => {
|
||||
return (
|
||||
<PageContainer
|
||||
header={{
|
||||
title: (
|
||||
<span
|
||||
style={{
|
||||
color: 'var(--text-primary)',
|
||||
fontWeight: 700,
|
||||
}}
|
||||
>
|
||||
{title}
|
||||
</span>
|
||||
),
|
||||
subTitle,
|
||||
}}
|
||||
extra={extra}
|
||||
>
|
||||
{children}
|
||||
</PageContainer>
|
||||
);
|
||||
};
|
||||
|
||||
export default PageHeaderPlus;
|
||||
Reference in New Issue
Block a user