consult-picture.component_20241216085448.html 837 B

1234567891011121314151617181920212223242526272829303132333435
  1. <ion-header [translucent]="true">
  2. <ion-toolbar>
  3. <ion-title>
  4. 示例:logo生成{{imagineWork?.progress || 0}}
  5. </ion-title>
  6. </ion-toolbar>
  7. </ion-header>
  8. <ion-content [fullscreen]="true">
  9. <!-- 生成提示词 -->
  10. <ion-textarea [value]="userPrompt" (ionInput)="promptInput($event)" placeholder="图片提示词" autoGrow="true"></ion-textarea>
  11. <ion-button (click)="createImage()" expand="block">生成logo</ion-button>
  12. <!--logo画面提示词-->
  13. <div>
  14. {{PictureDescResult}}
  15. </div>
  16. <!-- 生成结果 -->
  17. @if(images.length) {
  18. @for(imageUrl of images;track imageUrl){
  19. <img [src]="imageUrl" alt="" srcset="">
  20. }
  21. }
  22. <!-- 生成状态 -->
  23. @if(!images.length){
  24. @if(imagineWork){
  25. <h1>生成中</h1>
  26. }
  27. @if(!imagineWork){
  28. <h1>未开始</h1>
  29. }
  30. }
  31. </ion-content>