提交 eec965b0 作者: 翁进城

layout增加隐藏footer的属性

上级 181e7c8e
......@@ -35,6 +35,7 @@ const footerStyle: React.CSSProperties = {
type Props = {
children?: React.ReactNode;
layoutStyle?: React.CSSProperties;
hideFooter?: boolean;
};
export default function LayoutView(props: Props) {
......@@ -50,9 +51,11 @@ export default function LayoutView(props: Props) {
<NavHeader />
</Header>
<Content style={contentStyle}>{props.children}</Content>
<Footer style={footerStyle}>
<FooterView></FooterView>
</Footer>
{!props.hideFooter && (
<Footer style={footerStyle}>
<FooterView></FooterView>
</Footer>
)}
</Layout>
</Space>
);
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论