提交 eec965b0 作者: 翁进城

layout增加隐藏footer的属性

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