From 861a77ce447f32c45085d59f8c8a09cf5f5e0d87 Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Fri, 9 Oct 2020 19:54:43 +0800 Subject: [PATCH] chore(CountDown): use tsx --- src/count-down/{index.js => index.tsx} | 1 + 1 file changed, 1 insertion(+) rename src/count-down/{index.js => index.tsx} (99%) diff --git a/src/count-down/index.js b/src/count-down/index.tsx similarity index 99% rename from src/count-down/index.js rename to src/count-down/index.tsx index f005a5333..0deed0b3b 100644 --- a/src/count-down/index.js +++ b/src/count-down/index.tsx @@ -45,6 +45,7 @@ export default createComponent({ const resetTime = () => { reset(+props.time); + if (props.autoStart) { start(); }