1.1.0 • Published 3 years ago

react-calendar-operate v1.1.0

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

说明

基于antd组件库开发

预览

日历

本地启动

git clone git@github.com:mkgrow/react-calendar.git
npm install
npm start

使用

 npm install react-calendar-operate
 
 import ReactCalendar from 'react-calendar-operate'
 
 <ReactCalendar
    date={monthDate}
    tasks={data}
    handleChangeState={handleChangeState}
    handleDelete={handleDelete}
    handleEdit={handleEdit}
 />
 
 1、只显示当前日历可不传参数
 2、切换日历请参考demo
 3、不需要操作框时handleChangeState、handleDelete、handleEdit三个方法不用

参数说明

date: 日期,默认为当前月
tasks:任务列表
handleChangeState: 更新任务状态
handleDelete: 删除
handleEdit: 编辑

Tasks字段

id: 1,
name: `test`,
status: 任务状态',
createdAt: 时间戳
updatedAt: 时间戳,
isActive: 激活状态,
startAt: 时间戳,
endAt: 时间戳

More

可直接使用,也可以复制代码到项目中修改
1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago