mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
add callback toggleOpen
This commit is contained in:
parent
62e55e2080
commit
e3ba415822
@ -35,6 +35,7 @@ english: DatePicker
|
|||||||
| size | 输入框大小,`large` 高度为 32px,`small` 为 22px,默认是 28px | string | 无 |
|
| size | 输入框大小,`large` 高度为 32px,`small` 为 22px,默认是 28px | string | 无 |
|
||||||
| locale | 国际化配置 | object | [默认配置](https://github.com/ant-design/ant-design/issues/424) |
|
| locale | 国际化配置 | object | [默认配置](https://github.com/ant-design/ant-design/issues/424) |
|
||||||
| onOk | 点击确定按钮的回调 | function(Date value) | 无 |
|
| onOk | 点击确定按钮的回调 | function(Date value) | 无 |
|
||||||
|
| toggleOpen | 弹出日历和关闭日历的回调 | function(status) | 无 |
|
||||||
| getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 |
|
| getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 |
|
||||||
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](http://ant.design/components/time-picker/#api) |
|
| showTime | 增加时间选择功能 | Object or Boolean | [TimePicker Options](http://ant.design/components/time-picker/#api) |
|
||||||
|
|
||||||
|
@ -69,6 +69,7 @@ export default function wrapPicker(Picker, defaultFormat) {
|
|||||||
this.setState({
|
this.setState({
|
||||||
open: e.open,
|
open: e.open,
|
||||||
});
|
});
|
||||||
|
this.props.toggleOpen && this.props.toggleOpen(e);
|
||||||
}
|
}
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Loading…
Reference in New Issue
Block a user