全日历时间的一半时间,GridWeek的显示就像dayGridWeek

我在角度7中使用fullcalendar,其余视图(如月份和列表)工作正常,我在timeGrid中遇到问题。一世

HTML代码

 <full-calendar height="parent" #calendar defaultView="dayGridMonth"
            [plugins]="calendarPlugins" [header]="header"
            [nowIndicator]="true"  deepChangeDetection="true">
</full-calendar>

JS编码

@ViewChild('calendar', { static: false }) calendarComponent: FullCalendarComponent;
calendarPlugins = [dayGridPlugin, interactionPlugin, timeGridPlugin, timelinePlugin, listPlugin, resourceTimelinePlugin];
header = {
    left: 'prev,next, today',
    center: 'title',
    right: 'dayGridMonth,timeGridWeek,timeGridDay,listWeek'
};

enter image description here

评论