mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 18:14:13 +00:00
docs(vant): keep the doc consistent with the demo code (#10554)
This commit is contained in:
@@ -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);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user