feat: 微客宝H5客户端 - 基础架构+核心页面
This commit is contained in:
+20
@@ -0,0 +1,20 @@
|
||||
export type CurrentTime = {
|
||||
days: number;
|
||||
hours: number;
|
||||
total: number;
|
||||
minutes: number;
|
||||
seconds: number;
|
||||
milliseconds: number;
|
||||
};
|
||||
export type UseCountDownOptions = {
|
||||
time: number;
|
||||
millisecond?: boolean;
|
||||
onChange?: (current: CurrentTime) => void;
|
||||
onFinish?: () => void;
|
||||
};
|
||||
export declare function useCountDown(options: UseCountDownOptions): {
|
||||
start: () => void;
|
||||
pause: () => void;
|
||||
reset: (totalTime?: number) => void;
|
||||
current: import("vue").ComputedRef<CurrentTime>;
|
||||
};
|
||||
Reference in New Issue
Block a user