feat: 本次提交更新内容如下

更了全局layout组件
This commit is contained in:
笔记本里的永平
2025-07-07 16:13:04 +08:00
parent 5ca8050fc5
commit 289947e68f
9 changed files with 529 additions and 441 deletions

View File

@@ -0,0 +1,35 @@
import React from 'react';
interface LayoutProps {
loading?: boolean;
children?: React.ReactNode;
header?: React.ReactNode;
footer?: React.ReactNode;
}
const Layout: React.FC<LayoutProps> = ({
loading,
children,
header,
footer
}) => {
return (
<div className="container">
{header && (
<header>
{header}
</header>
)}
<main>
{children}
</main>
{footer && (
<footer>
{footer}
</footer>
)}
</div>
);
};
export default Layout;