mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 22:36:31 +08:00
add start end demo for datepicker
This commit is contained in:
parent
1e43c9ddc5
commit
8c71530838
@ -1,6 +1,6 @@
|
||||
# 范围
|
||||
|
||||
- order: 3
|
||||
- order: 6
|
||||
|
||||
设置 `disabledDate` 方法,来确定不可选时段。
|
||||
|
||||
|
@ -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);
|
||||
|
@ -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 设计语言",
|
||||
|
Loading…
Reference in New Issue
Block a user