import { Component, OnInit } from '@angular/core';
import { EditTagComponent } from '../edit-tag/edit-tag.component';
import { IonTextarea ,IonItem, IonList } from '@ionic/angular/standalone';
import { IonButton } from '@ionic/angular/standalone';

@Component({
  selector: 'app-page-dream-analysis',
  templateUrl: './page-dream-analysis.component.html',
  styleUrls: ['./page-dream-analysis.component.scss'],
  imports:[
    EditTagComponent,IonList,IonItem,IonTextarea,IonButton
  ],
  standalone: true,
})
export class PageDreamAnalysisComponent  implements OnInit {
  // 梦境关键词和梦境描述
  dreamTags:Array<string>=[];
  dreamDesc:string="";

  setTagsValue(ev:any){
  console.log("setTagsValue",ev);
  this.dreamTags=ev;
  }
  userInput(ev:any){
    this.dreamDesc=ev.detail.value;
  }
  analysisDream(){
    console.log("关键词：",this.dreamTags);
    console.log("描述",this.dreamDesc);
    console.log("开始解析梦境");
  }

  constructor() { }

  ngOnInit() {}

}
