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

70 lines
1.6 KiB
TypeScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

import { IBaseProps } from '../_util/base';
/**
* @description 弹窗,可在其中加入具体内容,展示更多信息供用户使用。
*/
export interface IPopupProps extends IBaseProps {
/**
* @description 是否显示
* @default false
*/
visible: boolean;
/**
* @description 是否关闭后销毁内部元素
* @default false
*/
destroyOnClose: boolean;
/**
* @description 是否展示蒙层
* @default true
*/
showMask: boolean;
/**
* @description 弹窗布局
* @default "bottom"
*/
position: 'center' | 'top' | 'bottom' | 'left' | 'right';
/**
* @description 是否开启过渡动画
*/
animation: boolean;
/**
* @description 动画类型
* @default "transform"
*/
animationType: 'transform' | 'position';
/**
* @description 过渡动画时长,单位毫秒
*/
duration: number;
/**
* @description 内容区高度单位px
*/
height: number;
/**
* @description 内容区宽度单位px
*/
width: number;
/**
* @description 遮罩层类名
*/
maskClassName: string;
/**
* @description 遮罩层样式
*/
maskStyle: string;
zIndex: number;
/**
* @description 关闭时回调
*/
onClose?: () => void;
/**
* @description 完全打开时回调
*/
onAfterShow?: () => void;
/**
* @description 完全关闭时回调
*/
onAfterClose?: () => void;
}
export declare const PopupDefaultProps: Partial<IPopupProps>;