1.0.4 • Published 5 months ago

calendar-table v1.0.4

Weekly downloads
-
License
ISC
Repository
github
Last release
5 months ago

用途

生成每月计划表,之前的日期待做事项会自动添加删除线。

Calendar Table

使用方法

import { CalendarTable } from 'calendar-table';
import 'calendar-table/dist/index.min.css';

export default function Home() {
	const defaultItems = {
		'2025-03-06': ['hello, i want to off work', 'hello, i want to off work222'],
		'2025-03-04': ['hello, i want to off work1'],
	};
	return (
		<div className='h-[100vh] p-[20px]'>
			<CalendarTable todos={defaultItems} />
		</div>
	);
}

API 文档

参数说明类型默认值
currentMonth当前月份Dayjsdayjs()
todos待办事项{ key: string: string[] }
todoCallback待办事项回调函数(date: string, liIndex: number) => void
dateCallbak日期回调函数(date: string) => void
1.0.4

5 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.3

5 months ago

1.0.0

5 months ago