forked from fanruan/fineui
Browse Source
* commit 'd4f962e969303be6454f88f23cc7caf2ed51a315': DESIGN-3918 feat: toast新增loading效果 DESIGN-3918 feat: toast新增loading效果 DESIGN-3918 feat: toast新增loading效果 DESIGN-3918 feat: toast新增loading效果es6
superman
3 years ago
5 changed files with 26 additions and 10 deletions
@ -1,6 +1,12 @@ |
|||||||
|
type toastOptions = { |
||||||
|
level: "success" | "warning" | "error" | "normal" | "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 | Obj, options?: toastOptions | string, context?: HTMLElement) => void |
||||||
} |
} |
||||||
|
Loading…
Reference in new issue