-
Notifications
You must be signed in to change notification settings - Fork 291
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #714 from AntzyMo/docs/countDown
Docs/countDown
- Loading branch information
Showing
11 changed files
with
137 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Component({ | ||
data: { | ||
time: 96 * 60 * 1000, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"component": true, | ||
"usingComponents": { | ||
"t-count-down": "tdesign-miniprogram/count-down/count-down" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<view class="flex base-time"> | ||
<t-count-down t-class="base-time-cls" time="{{ time }}" /> | ||
<view class="base-time-text"> 时分秒 </view> | ||
</view> | ||
|
||
<view class="flex base-time"> | ||
<t-count-down t-class="base-time-cls" format="HH:mm:ss:SSS" time="{{ time }}" millisecond /> | ||
<view class="base-time-text"> 带毫秒 </view> | ||
</view> | ||
|
||
<view class="flex base-time"> | ||
<t-count-down content="default" time="{{ time }}" theme="square"> </t-count-down> | ||
<view class="base-time-text"> 带方形底 </view> | ||
</view> | ||
|
||
<view class="flex base-time"> | ||
<t-count-down content="default" time="{{ time }}" theme="round"> </t-count-down> | ||
<view class="base-time-text"> 带圆形底 </view> | ||
</view> | ||
|
||
<view class="flex base-time"> | ||
<t-count-down content="default" time="{{ time }}" splitWithUnit theme="round" /> | ||
<view class="base-time-text"> 带单位 </view> | ||
</view> | ||
|
||
<view class="flex base-time"> | ||
<t-count-down content="default" time="{{ time }}" splitWithUnit theme="highlight" /> | ||
<view class="base-time-text"> 无底色带单位 </view> | ||
</view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
.flex { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.base-time { | ||
margin-top: 52rpx; | ||
justify-content: space-between; | ||
} | ||
|
||
.base-time-text { | ||
font-size: 20rpx; | ||
color: rgba(0, 0, 0, 0.4); | ||
width: 60%; | ||
} | ||
|
||
.base-time-cls { | ||
color: #333; | ||
font-weight: 700; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Component({ | ||
data: { | ||
time: 96 * 60 * 1000, | ||
}, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
{ | ||
"component": true, | ||
"usingComponents": { | ||
"t-count-down": "tdesign-miniprogram/count-down/count-down" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<view class="flex spec-item"> | ||
<view class="spec-item-left"> | ||
<t-count-down content="default" time="{{ time }}" theme="square" /> | ||
</view> | ||
<view class="spec-item-right"> | ||
<t-count-down time="{{ time }}" /> | ||
</view> | ||
<view class="spec-item-after"> S </view> | ||
</view> | ||
<view class="flex spec-item"> | ||
<view class="spec-item-left"> | ||
<t-count-down content="default" time="{{ time }}" theme="square" size="middle" /> | ||
</view> | ||
<view class="spec-item-right"> | ||
<t-count-down size="middle" time="{{ time }}" /> | ||
</view> | ||
<view class="spec-item-after"> M </view> | ||
</view> | ||
<view class="flex spec-item last-padding"> | ||
<view class="spec-item-left"> | ||
<t-count-down content="default" time="{{ time }}" theme="square" size="large"> </t-count-down> | ||
</view> | ||
<view class="spec-item-right"> | ||
<t-count-down size="large" time="{{ time }}" /> | ||
</view> | ||
<view class="spec-item-after"> L </view> | ||
</view> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
.flex { | ||
display: flex; | ||
align-items: center; | ||
} | ||
|
||
.spec-item { | ||
justify-content: space-between; | ||
margin-top: 32rpx; | ||
} | ||
|
||
.spec-item-right { | ||
width: 118 * 2rpx; | ||
} | ||
|
||
.spec-item-left { | ||
width: 176 * 2rpx; | ||
} | ||
|
||
.spec-item-after { | ||
font-size: 20rpx; | ||
color: rgba(0, 0, 0, 0.4); | ||
justify-content: center; | ||
display: inline-flex; | ||
align-items: center; | ||
width: 30%; | ||
} | ||
|
||
.last-padding { | ||
padding-bottom: 80rpx; | ||
} |