mirror of
https://github.com/youzan/vant.git
synced 2025-10-19 01:54:48 +00:00
docs(Form): fix form docs code (#11178)
This commit is contained in:
@@ -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;
|
||||
};
|
||||
|
Reference in New Issue
Block a user