import { Button, Space } from "antd"; import HeaderBack from "../HeaderBack"; /** * 页面布局组件 */ function Page(props) { const { headerTitle, history, isShowHeader = true, headerPrevious = true, isShowFooter = true, isShowAllAction = true, backButtonText = "关闭", contentPadding = "20px", customActionButtons, extraActionButtons, } = props; return (
{(isShowAllAction && isShowHeader) && }
{props.children}
{ (isShowAllAction && isShowFooter) && (
{customActionButtons || ( {extraActionButtons} )}
) }
); } Page.displayName = "Page"; export default Page;