UNPKG

tdesign-mobile-vue

Version:
31 lines (30 loc) 723 B
export interface TdUseCountDownProps { autoStart?: boolean; format?: string; millisecond?: boolean; size?: 'small' | 'medium' | 'large'; splitWithUnit?: boolean; theme?: 'default' | 'round' | 'square'; time?: number; onChange?: (time: TimeData) => void; onFinish?: () => void; } export interface TimeData { days: number; hours: number; minutes: number; seconds: number; milliseconds: number; } export declare type TdUseCountDownShowTimes = Array<{ mark?: string; value?: string | number; }>; export interface TdUseCountDown { time: { value: number; }; showTimes: TdUseCountDownShowTimes; pause?: () => void; resume?: () => void; }