使用角度为5的Fullcalendar:https://www.npmjs.com/package/ng-fullcalendar
public onEventDropOrResize(event: {event:EventObject, revertFunc:any; duration:Duration}){
console.log(revertFunc); // undefined
console.log(event.event != null); // true
}
<ng-fullcalendar #ucCalendar [options]="calendarOptions"
(eventDrop)="onEventDropOrResize($event.detail)"
[(eventsModel)]="events">
</ng-fullcalendar>
如果您记录$event.detail
对象,则只有事件和持续时间对象。我希望参数与https://fullcalendar.io/docs/eventDrop
我必须编写自己的还原功能吗?