docs: fix picker typo (#11404)

This commit is contained in:
HaiWei Lian 2022-12-22 18:16:45 +08:00 committed by GitHub
parent 589b7b2998
commit 8043a9e0fe
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 6 deletions

View File

@ -64,7 +64,7 @@ export default {
```html
<van-field
v-model="result"
v-model="fieldValue"
is-link
readonly
label="City"
@ -93,7 +93,7 @@ export default {
{ text: 'Indiana', value: 'Indiana' },
{ text: 'Maine', value: 'Maine' },
];
const result = ref('');
const fieldValue = ref('');
const showPicker = ref(false);
const onConfirm = ({ selectedOptions }) => {
@ -102,9 +102,9 @@ export default {
};
return {
result,
columns,
onConfirm,
fieldValue,
showPicker,
};
},

View File

@ -74,7 +74,7 @@ export default {
```html
<van-field
v-model="value"
v-model="fieldValue"
is-link
readonly
label="城市"
@ -102,7 +102,7 @@ export default {
{ text: '绍兴', value: 'Shaoxing' },
{ text: '湖州', value: 'Huzhou' },
];
const result = ref('');
const fieldValue = ref('');
const showPicker = ref(false);
const onConfirm = ({ selectedOptions }) => {
@ -111,9 +111,9 @@ export default {
};
return {
result,
columns,
onConfirm,
fieldValue,
showPicker,
};
},