1、vue中的template,贴出表单代码。
template2、script部分,psdShow初始值微false,默认是type:password。
psdShow初始值3、,点击眼睛图标切换时,通过v-if控制转换psdShow,来控制type和图标的切换。
togglePsd 眼睛图标style如有更好的方法,可@我,欢迎挑衅。
1、vue中的template,贴出表单代码。
template2、script部分,psdShow初始值微false,默认是type:password。
psdShow初始值3、,点击眼睛图标切换时,通过v-if控制转换psdShow,来控制type和图标的切换。
togglePsd 眼睛图标style如有更好的方法,可@我,欢迎挑衅。
本文标题:vue2 密码框的明密文切换
本文链接:https://www.haomeiwen.com/subject/nqoedxtx.html
网友评论