Skip to content

Commit 38279b3

Browse files
committed
fix(Countdown): 修复倒计时不生效的问题
close #1464
1 parent 3171734 commit 38279b3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/pages/components/view/pages/countdown/index.wxml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<content-title name="Countdown" describe="倒计时">
44
<content-card l-content="content" name="基本倒计时">
55
<l-countdown />
6-
<l-countdown time="2020-5-1 18:30"/>
6+
<l-countdown time="2022-5-1 18:30"/>
77
</content-card>
88

99
<content-card l-content="content" name="传入时间为秒">

src/behaviors/countdown.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ export default Behavior({
33
behaviors: [],
44
properties: {
55
time: {
6-
type: Object,
6+
optionalTypes: [String, Object],
77
value: new Date().getTime() + 86400000,
88
observer: function (newVal, oldVal) {
99
if (newVal && !oldVal) {

0 commit comments

Comments
 (0)