From b0d5b31e11f0a1e0b9b254db4a39232ad96b5244 Mon Sep 17 00:00:00 2001 From: afc163 Date: Fri, 29 May 2015 21:07:46 +0800 Subject: [PATCH] Time picker --- components/datepicker/demo/time.md | 15 +++++++++++++++ components/datepicker/index.jsx | 4 +++- 2 files changed, 18 insertions(+), 1 deletion(-) create mode 100644 components/datepicker/demo/time.md diff --git a/components/datepicker/demo/time.md b/components/datepicker/demo/time.md new file mode 100644 index 0000000000..d8374180b3 --- /dev/null +++ b/components/datepicker/demo/time.md @@ -0,0 +1,15 @@ +# 时间选择 + +- order: 4 +- description: 准确到秒的时间选择面板。 + +--- + +````jsx +var Datepicker = antd.datepicker; + +React.render( + +, document.getElementById('components-datepicker-demo-time')); +```` + diff --git a/components/datepicker/index.jsx b/components/datepicker/index.jsx index f4d0cc1021..e1d542e3d6 100644 --- a/components/datepicker/index.jsx +++ b/components/datepicker/index.jsx @@ -35,12 +35,14 @@ module.exports = React.createClass({ this.props.onSelect(new Date(this.state.value.getTime())); }, render: function () { + console.log(this.props.showTime); var calendar = ( + showTime={this.props.showTime} + showClear={false} /> ); return (