uview-plus 3.4.62 → 3.4.63
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/changelog.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view class="u-count-down">
|
|
3
|
-
<slot
|
|
3
|
+
<slot :days="timeData.days" :hours="timeData.hours"
|
|
4
|
+
:minutes="timeData.minutes" :seconds="timeData.seconds">
|
|
4
5
|
<text class="u-count-down__text">{{ formattedTime }}</text>
|
|
5
6
|
</slot>
|
|
6
7
|
</view>
|
|
@@ -112,6 +113,7 @@
|
|
|
112
113
|
this.remainTime = remain
|
|
113
114
|
// 根据剩余的毫秒时间,得出该有天,小时,分钟等的值,返回一个对象
|
|
114
115
|
const timeData = parseTimeData(remain)
|
|
116
|
+
this.timeData = timeData;
|
|
115
117
|
this.$emit('change', timeData)
|
|
116
118
|
// 得出格式化后的时间
|
|
117
119
|
this.formattedTime = parseFormat(this.format, timeData)
|
package/package.json
CHANGED