Javascript 完整日历-最小最大时间+;SlotDuration不显示小时数列

Javascript 完整日历-最小最大时间+;SlotDuration不显示小时数列,javascript,calendar,fullcalendar,momentjs,Javascript,Calendar,Fullcalendar,Momentjs,我使用的是fullcalendar v2.9.1,我希望显示的日历的最慢持续时间为'00:90:00',最长持续时间为:“22:00:00”,最短持续时间为:“08:00:00” 但日历不会在左栏中显示小时数 当我删除最小/最大时间时,我注意到没有上午8点的时间,只有6:30和9:00(因为90分钟的慢速持续时间) 以下是设置: views: { agendaOneDay: { type: 'agenda', duration: { days: 1 },

我使用的是fullcalendar v2.9.1,我希望显示的日历的最慢持续时间为'00:90:00',最长持续时间为:“22:00:00”,最短持续时间为:“08:00:00”

但日历不会在左栏中显示小时数

当我删除最小/最大时间时,我注意到没有上午8点的时间,只有6:30和9:00(因为90分钟的慢速持续时间)

以下是设置:

views: {
    agendaOneDay: {
      type: 'agenda',
      duration: { days: 1 },
      // buttonText: '2 day',
      weekends: false,
      columnFormat: 'ddd M/D'
    }
  },
  timezone: "local",
  header: false,
  height: calendarService.getCalendarHeightViaScreenSize(contact),
  slotDuration: '00:90:00',
  slotEventOverlap: false,
  // slotLabelInterval: '02:00:00',
  defaultView: device_type_mobile ? 'agendaOneDay' : 'agendaWeek',
  eventBackgroundColor: 'white',
  eventTextColor: '#3f51b5',
  firstDay: 1,
  weekends: false,
  selectable: true,
  eventOverlap: false,
  selectOverlap: contact ? true : false,
  editable: contact ? false : true,
  maxTime: "22:30:00",
  minTime: "08:00:00",
  axisFormat: 'HH:mm',
  allDaySlot: false
有人能在这方面帮助我吗

更新: 我尝试使用moment.js:

slotDuration: moment.duration('00:90:00'),
即使这样,它也不起作用

谢谢

永远不会太晚

在“maxTime”上:|类型“string”不可赋值

你需要写:

minTime: duration("hh:mm:ss"),
maxTime: duration("hh:mm:ss"),