<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(field of fieldsArray;track field.name){
    <ion-item>
      <ion-input labelPlacement="stacked" label="请输入 {{field.name}}" [(ngModel)]="inputData[field.name]" placeholder="{{field.desc}}"></ion-input>
    </ion-item>
  }
</ion-content>