jiaqingjiayi-xiaochengxu/甲情_甲意/node_modules/antd-mini/less/Toast/props.d.ts

48 lines
1.1 KiB
TypeScript
Raw Normal View History

2024-11-15 03:51:28 +00:00
import { IBaseProps, IconType } from '../_util/base';
/**
* @description
*/
type EnumToastType = 'success' | 'warning' | 'error' | 'loading';
export interface IToastProps extends IBaseProps {
/**
* @description Toast
*/
onClose: (e: any) => void;
/**
* @description Toast
*/
content: string;
/**
* @description Toast
*/
icon: IconType;
/**
* @description Toast icon icon
*/
image: string;
/**
* @description Toast
* @default 2000
*/
duration: number;
/**
* @description Toast
*/
visible: boolean;
/**
* @description
*/
showMask: boolean;
/**
* @description Toast
*/
maskCloseable: boolean;
maskStyle: string;
/**
* @description Toast
*/
type: EnumToastType;
}
export declare const ToastDefaultProps: Partial<IToastProps>;
export {};