问题描述
<form [formGroup]="filters" style="margin: 0 2px 4px;">
<mat-card>
<mat-card-content fxLayout="column" fxLayoutGap="7px">
...
<mat-form-field>
<input matInput formControlName="from" [owlDateTimeTrigger]="fromDate" [owlDateTime]="fromDate" placeholder="{{'timeTracking.from' | translate}}">
</mat-form-field>
<owl-date-time #fromDate></owl-date-time>
<mat-form-field>
<input matInput formControlName="till" placeholder="{{'timeTracking.till' | translate}}" [owlDateTimeTrigger]="tillDate" [owlDateTime]="tillDate">
</mat-form-field>
<owl-date-time #tillDate></owl-date-time>
...
</mat-card-content>
</mat-card>
</form>
组件:
this.filters = new FormGroup({
idItemType: new FormControl(),idUser: new FormControl({value: null}),justMe: new FormControl(false),isManul: new FormControl(false),from: new FormControl(null),till: new FormControl(null)
});
我可以选择一个值并按下 Set 按钮,但在该值未保存到输入字段之后:
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)