mirror of
https://github.com/youzan/vant.git
synced 2025-10-24 02:34:29 +00:00
docs(Form): fix ValidateRules.vue method validator,keep it consistent with the documentation. (#6159)
This commit is contained in:
@@ -67,7 +67,7 @@ export default {
|
||||
|
||||
methods: {
|
||||
validator(val) {
|
||||
return val === '1234';
|
||||
return /1\d{10}/.test(val);
|
||||
},
|
||||
|
||||
asyncValidator(val) {
|
||||
|
||||
Reference in New Issue
Block a user