react-calendar-picker

:calendar: 基于React封装的Calendar日历选择组件

View the Project on GitHub ChanceYu/react-calendar-picker

react-calendar-picker

Build Status

基于React封装的Calendar日历选择组件,简单易用 查看demo

预览

显示单个月份

react-calendar-picker react-calendar-picker react-calendar-picker

显示全部月份

react-calendar-picker react-calendar-picker react-calendar-picker

特点

安装

npm install

使用 查看demo

import React, { Component } from 'react';
import ReactDOM from 'react-dom';
import CalendarPicker from '../../src/CalendarPicker';

class Page extends Component {
  onChangeDate(date){
    console.log(date)
  }
  render() {
    return (
      <div>
        <CalendarPicker
          startDate="2017-07-17"
          endDate="2018-08-18"
          onChange={this.onChangeDate}
        />
      </div>
    );
  }
}

ReactDOM.render(
  <Page />,
  document.getElementById('app')
);

参数

License