Merge branch 'ecofe-master'

This commit is contained in:
afc163 2016-05-21 21:45:42 +08:00
commit b2cb8a0f01
2 changed files with 3 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

@ -13,6 +13,7 @@ export default function wrapPicker(Picker, defaultFormat) {
popupStyle: {},
onChange() {},
onOk() {},
toggleOpen() {},
locale: {},
align: {
offset: [0, -9],
@ -69,6 +70,7 @@ export default function wrapPicker(Picker, defaultFormat) {
this.setState({
open: e.open,
});
this.props.toggleOpen(e);
}
render() {