UNPKG

sard-uniapp

Version:

sard-uniapp 是一套基于 Uniapp + Vue3 框架开发的兼容多端的 UI 组件库

36 lines (35 loc) 1.02 kB
import { type StyleValue } from 'vue'; import { type DefaultProps } from '../config'; export interface CountDownProps { rootStyle?: StyleValue; rootClass?: string; time?: number; autoStart?: boolean; format?: string; millisecond?: boolean; } export declare const defaultCountDownProps: () => DefaultProps<CountDownProps>; 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;