ant-design/components/datepicker/demo/select.md
2015-05-26 16:19:07 +08:00

397 B

基本

  • description: 选择日期的回调

var Datepicker = antd.datepicker;

var Picker = React.createClass({
  handleChange: function(value) {
    console.log(new Date(value.getTime()));
  },
  render: function() {
    return <Datepicker onSelect={this.handleChange} />
  }
});

React.render(
  <Picker />
, document.getElementById('components-datepicker-demo-select'));