fix(InputMenu): take option-attribute into account to display label

This commit is contained in:
Benjamin Canac
2024-01-16 11:17:07 +01:00
parent b9fe74bca5
commit 1a937919a2
2 changed files with 13 additions and 3 deletions

View File

@@ -13,14 +13,14 @@ const people = [{
name: 'Tom Cook'
}]
const selected = ref(people[0].name)
const selected = ref(people[0].id)
</script>
<template>
<UInputMenu
v-model="selected"
:options="people"
value-attribute="name"
value-attribute="id"
option-attribute="name"
/>
</template>