password: [ /* { validator: checkPassword, trigger: 'blur' }*/ { pattern: /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])(?=.*[!@#$%^&,.*]).{8,19}$/, message: '请输入8-19位,由大小写字母、数字和特殊符号组合的密码' }, { required: true, message: "用户密码不能为空", trigger: "blur" }, { min: 8, max: 19, message: '用户密码长度必须介于 8 和 19 之间', trigger: 'blur' } ],
标签:vue,19,校验,密码,正则,trigger,blur,message From: https://www.cnblogs.com/nextgg/p/16665401.html