1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 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 {};
|