mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
docs(Form): fix form docs code (#11178)
This commit is contained in:
parent
22f832342a
commit
73b4210118
@ -352,7 +352,7 @@ export default {
|
||||
{ text: 'Maine', value: 'Maine' },
|
||||
];
|
||||
|
||||
const onConfirm = (value) => {
|
||||
const onConfirm = ({ selectedOptions }) => {
|
||||
result.value = selectedOptions[0]?.text;
|
||||
showPicker.value = false;
|
||||
};
|
||||
|
@ -378,7 +378,7 @@ export default {
|
||||
{ text: '湖州', value: 'Huzhou' },
|
||||
];
|
||||
|
||||
const onConfirm = (value) => {
|
||||
const onConfirm = ({ selectedOptions }) => {
|
||||
result.value = selectedOptions[0]?.text;
|
||||
showPicker.value = false;
|
||||
};
|
||||
@ -419,7 +419,7 @@ export default {
|
||||
setup() {
|
||||
const result = ref('');
|
||||
const showPicker = ref(false);
|
||||
const onConfirm = (value) => {
|
||||
const onConfirm = ({ selectedValues }) => {
|
||||
result.value = selectedValues.join('/');
|
||||
showPicker.value = false;
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user