2.0.0 • Published 2 years ago

wh-calender-react v2.0.0

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

wh-calender-react

简介

  • react hooks日历选择组件
  • 自适应尺寸,支持PC、H5
  • 周/月,左右滑动翻页,点击翻页
  • 支持单选、多选
  • 支持typescript

使用

npm install wh-calender-react
import Calender from 'wh-calender-react'
import 'wh-calender-react/lib/style.css'

单选

<Calender
  dayCheckedCb={dayCheckedCb} // 选中的回调函数
  defaultCheckedDate={new Date('2022-02-02')} // 不传默认显示今天
/>

单选月 单选周

多选

<Calender
  isRange // 是否是多选
  rangeCheckedCb={rangeCheckedCb} // 选中的回调函数
  defaultCheckedRange={[new Date('2022-02-09'), new Date('2022-02-25')]} // 默认选中的时间段,不传默认不选中
/>

多选月 多选周

2.0.0

2 years ago

0.1.3

2 years ago

0.1.2

2 years ago

0.1.1

2 years ago

0.1.0

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago

0.0.0

2 years ago