UNPKG

kd-deliver-api-3dcat

Version:

KD-DELIVER-API-3DCAT

37 lines (36 loc) 745 B
import './index.css'; interface Message { message: string; type: 'info' | 'warning' | 'error' | 'success'; duration?: number; status?: string; } declare class MessageBox { static autoTimer: any; constructor(options: Message); message: string; type: string; duration?: number; status?: string; autoTimer: any; messageBox: HTMLElement; options: Message; /** * 初始化 */ init(): void; /** * 创建元素 */ createMessage(): void; /** * 控制显示 */ open(): void; /** * 控制隐藏 */ close(): void; } export declare function messagePlugin(options: Message): MessageBox; export {};