forked from fanruan/fineui
zsmj
3 years ago
1 changed files with 10 additions and 4 deletions
@ -1,6 +1,12 @@ |
|||||||
|
type toastOptions = { |
||||||
|
level: "success" | "warning" | "error" | "common" | "loading" |
||||||
|
autoClose?: boolean |
||||||
|
callback?: Function |
||||||
|
} |
||||||
|
|
||||||
export type _msg = { |
export type _msg = { |
||||||
alert: (title: string, message?: string | {[key: string]: any}, callback?: (result?: boolean)=>void) => void |
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 |
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 |
prompt: (title: string, message?: string, value?: any, callback?: (result: string) => void, minWidth?: number) => void |
||||||
toast: (message: string, options?: object | string, context?: HTMLElement) => void |
toast: (message: string, options?: toastOptions | string, context?: HTMLElement) => void |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue