Files
bbq/src/app/shared/widget/from-to-search/from-to-search.widget.html
Taric Xin b7d054ab18 edit
2021-12-28 10:02:41 +08:00

11 lines
735 B
HTML

<sf-item-wrap [id]="id" [schema]="schema" [ui]="ui" [showError]="showError" [error]="error" [showTitle]="schema.title">
<ng-container *ngIf="type === 'date'">
<div style="justify-content: space-between;display: flex;align-items: center;">
<nz-date-picker [nzMode]="mode" [nzFormat]="displayFormat" [(ngModel)]="startDate"
(ngModelChange)="onChange($event)" nzPlaceHolder="开始时间" style="min-width: 45%;"></nz-date-picker>
<span style="padding: 4px">-</span>
<nz-date-picker [nzMode]="mode" [nzFormat]="displayFormat" [(ngModel)]="endDate"
(ngModelChange)="onChange($event)" nzPlaceHolder="结束时间" style="min-width: 45%;"></nz-date-picker>
</div>
</ng-container>
</sf-item-wrap>