0.1.0 • Published 5 years ago
@tmaito/countdown v0.1.0
Quick Start
Install
npm i @tmaito/countdown
// or
yarn add @tmaito/countdownUse
import { Countdown } form '@tmaito/countdown'// style
@import '@tmaito/countdown/dist/index.css'Api
| 参数 | 说明 | 类型 | 默认值 | |
|---|---|---|---|---|
| format | 格式化倒计时展示,参考 moment | string | HH:mm:ss | |
| prefix | 设置数值的前缀 | ReactNode | - | |
| suffix | 设置数值的后缀 | ReactNode | - | |
| value | 数值内容 | number | moment | - |
| onFinish | 倒计时完成时触发 | () => void | - | |
| mode | 可选值: card | string | - |
0.1.0
5 years ago