mirror of
https://github.com/youzan/vant.git
synced 2025-10-18 09:24:25 +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() {
|
||||
const value1 = ref('');
|
||||
const value2 = ref('');
|
||||
const value3 = ref('');
|
||||
const value3 = ref('abc');
|
||||
const value4 = ref('');
|
||||
const pattern = /\d{6}/;
|
||||
|
||||
@@ -129,7 +129,7 @@ export default {
|
||||
|
||||
setTimeout(() => {
|
||||
Toast.clear();
|
||||
resolve(/\d{6}/.test(val));
|
||||
resolve(val === '1234');
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
|
@@ -123,7 +123,7 @@ export default {
|
||||
setup() {
|
||||
const value1 = ref('');
|
||||
const value2 = ref('');
|
||||
const value3 = ref('');
|
||||
const value3 = ref('abc');
|
||||
const value4 = ref('');
|
||||
const pattern = /\d{6}/;
|
||||
|
||||
@@ -140,7 +140,7 @@ export default {
|
||||
|
||||
setTimeout(() => {
|
||||
Toast.clear();
|
||||
resolve(/\d{6}/.test(val));
|
||||
resolve(val === '1234');
|
||||
}, 1000);
|
||||
});
|
||||
|
||||
|
Reference in New Issue
Block a user