UNPKG

@fesjs/fes-design

Version:
35 lines (34 loc) 1.04 kB
import { type Component } from 'vue'; type MessageType = 'info' | 'success' | 'warning' | 'error'; interface Options { type?: MessageType; duration: number; getContainer?: () => HTMLElement; maxCount?: number; top?: string; colorful?: boolean; content?: string; afterClose?: () => void; closable?: boolean; icon?: () => Component; } export declare const FMessage: { config(options: Partial<Options>): void; info: (content: string | Partial<Options>, duration?: number) => { destroy: () => void; }; success: (content: string | Partial<Options>, duration?: number) => { destroy: () => void; }; warning: (content: string | Partial<Options>, duration?: number) => { destroy: () => void; }; warn: (content: string | Partial<Options>, duration?: number) => { destroy: () => void; }; error: (content: string | Partial<Options>, duration?: number) => { destroy: () => void; }; destroy(): void; }; export default FMessage;