Skip to content

类型: CountdownConfig<> ​

属性 ​

duration ​

• duration: undefined | number

持续时间(单位:秒)


endAt ​

• endAt: undefined | string | number | Date | Dayjs

截止时间


now ​

• now: undefined | string | number | Date | Dayjs

当前时间


onChange ​

• onChange: undefined | (arg0: CountdownResult) => void

倒计时变化时的回调函数


onEnd ​

• onEnd: undefined | Function

倒计时结束时的回调函数


precision ​

• precision: undefined | "seconds" | "milliseconds"

更新精度('seconds' 或 'milliseconds')