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
|
```html
|
||||||
<van-field
|
<van-field
|
||||||
v-model="result"
|
v-model="fieldValue"
|
||||||
is-link
|
is-link
|
||||||
readonly
|
readonly
|
||||||
label="City"
|
label="City"
|
||||||
@ -93,7 +93,7 @@ export default {
|
|||||||
{ text: 'Indiana', value: 'Indiana' },
|
{ text: 'Indiana', value: 'Indiana' },
|
||||||
{ text: 'Maine', value: 'Maine' },
|
{ text: 'Maine', value: 'Maine' },
|
||||||
];
|
];
|
||||||
const result = ref('');
|
const fieldValue = ref('');
|
||||||
const showPicker = ref(false);
|
const showPicker = ref(false);
|
||||||
|
|
||||||
const onConfirm = ({ selectedOptions }) => {
|
const onConfirm = ({ selectedOptions }) => {
|
||||||
@ -102,9 +102,9 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
result,
|
|
||||||
columns,
|
columns,
|
||||||
onConfirm,
|
onConfirm,
|
||||||
|
fieldValue,
|
||||||
showPicker,
|
showPicker,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
@ -74,7 +74,7 @@ export default {
|
|||||||
|
|
||||||
```html
|
```html
|
||||||
<van-field
|
<van-field
|
||||||
v-model="value"
|
v-model="fieldValue"
|
||||||
is-link
|
is-link
|
||||||
readonly
|
readonly
|
||||||
label="城市"
|
label="城市"
|
||||||
@ -102,7 +102,7 @@ export default {
|
|||||||
{ text: '绍兴', value: 'Shaoxing' },
|
{ text: '绍兴', value: 'Shaoxing' },
|
||||||
{ text: '湖州', value: 'Huzhou' },
|
{ text: '湖州', value: 'Huzhou' },
|
||||||
];
|
];
|
||||||
const result = ref('');
|
const fieldValue = ref('');
|
||||||
const showPicker = ref(false);
|
const showPicker = ref(false);
|
||||||
|
|
||||||
const onConfirm = ({ selectedOptions }) => {
|
const onConfirm = ({ selectedOptions }) => {
|
||||||
@ -111,9 +111,9 @@ export default {
|
|||||||
};
|
};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
result,
|
|
||||||
columns,
|
columns,
|
||||||
onConfirm,
|
onConfirm,
|
||||||
|
fieldValue,
|
||||||
showPicker,
|
showPicker,
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user