Wijmo 断言失败:预期日期

Assertion failed in Wijmo: Date expected

使用 wijmo 输入日期控件时 wj-input-date 出现错误 Wijmo 断言失败:预期日期。

<wj-input-date [(value)]="_deal.AppReceived" [format]="'M/d/yyyy'" class="ibox1 rightalign" [placeholder]="'M/d/yyyy'" [required]="false"></wj-input-date>

使用 wj-input-number 时相同 Assertion failed in Wijmo: Number expected

<wj-input-number [(value)]="_deal.TotalCommitment" class="ibox1 rightalign" [format]="'n2'"></wj-input-number>

在 Typescript 中导入指令

从'wijmo/wijmo.angular2.input'导入{WjInputModule};

使用html

 <wj-input-number #TotalCommitment [isRequired]="false" [(value)]="TotalCommitment"  class="ibox1 rightalign" [format]="'n2'"></wj-input-number>