<ion-header>
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-button color="medium" (click)="cancel()">取消</ion-button>
    </ion-buttons>
    <ion-title>用户输入</ion-title>
    <ion-buttons slot="end">
      <ion-button (click)="confirm()" [strong]="true">确认</ion-button>
    </ion-buttons>
  </ion-toolbar>
</ion-header>
<ion-content class="ion-padding">
  @for(filed of filedsArray;track filed.name){
    <ion-item>
      <ion-input labelPlacement="stacked" label="请输入：{{filed.name}}" [(ngModel)]="inputData[filed.name]" placeholder="{{filed.desc}}"></ion-input>
    </ion-item>
  }
</ion-content>