1

我在我的 Angular 4 项目中使用 devextreme 调度程序。我正在使用月、周和日视图。当我将maxAppointmentsPerCell的值设置为 2 之类的数字时,它给出

ERROR RangeError:视图更改时出现无效时间值错误。

我的代码:

<dx-scheduler
#scheduler
[dataSource]="schedulerData"
[views]='["day", "week", "month"]'
currentView="month"
[currentDate]="currentDate"
[startDayHour]="0"
[endDayHour]="24"
[showAllDayPanel]="false"
[firstDayOfWeek]="1"
[focusStateEnabled]="true"
(onAppointmentRendered)="onAppointmentRendered($event)"
(onAppointmentClick)="onApponintmentClick($event)"
(onOptionChanged)="onOptionChanged($event)"
(onCellClick)="onCellClick($event)"
(onAppointmentUpdating)="onAppointmentUpdating($event)"
maxAppointmentsPerCell="2"
[height]="800">
<dxo-editing #editingOptions
    [allowAdding]="false"
    [allowUpdating]="true"
    [allowDeleting]="false"
    [allowResizing]="true"
    [allowDragging]="true"
></dxo-editing>
</dx-scheduler>

当我将maxAppointmentsPerCell' 值设置为 'unlimited' 时,它不会引发错误。但是当约会超过 5 个月查看约会的文本消失。我需要将该值设置为最多 4,但我不知道如何处理该错误。我该如何解决这个问题?

4

0 回答 0