Skip to content

Commit

Permalink
default txt bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Gala-1024 committed Jul 11, 2017
1 parent d44c6d8 commit e916f9c
Show file tree
Hide file tree
Showing 4 changed files with 369 additions and 201 deletions.
151 changes: 117 additions & 34 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

33 changes: 28 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,19 @@ npm install vue2-countdown --save
import CountDown from 'vue2-countdown'
components: {
CountDown
},
methods: {
countDownS_cb: function (x) {
console.log(x)
},
countDownE_cb: function (x) {
console.log(x)
}
}
```

```html
<count-down v-on:start_callback="countDownS_cb(1)" v-on:end_callback="countDownE_cb(1)" :currentTime="1481450106" :startTime="1481450110" :endTime="1481450115" :tipText="'距离开始文字1'" :tipTextEnd="'距离结束文字1'" :endText="'结束自定义文字2'"></count-down>
<count-down v-on:start_callback="countDownS_cb(1)" v-on:end_callback="countDownE_cb(1)" :currentTime="1481450106" :startTime="1481450110" :endTime="1481450115" :tipText="'距离开始文字1'" :tipTextEnd="'距离结束文字1'" :endText="'结束自定义文字2'" :dayTxt="'天'" :hourTxt="'小时'" :minutesTxt="'分钟'" :secondsTxt="'秒'"></count-down>
```

### options
Expand All @@ -37,18 +45,33 @@ components: {
- **type**: Number
- **required** : true
4. **tipText** - 开始倒计时之前的提示文字
- **type**: Number
- **type**: String
- **required** : false
- **default** : 距离开始
5. **tipTextEnd** - 开始倒计时之后的提示文字
- **type**: Number
- **type**: String
- **required** : false
- **default** : 距离结束
6. **endText** - 倒计时结束之后的提示文字
- **type**: Number
- **type**: String
- **required** : false
- **default** : 已结束

7. **dayTxt** - 自定义显示的天数文字
- **type**: String
- **required** : false
- **default** : :
8. **hourTxt** - 自定义显示的小时文字
- **type**: String
- **required** : false
- **default** : :
9. **secondsTxt** - 自定义显示的分钟文字
- **type**: String
- **required** : false
- **default** : :
10. **secondsFixed** - 自定义显示的秒数文字
- **type**: String
- **required** : false
- **default** : :
### callBack
1. **start_callback** - 开始倒计时结束之后的回调方法
- **type**: Function
Expand Down
Loading

0 comments on commit e916f9c

Please sign in to comment.