ant-design/components/datepicker/demo/range.md
2015-05-28 14:53:23 +08:00

466 B

范围

  • order: 3
  • description: 设置可选日期的范围,用 disabled 方法来定义不可选择时间。

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-range'));