<ion-header [translucent]="true">
  <ion-toolbar>
    <ion-title>
      示例：logo生成{{imagineWork?.progress || 0}}
    </ion-title> 
  </ion-toolbar>
</ion-header>

<ion-content [fullscreen]="true">
  <!-- 生成提示词 -->
  <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="图片提示词" autoGrow="true"></ion-textarea>
  <ion-button (click)="createImage()" expand="block">生成logo</ion-button>
  <!--logo画面提示词-->

  <div>
    {{PictureDescResult}}
  </div>

  <!-- 生成结果 -->
  @if(images.length) {
    @for(imageUrl of images;track imageUrl){
      <img [src]="imageUrl" alt="" srcset="">
    }
  }
  <!-- 生成状态 -->
  @if(!images.length){
    @if(imagineWork){
      <h1>生成中</h1>
    }
    @if(!imagineWork){
      <h1>未开始</h1>
    }
  }

</ion-content>