0.0.2 ⢠Published 6 years ago
@crv/vue-countdown v0.0.2
vue-countdown
Table of Contents
Introduction
š¦ This is a vue plugin base on Vue2.x
Demo
Usage
Porps
| Prop name | Type | Default | Description |
|---|---|---|---|
| currentTime | number | now | Current time(server time better) |
| startTime | number | now | Countdown start time |
| endTime | number | now | Countdown end time |
| startText | string | Distance Start | text before countdown |
| runningText | string | Distance End | text running countdown |
| endText | string | It's over | text after countdown |
| dayTxt | string | day(s) | day_text |
| hourTxt | string | : | hour_text |
| minutesTxt | string | : | minutes_text |
| secondsTxt | string | : | seconds_text |
| showTip | boolean | true | tip message display |
| showTimeBefore | boolean | true | before countdown show time |
| showTimeAfter | boolean | true | after countdown show time |
Events
| Event name | Type | Description |
|---|---|---|
| onStart | Function | countdown start callback |
| onEnd | Function | countdown end callback |
Links
Install
$ npm i @crv/vue-countdownContributing
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
Contributors
Thanks goes to these wonderful people (emoji key):
This project follows the all-contributors specification. Contributions of any kind welcome!