vantui-edit
Version:
一套适用于Taro3及React的vantui组件库
33 lines (27 loc) • 752 B
TypeScript
import type { ForwardRefRenderFunction } from 'react'
import { ReactNode } from 'react'
import { ViewProps } from '@tarojs/components'
export interface ICountDownRef {
start: () => void
pause: () => void
reset: () => void
}
export interface ITimeData {
days: number
hours: number
minutes: number
seconds: number
milliseconds: number
}
export interface CountDownProps extends ViewProps {
millisecond?: boolean
time?: number
format?: string
autoStart?: boolean
children?: ReactNode
onChange?: (timeData: { detail: ITimeData }) => void
onFinish?: () => void
ref?: React.MutableRefObject<ICountDownRef | undefined>
}
declare const CountDown: ForwardRefRenderFunction<ICountDownRef, CountDownProps>
export { CountDown }