jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/less/PageContainer/props.d.ts
2024-11-15 11:51:28 +08:00

78 lines
1.9 KiB
TypeScript

import { IBaseProps } from '../_util/base';
/**
* @description 页面容器,提供开箱即用的页面状态展示和基础能力。
*/
export interface IPageProps extends IBaseProps {
/**
* @description 安全区内边距位置 top=顶部 bottom=底部 both=顶部和底部
*/
safeArea?: 'top' | 'bottom' | 'both';
/**
* @description 加载中
*/
loading?: boolean;
/**
* @description 加载样式类型,参考 Loading 组件
*/
loadingType?: string;
/**
* @description 加载样式大小,参考 Loading 组件
*/
loadingSize?: string;
/**
* @description 加载样式颜色,参考 Loading 组件
*/
loadingColor?: string;
/**
* @description 页面异常状态
*/
status?: 'failed' | 'busy' | 'disconnected' | 'empty';
/**
* @description 页面异常状态-标题
*/
title?: string;
/**
* @description 页面异常状态-描述
*/
message?: string;
/**
* @description 页面异常状态-按钮文案
*/
actionText?: string;
/**
* @description 页面异常状态-次要按钮文案
*/
secondaryActionText?: string;
/**
* @description 页面异常状态-按钮点击事件
*/
onActionTap?: (e: any) => void;
/**
* @description 页面异常状态-次要按钮点击事件
*/
onSecondaryActionTap?: (e: any) => void;
}
export declare const PageDefaultProps: IPageProps;
export declare const BuiltinStatus: {
failed: {
image: string;
title: string;
message: string;
};
disconnected: {
image: string;
title: string;
message: string;
};
empty: {
title: string;
message: string;
image: string;
};
busy: {
image: string;
title: string;
message: string;
};
};