我正在尝试为一个上夜班的人显示日历。我打算显示从当天下午 6 点到第二天凌晨 3 点的日历类型“resourceTimeline”。 我试过了
visibleRange: {
start: '2021-04-13 18:00:00',
end: '2020-04-14 03:59:59'
}
但它只显示当前日期直到午夜。
我尝试使用 slotMinTime
和 slotMaxTime
但如果 slotMinTime 大于 slotMaxTime 它会崩溃。
这是我的视图定义:
nightShift: {
type: 'resourceTimeline',
slotDuration: { hours: 1 },
visibleRange: {
start: '2021-04-13T18:00:00',
end: '2020-04-15 03:59:59'
},
buttonText: 'Night Shift',
slotLabelFormat: [
{
day: 'numeric',
weekday: 'short'
},
{
hour: 'numeric',
minute: 'numeric',
hourCycle: 'h23'
}
]
}
有什么方法可以实现我想要的吗?
答案 0 :(得分:0)
您可以将 slotMaxTime 设置为“28:00:00”