小程序wepy2 模拟vant PasswordInput, NumberKeyboard 密码输入框控件
vant weapp小程序端控件目前是没有PasswordInput,NumberKeyboard的。实现效果:
数字键盘组件代码(keyboard.wpy):
{{item.txt}}
密码提示框组件代码(pswInput.wpy):
{{arrPsw[index]||""}}
父组件调用:
短信验证码发送至150****8991请输入验证码
重新发送
{{codeTime}}S
{ navigationBarTitleText: '验证码密码框', usingComponents: { "pswInput":"../components/pswInput", "keyboard":"../components/keyboard", } }