feat(CountDown): add change event (#5599)

This commit is contained in:
陈嘉涵
2020-01-23 10:22:15 +08:00
parent b83bed3b6c
commit 1404c82dba
4 changed files with 21 additions and 0 deletions

View File

@@ -141,6 +141,7 @@ export default createComponent({
setRemain(remain) {
this.remain = remain;
this.$emit('change', this.timeData);
if (remain === 0) {
this.pause();