@squirrel-cloud/ui-vue
Version:
松鼠的坚果屋前端VUE框架
35 lines (34 loc) • 536 B
TypeScript
import { ComponentType } from '../../typings';
/**
* 消息提示配置项
*/
export interface MessageProps {
/**
* 消息内容
*/
message: string;
/**
* 消息类型
*/
type: ComponentType;
/**
* 顶部间距
*/
offsetTop: number;
/**
* 销毁回调
*/
onDestroy: () => void;
/**
* 关闭回调
*/
onClose: () => void;
/**
* 关闭时间延迟
*/
closeAfter?: number;
/**
* 消息提示ID
*/
id: string;
}