mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs: fix picker typo (#11404)
This commit is contained in:
parent
589b7b2998
commit
8043a9e0fe
@ -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,
|
||||
};
|
||||
},
|
||||
|
@ -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,
|
||||
};
|
||||
},
|
||||
|
Loading…
x
Reference in New Issue
Block a user