
<ion-input [value]="userInputText" (ionInput)="userInput($event)" type="text" placeholder="请输入事务"></ion-input>
<p>当前输入:{{userInputText}}</p> 
<ion-button fill="solid" (click)="addTag()" style="--background: rgb(250, 222, 222); --color: black;">添加事务</ion-button>


@for(tag of tags;track tag;){
  <ion-chip>{{tag}} <span (click)="deleteTag(tag)">X</span></ion-chip>
}