<ion-header>
  <ion-toolbar>
    <ion-buttons slot="start">
      <ion-button color="medium" (click)="cancel()">取消</ion-button>
    </ion-buttons>
    <ion-title>TaskChain for AIpicture</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)]="userInputData[field.name]"
      placeholder="{{field.placeholder}}"></ion-input>
  </ion-item>
  }
</ion-content>