mirror of
https://github.com/youzan/vant.git
synced 2025-10-16 08:00:34 +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();
|
||||
remain.value = totalTime;
|
||||
};
|
||||
|
Reference in New Issue
Block a user