31 lines
920 B
TypeScript
31 lines
920 B
TypeScript
import type { FC, ReactNode } from "react";
|
|
|
|
export interface PageProps {
|
|
/** 头部返回组件的标题 */
|
|
headerTitle?: ReactNode;
|
|
/** 历史记录对象,用于返回上一页,默认使用 window.history.back */
|
|
history?: {
|
|
goBack?: () => void;
|
|
[key: string]: any;
|
|
};
|
|
/** 是否显示头部组件,默认 true */
|
|
isShowHeader?: boolean;
|
|
/** 是否显示头部组件返回按钮,默认 true */
|
|
headerPrevious?: boolean;
|
|
/** 是否显示底部组件,默认 true */
|
|
isShowFooter?: boolean;
|
|
/** 是否显示头部和底部组件,默认 true */
|
|
isShowAllAction?: boolean;
|
|
/** 取消按钮文字,默认 "关闭" */
|
|
backButtonText?: string;
|
|
/** 自定义底部操作按钮组 */
|
|
customActionButtons?: ReactNode;
|
|
/** 额外底部操作按钮组 */
|
|
extraActionButtons?: ReactNode;
|
|
}
|
|
|
|
/** 页面布局组件 */
|
|
declare const Page: FC<PageProps>;
|
|
|
|
export default Page;
|