gtht-miniapp-sdk
Version:
gtht-miniapp-sdk 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库
36 lines (35 loc) • 909 B
TypeScript
export interface CountDownProps {
time?: number;
autoStart?: boolean;
format?: string;
millisecond?: boolean;
}
export declare const defaultCountDownProps: {
time: number;
autoStart: boolean;
format: string;
};
export interface CountDownSlots {
default?(props: {
time: CountDownCurrentTime;
}): any;
}
export interface CountDownEmits {
(e: 'change', time: CountDownCurrentTime): void;
(e: 'finish'): void;
}
export interface CountDownExpose {
start: () => void;
pause: () => void;
reset: () => void;
}
export interface CountDownCurrentTime {
milliseconds: number;
seconds: number;
minutes: number;
hours: number;
days: number;
total: number;
}
export declare function getCurrentTime(remainTime: number): CountDownCurrentTime;
export declare function formatTime(format: string, currentTime: CountDownCurrentTime): string;