forked from fanruan/fineui
Browse Source
Merge in VISUAL/fineui from ~DAILER/fineui:master to master * commit '7229faac6a1dd7a506ebac47ce1ed97a96799512': DESIGN-3918 feat: toast新增loading效果 DESIGN-3918 feat: toast新增loading效果 DESIGN-3918 feat: toast新增loading效果 DESIGN-3918 feat: toast新增loading效果es6
Dailer
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 = { |
||||
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, options?: object | string, context?: HTMLElement) => void |
||||
toast: (message: string | Obj, options?: toastOptions | string, context?: HTMLElement) => void |
||||
} |
||||
|
Loading…
Reference in new issue