import { MouseEvent, ComponentClass } from 'react' import { CommonEventFunction } from '@tarojs/components/types/common' import AtComponent from './base' export interface AtToastProps extends AtComponent { /** * 是否展示元素 * @default false */ isOpened/*;是已开*/: boolean /** * 元素的内容 */ text/*;文本*/?: string /** * icon 的类型 */ icon/*;图标*/?: string /** * 元素展示的图片 */ image/*;图片*/?: string /** * 元素的状态 */ status/*;状态*/?: 'error'/*;错误*/ | 'loading'/*;加载中*/ | 'success'/*;成功*/ /** * 元素持续的事件(设置为 0 将不会自动消失) * @default 3000 */ duration/*;时长*/?: number /** * 是否存在底部遮罩层(无法点击底部的内容区) */ hasMask/*;有罩*/?: boolean /** * 元素被点击之后触发的事件 */ onClick/*;当点*/?: CommonEventFunction /** * 元素被关闭之后触发的事件 */ onClose/*;当关*/?: CommonEventFunction } export interface AtToastState { _isOpened/*;_是已开*/: boolean } declare const AtToast: ComponentClass export default AtToast