Skip to content

Latest commit

 

History

History
98 lines (60 loc) · 3.43 KB

README-zh.md

File metadata and controls

98 lines (60 loc) · 3.43 KB

count-down

Build Status NPM Download NPM Version NPM License PRs Welcome Automated Release Notes by gren

极易使用的倒计时组件 😃

示例

Table of Contents

Introduction

Use requestAnimationFrame

count-down 内部使用 requestAnimationFrame 计时,无论是浏览器进程任务繁忙亦或是页面在后台被挂起过,count-down 都依然能保持精确。

支持毫秒级计时

通过 slot 支持

智能的默认 format

默认 format 会根据传入的 days, hours, minutes, seconds 动态调整。比如传入 hours=1 时,默认 format 就是 hh 时 mm 分 ss 秒

⬆ Back to Top

Links

⬆ Back to Top

Install

yarn add @femessage/count-down

⬆ Back to Top

Inspiration

api 设计和实现参考了

⬆ Back to Top

Contributing

For those who are interested in contributing to this project, such as:

  • report a bug
  • request new feature
  • fix a bug
  • implement a new feature

Please refer to our contributing guide.

⬆ Back to Top

Contributors

Thanks goes to these wonderful people (emoji key):

Donald Shen
Donald Shen

💻 📖 ⚠️

This project follows the all-contributors specification. Contributions of any kind welcome!

⬆ Back to Top

License

MIT

⬆ Back to Top