mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(vant): keep the doc consistent with the demo code (#10554)
This commit is contained in:
parent
004f642622
commit
a33d304d53
@ -115,7 +115,7 @@ export default {
|
|||||||
setup() {
|
setup() {
|
||||||
const value1 = ref('');
|
const value1 = ref('');
|
||||||
const value2 = ref('');
|
const value2 = ref('');
|
||||||
const value3 = ref('');
|
const value3 = ref('abc');
|
||||||
const value4 = ref('');
|
const value4 = ref('');
|
||||||
const pattern = /\d{6}/;
|
const pattern = /\d{6}/;
|
||||||
|
|
||||||
@ -129,7 +129,7 @@ export default {
|
|||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
Toast.clear();
|
Toast.clear();
|
||||||
resolve(/\d{6}/.test(val));
|
resolve(val === '1234');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
@ -123,7 +123,7 @@ export default {
|
|||||||
setup() {
|
setup() {
|
||||||
const value1 = ref('');
|
const value1 = ref('');
|
||||||
const value2 = ref('');
|
const value2 = ref('');
|
||||||
const value3 = ref('');
|
const value3 = ref('abc');
|
||||||
const value4 = ref('');
|
const value4 = ref('');
|
||||||
const pattern = /\d{6}/;
|
const pattern = /\d{6}/;
|
||||||
|
|
||||||
@ -140,7 +140,7 @@ export default {
|
|||||||
|
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
Toast.clear();
|
Toast.clear();
|
||||||
resolve(/\d{6}/.test(val));
|
resolve(val === '1234');
|
||||||
}, 1000);
|
}, 1000);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user