fullCalendar:事件未在网格上的预期位置显示

时间:2019-10-22 17:37:27

标签: fullcalendar

浏览了文档,但看不到为什么事件未正确放置在我的节点应用中:

Global.js:

var eventList = [];

document.addEventListener('DOMContentLoaded', function() { 
var eventDesc = {};

  eventDesc = { title: 'Test', start: '2019-10-22', backgroundColor:'red' }; eventList.push( eventDesc );

eventDesc = { title: 'Test2', start: '2019-10-23T10:00:00', end: '2019-10-23T11:00:00', backgroundColor:'blue' };   eventList.push( eventDesc );

  var calendarEl = document.getElementById('calendar'); 
  var calendar = new FullCalendar.Calendar(calendarEl, {
        defaultView: "timeGridWeek",
        height: "auto",
        slotDuration: "00:60:00",
        events: eventList,
        plugins: [ 'dayGrid', 'timeGrid' ]
      }
    );
  calendar.render(); 
});

获取以下视图(预计蓝色事件将在网格上上午10点出现,但完全不在网格上): grid view

0 个答案:

没有答案