【发布时间】:2021-11-17 01:53:48
【问题描述】:
<ion-input placeholder="Username" formControlName="userName" class="primary-input"></ion-input>
<ion-input [type]="passwordType" placeholder="Password" formControlName="password" autocomplete="off" class="primary-input">
<ion-icon name="eye" (click)="togglePasswordMode()" ></ion-icon>
</ion-input>
<div class="ion-margin-top">
<ion-button expand="block" (click)="!isSubmitted && login()" >LOGIN</ion-button>
</div>
The above is my code currenty showing like this
目前在开头显示图标,但我需要在结尾显示..
我尝试了带有 slot="end" 的 ion-item 作品,但我不想使用该文本框,因为文本框显示在右侧。我需要一些不使用 ion-item 的替代解决方案..
我正在使用 ionic 5 ..请一些对 css 的帮助 编辑:
.primary-input {
background: aliceblue;
color: #999999;
border-radius: 5px;
margin-bottom: 10px;
}
编辑: 这是 ion-item 的输出
【问题讨论】:
-
谢谢,但不适合我
标签: css angular ionic-framework