Compare commits

...

3 Commits

Author SHA1 Message Date
chenjiahan
a308317f51 docs(changelog): 2.12.18 2021-05-10 16:04:22 +08:00
chenjiahan
9bd20b916a chore: release 2.12.18 2021-05-10 16:03:25 +08:00
chenjiahan
c5b4d1a663 fix(Coupon): timestamp can be string type 2021-05-10 16:02:37 +08:00
4 changed files with 18 additions and 2 deletions

View File

@ -16,6 +16,14 @@ Vant follows [Semantic Versioning 2.0.0](https://semver.org/lang/zh-CN/).
## Details
### [v2.12.18](https://github.com/youzan/vant/compare/v2.12.17...v2.12.18)
`2021-05-10`
**Bug Fixes**
- Coupon: timestamp can be string type [c5b4d1](https://github.com/youzan/vant/commit/c5b4d1a66372b94420146f9a640aee31f402889a)
### [v2.12.17](https://github.com/youzan/vant/compare/v2.12.16...v2.12.17)
`2021-05-08`

View File

@ -16,6 +16,14 @@ Vant 遵循 [Semver](https://semver.org/lang/zh-CN/) 语义化版本规范。
## 更新内容
### [v2.12.18](https://github.com/youzan/vant/compare/v2.12.17...v2.12.18)
`2021-05-10`
**Bug Fixes**
- CouponList: 修复时间为字符串格式时展示错误的问题 [c5b4d1](https://github.com/youzan/vant/commit/c5b4d1a66372b94420146f9a640aee31f402889a)
### [v2.12.17](https://github.com/youzan/vant/compare/v2.12.16...v2.12.17)
`2021-05-08`

View File

@ -1,6 +1,6 @@
{
"name": "vant",
"version": "2.12.17",
"version": "2.12.18",
"description": "Mobile UI Components built on Vue",
"main": "lib/index.js",
"module": "es/index.js",

View File

@ -10,7 +10,7 @@ function formatTimeStamp(timeStamp) {
if (timeStamp < 10 ** 12) {
return timeStamp * 1000;
}
return timeStamp;
return +timeStamp;
}
function getDate(timeStamp) {