<view class="uni-form-item uni-column">
<view class="title">可查看密码的输入框</view>
<view class="with-fun">
<input type="number" class="uni-input" placeholder="请输入密码" :password="showPassword" />
<view class="uni-icon uni-icon-eye" :class="[!showPassword ? 'uni-active' : '']" @click="changePassword"></view>
</view>
</view>
直接给type="number"时,输入字母或者其他字符还是可以输入

退役熬夜选手
- 发布:2019-08-22 16:56
- 更新:2019-08-22 17:23
- 阅读:8790
