vant form表单限制长度
可以使用 pattern 来限制,例如说 :
rules="[{pattern: /^.{6,12}$/, message:'密码要在6位~12位之间', trigger: 'onChange'}]"