[bugfix] Toast: missing type definition of clear method (#3542)

This commit is contained in:
neverland 2019-06-18 14:23:08 +08:00 committed by GitHub
parent acd0a9eb82
commit 6a6cc1cef7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -18,13 +18,13 @@
&__item {
height: @action-sheet-item-height;
}
&__item--disabled {
color: @gray;
&--disabled {
color: @gray;
&:active {
background-color: @white;
&:active {
background-color: @white;
}
}
}

2
types/toast.d.ts vendored
View File

@ -32,7 +32,7 @@ export interface Toast {
loading(options?: ToastOptions | ToastMessage): VanToast;
success(options?: ToastOptions | ToastMessage): VanToast;
fail(options?: ToastOptions | ToastMessage): VanToast;
clear(): void;
clear(all?: boolean): void;
install(): void;
setDefaultOptions(options: ToastOptions): void;
resetDefaultOptions(): void;