0.0.3 ⢠Published 7 years ago
@crv/vue-cutdown v0.0.3
vue-cutdown
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 | Cutdown start time |
| endTime | number | now | Cutdown end time |
| startText | string | Distance Start | text before cutdown |
| runningText | string | Distance End | text running cutdown |
| endText | string | It's over | text after cutdown |
| 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 cutdown show time |
| showTimeAfter | boolean | true | after cutdown show time |
Events
| Event name | Type | Description |
|---|---|---|
| onStart | Function | cutdown start callback |
| onEnd | Function | cutdown end callback |
Links
Install
$ npm i @crv/vue-cutdownContributing
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!