Browse Source

fix countdown 增加 startTime prop 属性变化监听

songqibin 5 years ago
parent
commit
480dfeaf5e
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/packages/countdown/countdown.vue

+ 3 - 0
src/packages/countdown/countdown.vue

@@ -122,6 +122,9 @@ const countdownTimer = {
     },
     endTime() {
       this.initTimer();
+    },
+    startTime() {
+      this.initTimer();
     }
   },
   methods: {