mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Form): fix ValidateRules.vue method validator,keep it consistent with the documentation. (#6159)
This commit is contained in:
parent
26547462da
commit
07ba98bb3d
@ -67,7 +67,7 @@ export default {
|
|||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
validator(val) {
|
validator(val) {
|
||||||
return val === '1234';
|
return /1\d{10}/.test(val);
|
||||||
},
|
},
|
||||||
|
|
||||||
asyncValidator(val) {
|
asyncValidator(val) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user