mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-18 14:13:37 +08:00
Merge branch 'ecofe-master'
This commit is contained in:
commit
b2cb8a0f01
@ -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) |
|
||||
|
||||
|
@ -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() {
|
||||
|
Loading…
Reference in New Issue
Block a user