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 (