From 1dfb44dded088951ab7fa181b114d91850f0b16f Mon Sep 17 00:00:00 2001 From: Jack Yin Date: Tue, 4 Dec 2018 11:38:41 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A7=A3=E5=86=B3=E4=BA=86=E5=80=92=E8=AE=A1?= =?UTF-8?q?=E6=97=B6=E6=97=A0=E6=B3=95=E6=9B=B4=E6=96=B0=E6=97=B6=E9=97=B4?= =?UTF-8?q?=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 异步获取时间数据后,倒计时无法更新时间数据 --- src/count-down/index.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/count-down/index.js b/src/count-down/index.js index f1da533..8907854 100644 --- a/src/count-down/index.js +++ b/src/count-down/index.js @@ -1,6 +1,11 @@ Component({ properties: { - target: Number, + target: { + type: Number, + observer: function(newVal, oldVal) { + this.getFormat() + } + }, showDay: Boolean, callback: String, format: Array,