【发布时间】:2017-11-04 07:01:30
【问题描述】:
所以...我在使用 date-fns 和 Angular 4 日历 (https://github.com/mattlewis92/angular-calendar) 设置一小时事件时遇到了一些麻烦。
我实际上可以在月视图和周视图上看到安排的活动。当我使用日视图时会出现问题,有时该事件会显示一整天,而有时它根本不会显示。
下面是我用来设置事件的代码。谁能解释一下。
{
start : setHours(new Date('2017-06-07'), 1),
end: new Date('2017-06-07'),
title: 'FAKE APT',
color: colors.red,
actions: this.actions,
resizable: {
beforeStart: true,
afterEnd: true
},
draggable: true
},
【问题讨论】: