tab7.page.html 986 B

12345678910111213141516171819202122232425262728293031
  1. <ion-header>
  2. <ion-toolbar>
  3. <ion-buttons slot="start">
  4. <ion-back-button defaultHref="/"></ion-back-button>
  5. </ion-buttons>
  6. <ion-title>短篇小说生成器</ion-title>
  7. </ion-toolbar>
  8. </ion-header>
  9. <ion-content class="ion-padding">
  10. <h1>标题</h1>
  11. <ion-input [value]="titlel" placeholder="输入标题" (ionInput)="titleInput($event)"></ion-input>
  12. <h1>要求</h1>
  13. <ion-input [value]="style" (ionInput)="styleInput($event)"></ion-input>
  14. <!-- 按钮:执行消息生成函数 -->
  15. <ion-button (click)="sendMessage()" expand="block">生成大纲</ion-button>
  16. <!-- <ion-textarea [(ngModel)]="generatedOutline" placeholder="生成的小说大纲" autoGrow="true"
  17. class="generated-outline"></ion-textarea> -->
  18. @if(isComplete){
  19. <fm-markdown-preview [content]="responseMsg"></fm-markdown-preview>
  20. }
  21. <!-- 保存按钮 -->
  22. <ion-button (click)="saveNovel()" expand="block" color="success">保存小说</ion-button>
  23. </ion-content>