From f434772466039f3af2af33eb046c79206c32c86d Mon Sep 17 00:00:00 2001 From: Benjy Cui Date: Fri, 28 Apr 2017 09:48:48 +0800 Subject: [PATCH] docs: fix typo --- components/time-picker/index.en-US.md | 2 +- components/time-picker/index.tsx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/components/time-picker/index.en-US.md b/components/time-picker/index.en-US.md index 6030d747a0..4c8fcf0ca4 100644 --- a/components/time-picker/index.en-US.md +++ b/components/time-picker/index.en-US.md @@ -26,7 +26,7 @@ import moment from 'moment'; | defaultValue | to set default time | [moment](http://momentjs.com/) | - | | value | to set time | [moment](http://momentjs.com/) | - | | open | whether to popup panel | boolean | false | -| onOpenChange | a callback function which will be called while panel opening/closing | (status: boolean): void | 无 | +| onOpenChange | a callback function which will be called while panel opening/closing | (open: boolean): void | - | | placeholder | display when there's no value | string | "Select a time" | | onChange | a callback function, can be executed when the selected time is changing | function(time: moment, timeString: string): void | - | | format | to set the time format | string | "HH:mm:ss" | diff --git a/components/time-picker/index.tsx b/components/time-picker/index.tsx index ff643b71ed..41e6a7419f 100644 --- a/components/time-picker/index.tsx +++ b/components/time-picker/index.tsx @@ -14,7 +14,7 @@ export interface TimePickerProps { open?: boolean; format?: string; onChange?: (time: moment.Moment, timeString: string) => void; - onOpenChange?: (status: boolean) => void; + onOpenChange?: (open: boolean) => void; disabled?: boolean; placeholder?: string; hideDisabledOptions?: boolean;