mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-14 20:19:34 +01:00
fix(InputMenu): take option-attribute into account to display label
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user