1.0.8 • Published 7 years ago

rc-material-calendar v1.0.8

Weekly downloads
2
License
ISC
Repository
github
Last release
7 years ago

react-material-calendar

material风格的日历组件

use

npm install react-material-calendar

Properties

参数说明类型默认值备注
mode日历显示风格stringhorizontaltodo
selectedMode日历选择模式,可单选,多选和连选'mutiple' | 'single' | 'range'mutiple连选还没做
defaultValue默认日期moment当天
yearRange年数Number20
yearStartFrom默认number当前年份
monthMode月份显示格式,可以以中文,英文,简写英文显示'zh' | 'en_long' | 'en'zh
disabledDate不可选日期function (date: moment)
showFooter是否显示booltrueTodo
onOk点击确定按钮的回调function ()Todo
onCancel点击关闭按钮的回调function ()Todo
onSelectDate选择日期时的回调,参数selected表示是否选中function ( date:moment, selected)这里应该改一下,只有选中才触发回调
onChangeMonth选择月份的回调,month的值在0-11之间function ( month:number, date: moment)
onChangeYear选择年份时的回调function (year:number, date: moment)

todo

  • range picker
  • css 管理
  • webpack 开发
  • 剩下的回调

开发注意事项

最好build前先执行

npm run clean:lib

清空lib文件夹

1.0.8

7 years ago

1.0.7

7 years ago

1.0.6

7 years ago

1.0.5

7 years ago

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago