|
如附件所示,希望实现这个样式的登录密码输入框(右边有个叉样式的清除键)和ion-eye图标实现点击切换是否显示密码的功能?
我是新手,只能做到这样的效果,55
- <label class="item item-input">
- <span class="input-label">密码</span>
- <input type="password" ng-if="test1==false" ng-model="password" placeholder="请输入密码">
- <input type="text" ng-if="test1==true" ng-model="password" placeholder="请输入密码">
- <!--<input ng-class="type={'password':test1,'text':!test1}" ng-model="password" placeholder="请输入密码">-->
- <div ng-class="{'ion-eye':test1,'ion-eye-disabled':!test1}" style="font-size:200%" ng-click="showword()"></div>
- </label>
复制代码
求高手版主指教!
|
|