明密文输入框,支持4或6位。用于支付密码/房间
wepy-com-pwdfield
Event
适用于房间号输入,验证码输入,密码等有位数限制明密文输入框
使用 Usagenpm install -S wepy-com-pwdfield
import Pwdfield from 'wepy-com-pwdfield' export ... components = { pwdfield: Pwdfield }
<pwdfield :sixdig="sixdig" :display="display" color="#444751" @value="handleValue" />
默认是选择数字,从1
到4
,颜色是#444751
参数 | 说明 | 类型 | 可选值 | 默认值 |
---|---|---|---|---|
sixdig | 开启六位数 | Boolean | - | - |
display | 明密文 | Boolean | - | true |
color | 边框颜色 | String | - | #444751 |
参数 | 说明 | 返回值 |
---|---|---|
value | 实时获取填写变化 | String |
版权声明:
1、该文章(资料)来源于互联网公开信息,我方只是对该内容做点评,所分享的下载地址为原作者公开地址。2、网站不提供资料下载,如需下载请到原作者页面进行下载。