docs(Form): fix form docs code (#11178)

This commit is contained in:
EmberSpirit
2022-10-26 16:25:15 +08:00
committed by GitHub
parent 22f832342a
commit 73b4210118
2 changed files with 3 additions and 3 deletions

View File

@@ -352,7 +352,7 @@ export default {
{ text: 'Maine', value: 'Maine' },
];
const onConfirm = (value) => {
const onConfirm = ({ selectedOptions }) => {
result.value = selectedOptions[0]?.text;
showPicker.value = false;
};

View File

@@ -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;
};