mirror of
https://github.com/youzan/vant.git
synced 2025-12-25 02:02:01 +08:00
[improvement] Notify: tsx & functional (#2810)
This commit is contained in:
7
types/notify.d.ts
vendored
7
types/notify.d.ts
vendored
@@ -1,10 +1,11 @@
|
||||
import Vue from 'vue';
|
||||
|
||||
type NotifyMessage = string | number;
|
||||
export type NotifyMessage = string | number;
|
||||
|
||||
export type NotifyOptions = {
|
||||
message?: NotifyMessage;
|
||||
value?: boolean;
|
||||
color?: string;
|
||||
message?: NotifyMessage;
|
||||
duration?: number;
|
||||
className?: any;
|
||||
background?: string;
|
||||
@@ -21,6 +22,8 @@ export interface Notify {
|
||||
(message: NotifyOptions | NotifyMessage): VanNotify;
|
||||
clear(): void;
|
||||
install(): void;
|
||||
currentOptions: NotifyOptions;
|
||||
defaultOptions: NotifyOptions;
|
||||
setDefaultOptions(options: NotifyOptions): void;
|
||||
resetDefaultOptions(): void;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user