fix(@vant/use): reset method param should be optional

This commit is contained in:
chenjiahan 2020-10-06 10:59:25 +08:00
parent a236004288
commit 6d483a8da5

View File

@ -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;
}; };