mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 10:07:07 +00:00
fix(Notify): Type 'Timeout' is not assignable to type 'number' (#8477)
Co-authored-by: yangwk <paul>
This commit is contained in:
@@ -59,7 +59,7 @@ function Notify(options: NotifyMessage | NotifyOptions) {
|
|||||||
clearTimeout(timer);
|
clearTimeout(timer);
|
||||||
|
|
||||||
if (options.duration! > 0) {
|
if (options.duration! > 0) {
|
||||||
timer = setTimeout(Notify.clear, options.duration);
|
timer = window.setTimeout(Notify.clear, options.duration);
|
||||||
}
|
}
|
||||||
|
|
||||||
return instance;
|
return instance;
|
||||||
|
Reference in New Issue
Block a user