short-generator.page.html 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  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]="title" (ionInput)="titleInput($event)"></ion-input>
  12. <h1>风格</h1>
  13. <ion-input [value]="style" (ionInput)="styleInput($event)"></ion-input>
  14. <!-- 词条列表编辑区域 -->
  15. <span (click)="showEntryList()">
  16. 当前词条 数量{{entryList.length}}
  17. </span>
  18. <comp-word-entry [entryList]="entryList" (entryListChange)="onEntryListChange($event)"></comp-word-entry>
  19. <!-- 按钮:执行消息生成函数 -->
  20. <ion-button (click)="sendMessage()" expand="block">生成大纲</ion-button>
  21. <!-- 展示:返回消息内容 -->
  22. <!-- 实时预览生成的小说大纲 -->
  23. <ion-textarea [(ngModel)]="generatedOutline" placeholder="生成的小说大纲" autoGrow="true"
  24. class="generated-outline"></ion-textarea>
  25. <!-- 按钮:执行消息生成函数 -->
  26. <ion-button (click)="sendOutline()" expand="block">生成小说</ion-button>
  27. <!-- 展示:返回消息内容 -->
  28. <!-- 实时预览生成的小说 -->
  29. <ion-textarea [(ngModel)]="generatedContent" placeholder="生成的小说" autoGrow="true"
  30. class="generated-content"></ion-textarea>
  31. <!-- 保存按钮 -->
  32. <ion-button (click)="saveNovel()" expand="block" color="success">保存小说</ion-button>
  33. </ion-content>