fineui是帆软报表和BI产品线所使用的前端框架。
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

13 lines
646 B

type toastOptions = {
level: "success" | "warning" | "error" | "normal" | "loading"
autoClose?: boolean
callback?: Function
closable?: boolean
}
export type _msg = {
alert: (title: string, message?: string | { [key: string]: any }, callback?: (result?: boolean) => void) => void
confirm: (title: string, message?: string | { [key: string]: any }, callback?: (result: boolean) => void) => void
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void
toast: (message: string | Obj, options?: toastOptions | string, context?: HTMLElement) => Function
}