12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- 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 关闭时回调
- */
- onClose: () => void;
- /**
- * @description 弹窗布局
- * @default "center"
- */
- position: 'center' | 'top' | 'bottom' | 'left' | 'right';
- /**
- * @desciption 是否开启过渡动画
- */
- animation: boolean;
- /**
- * @desciption 动画类型
- * @default "transform"
- */
- animationType: 'transform' | 'position';
- /**
- * @description 过渡动画时长,单位毫秒
- */
- duration: number;
- /**
- * @description 内容区高度,单位px
- */
- height: number;
- /**
- * @description 内容区宽度,单位px
- */
- width: number;
- /**
- * @description 遮罩层类名
- */
- maskClassName: string;
- /**
- * @description 遮罩层样式
- */
- maskStyle: string;
- zIndex: number;
- }
- export declare const PopupDefaultProps: Partial<IPopupProps>;
|