<van-field class="login-input" v-model="OaPassword" :type="!showPassword ? 'password' : 'text'" left-icon="user-o" :right-icon="showPassword ? 'eye-o' : 'closed-eye'" name="密码" placeholder="请输入密码" :rules="[{ required: true, message: '请输入密码' }]" @click-right-icon="showPassword = !showPassword" > <template slot="left-icon"> <span class="icon-ticketsuoding iconfont"></span> </template> </van-field>
标签:field,van,眼睛,查看,密码 From: https://www.cnblogs.com/dianzan/p/18321086