@cainiaofe/cn-ui-m
Version:
29 lines (28 loc) • 586 B
TypeScript
import React from 'react';
export interface CnPopupProps extends React.HTMLAttributes<HTMLElement> {
/**
* 关闭按钮图标类型
*/
closeIconType?: string;
/**
* 是否显示
*/
visible: boolean;
/**
* 背景颜色
*/
bgColor?: string;
/**
* 关闭模式 Array<'close' | 'mask'>
*/
closeMode?: Array<'close' | 'mask'>;
children?: any;
/**
* 宽度
*/
width?: number;
/**
* 关闭回调 (reason: string, e?: any) => void;
*/
onClose?: (reason: string, e?: any) => void;
}