add start end demo for datepicker

This commit is contained in:
yiminghe 2015-10-21 16:27:48 +08:00
parent 1e43c9ddc5
commit 8c71530838
3 changed files with 6 additions and 3 deletions

View File

@ -1,6 +1,6 @@
# 范围
- order: 3
- order: 6
设置 `disabledDate` 方法,来确定不可选时段。

View File

@ -60,7 +60,10 @@ function createPicker(TheCalendar) {
this.setState({
value: v
});
let timeValue = new Date(v.getTime());
let timeValue = null;
if (v) {
timeValue = new Date(v.getTime());
}
//onSelect.
if (this.props.onSelect) {
require('util-deprecate')(this.props.onSelect, 'onSelect property of Datepicker is deprecated, use onChange instead')(timeValue);

View File

@ -1,6 +1,6 @@
{
"name": "antd",
"version": "0.10.0-beta2",
"version": "0.10.0-beta3",
"stableVersion": "0.9.1",
"title": "Ant Design",
"description": "一个 UI 设计语言",