This commit is contained in:
2025-10-11 12:10:00 +08:00
parent 8107dee8d3
commit 4d0dc109bc
109 changed files with 152150 additions and 8037 deletions

View File

@@ -21,30 +21,18 @@ import dayGridPlugin from '@fullcalendar/daygrid'; // a plugin!
import interactionPlugin from '@fullcalendar/interaction'; // needed for dayClick
function EventCalendar(props) {
const {
calendarData,
initialDate,
onDateClick,
onEventClick,
contentHeight = 'auto',
height = '100%',
dayMaxEvents = true,
headerToolbar = false,
} = props;
const { calendarData, initialDate } = props;
return (
<FullCalendar
plugins={[dayGridPlugin, interactionPlugin]}
headerToolbar={headerToolbar}
headerToolbar={false}
initialView='dayGridMonth'
initialDate={initialDate}
contentHeight={contentHeight}
height={height}
dayMaxEvents={dayMaxEvents}
contentHeight='600'
events={calendarData}
editable={true}
dateClick={onDateClick}
eventClick={onEventClick}
height='100%'
/>
);
}