<ion-content>
  <ion-segment [value]="tab"  (ionChange)="tabChange($event)">
    <ion-segment-button value="models">
      <ion-label>模型加载</ion-label>
    </ion-segment-button>
    <ion-segment-button value="feat68">
      <ion-label>特征提取</ion-label>
    </ion-segment-button>
    <ion-segment-button value="match">
      <ion-label>相似对比</ion-label>
    </ion-segment-button>
  </ion-segment>
  @if(tab=="match"){
   
  }

  @if(tab=="feat68"){
   
  }

  @if(tab=="models"){
    @for(text of textList;track text.title){
      <div style="display: flex;flex-direction: column;">
        <div style="display: flex;">
          <div style="width: 70%;">{{text?.title}}.{{text?.content}} </div>
          <div style="flex:1;display: flex; flex-direction: column;">
            <ion-button (click)="getTextVector(text)">特征向量</ion-button>
            @if(text?.vector){
              <div>向量 {{text?.vector}}</div>
              <!-- <ion-button (click)="selectText(text)">选中</ion-button> -->
            }
          </div>
        </div>

      </div>
    }
  }

</ion-content>
