From a489d85e8bb300b0ae72944b9fd18af163fc6bda Mon Sep 17 00:00:00 2001 From: lihongxun945 Date: Thu, 24 Mar 2016 10:54:07 +0800 Subject: [PATCH] =?UTF-8?q?=E6=97=A5=E5=8E=86=E9=BB=98=E8=AE=A4=E6=98=BE?= =?UTF-8?q?=E7=A4=BA=E4=BB=8A=E5=A4=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- changelog.md | 10 +++++++++- package.json | 4 ++-- src/js/calendar.js | 5 +++++ 3 files changed, 16 insertions(+), 3 deletions(-) diff --git a/changelog.md b/changelog.md index 12fa04f..df185e5 100644 --- a/changelog.md +++ b/changelog.md @@ -1,4 +1,12 @@ -# v0.5.0 +# v0.5.1 - 2016/03/24 + +对应 `weui` 版本为 `0.4.0` + +- `Action Sheet` 现在可以点击背景关闭了。 +- 更新了 `Picker` 和 `Calendar` 样式,现在和官方样式更加统一了。 +- `Calendar` 现在如果没有设置 `value`,则默认显示今天。 + +# v0.5.0 - 2016/03/23 对应 `weui` 版本为 `v0.4.0`。 diff --git a/package.json b/package.json index 644e095..cd401bd 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "jquery-weui", - "version": "0.5.0", + "version": "0.5.1", "description": "为微信 Web 服务量身设计", "keywords": [ "weui", @@ -13,7 +13,7 @@ "Zepto" ], "scripts": {}, - "author": "任行", + "author": "言川", "repository": { "type": "git", "url": "https://github.com/lihongxun945/jquery-weui" diff --git a/src/js/calendar.js b/src/js/calendar.js index 38e1ad5..366056b 100644 --- a/src/js/calendar.js +++ b/src/js/calendar.js @@ -801,6 +801,11 @@ } else { p.container = $this; } + //默认显示今天 + if(!params.value) { + var today = new Date(); + params.value = [today.getFullYear() + "-" + (today.getMonth() + 1) + "-" + today.getDate()]; + } new Calendar($.extend(p, params)); }); };