mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +00:00
fix(@vant/use): reset method param should be optional
This commit is contained in:
@@ -121,7 +121,7 @@ export function useCountDown(options: UseCountDownOptions) {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const reset = (totalTime: number) => {
|
const reset = (totalTime: number = options.time) => {
|
||||||
pause();
|
pause();
|
||||||
remain.value = totalTime;
|
remain.value = totalTime;
|
||||||
};
|
};
|
||||||
|
Reference in New Issue
Block a user