add callback toggleOpen

This commit is contained in:
kaifei 2016-05-18 15:55:50 +08:00
parent 62e55e2080
commit e3ba415822
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@ english: DatePicker
| size | 输入框大小,`large` 高度为 32px`small` 为 22px默认是 28px | string | 无 |
| locale | 国际化配置 | object | [默认配置](https://github.com/ant-design/ant-design/issues/424) |
| onOk | 点击确定按钮的回调 | function(Date value) | 无 |
| toggleOpen | 弹出日历和关闭日历的回调 | function(status) | 无 |
| getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 |
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](http://ant.design/components/time-picker/#api) |

View File

@ -69,6 +69,7 @@ export default function wrapPicker(Picker, defaultFormat) {
this.setState({
open: e.open,
});
this.props.toggleOpen && this.props.toggleOpen(e);
}
render() {