stepMinute 在 PrimeNG 的日历中不起作用

stepMinute not working in PrimeNG's Calendar

我在 PrimeNG 的日历中使用时间选择器并具有以下代码:

<p-calendar class="due-time" name="time-due" timeOnly="true" showTime="showTime" hourFormat="12" stepMinute="15" readonlyInput="readonlyInput" 
            [(ngModel)]="TimeDue" (ngModelChange)="updateTimeDue()"></p-calendar>

这一切都很好,除了我希望分钟到 increment/decrement 15,尽管添加了 stepMinute="15",如上所示,分钟仍然 increment/decrement 1. 我尝试将其更改为 [stepMinute]="15",但这给了我以下错误:

Can't bind to 'stepMinute' since it isn't a known property of 'p-calendar'. 1. If 'p-calendar' is an Angular component and it has 'stepMinute' input, then verify that it is part of this module. 2. If 'p-calendar' is a Web Component then add "CUSTOM_ELEMENTS_SCHEMA" to the '@NgModule.schemas' of this component to suppress this message.

如果我将其更改为 [attr.stepMinute]="15",则它会消除错误,但它又会上升和下降 1。我应该如何让 stepMinute 实际工作?

  • angular@2.4.3
  • primeng@2.0.0

两个示例(stepMinute="15" 和 [stepMinute]="15")都运行良好。

您使用的是什么版本的 PrimeNG 日历?