Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: expose TimePicker[open], close: #5775 & #5829 #5913

Merged
merged 1 commit into from
Apr 28, 2017

Conversation

benjycui
Copy link
Contributor

close: #5775 & #5829

@benjycui benjycui requested a review from afc163 April 26, 2017 08:12
@mention-bot
Copy link

@benjycui, thanks for your PR! By analyzing the history of the files in this pull request, we identified @liqi07, @afc163 and @yesmeck to be potential reviewers.

onOpen={this.toggleOpenStatus}
onClose={this.toggleOpenStatus}
addon={() => (
<Button size="small" type="primary" onClick={this.handleClose}>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this more React-like.

@benjycui
Copy link
Contributor Author

pending for react-component/collapse#67

@afc163
Copy link
Member

afc163 commented Apr 26, 2017

ci broken

@@ -25,6 +25,9 @@ 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 |
| onOpen | a callback function which will be called while panel opening | ({ open: boolean }): void | 无 |
| onClose | a callback function which will be called while panel closing | ({ open: boolean }): void | 无 |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

和 Menu 一样改成 onOpenChange 吧。

@benjycui
Copy link
Contributor Author

Updated.

@@ -25,6 +25,8 @@ 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 | 无 |
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

无 => -

format?: string;
onChange?: (time: moment.Moment, timeString: string) => void;
onOpenChange?: (status: boolean) => void;
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

status => open

@benjycui
Copy link
Contributor Author

后两个细节,我合并后再改。

@benjycui benjycui merged commit d48c208 into feature-2.10 Apr 28, 2017
@benjycui benjycui deleted the feat-time-picker branch April 28, 2017 01:40
@lock
Copy link

lock bot commented May 1, 2018

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked and limited conversation to collaborators May 1, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants