Socket
Book a DemoInstallSign in
Socket

react-date-range-ch

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-date-range-ch

修改react-date-range模块为中文

Source
npmnpm
Version
0.4.0
Version published
Weekly downloads
2
100%
Maintainers
1
Weekly downloads
 
Created
Source

react-date-range-ch

react-date-range进行了修改

使用

npm intall react-date-range-ch@x.x.x --save 其他请详见react-date-range

版本说明

0.1.0

汉化

0.2.0

禁止选择今天之前的日期

0.3.0

给Calendar增加两个属性:

  • disableDaysBefore 是否禁止选择今天之前的日期
  • disableArrow 是否不显示日期控件头部的prev和next按钮

0.4.0

给Calendar增加一个属性:

  • shownDate 设定日历的当前日期 Calendar.js:
const state = {
  date,
  shownDate : (shownDate || range && range['endDate'] || date).clone().add(offset, 'months'), // ayou 2016.11.23人工指定shownDate
  firstDayOfWeek: (firstDayOfWeek || moment.localeData().firstDayOfWeek()),
}

Keywords

react

FAQs

Package last updated on 23 Nov 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts