chore(InputMenu): allow control of search query

This commit is contained in:
Benjamin Canac
2024-01-03 15:13:32 +01:00
parent f735db04d6
commit c2ef6237d8
3 changed files with 66 additions and 6 deletions

View File

@@ -0,0 +1,15 @@
<script setup>
const people = ['Wade Cooper', 'Arlene Mccoy', 'Devon Webb', 'Tom Cook', 'Tanya Fox', 'Hellen Schmidt', 'Caroline Schultz', 'Mason Heaney', 'Claudie Smitham', 'Emil Schaefer']
const selected = ref()
const query = ref('Wade')
</script>
<template>
<UInputMenu
v-model="selected"
v-model:query="query"
:options="people"
placeholder="Select a person"
/>
</template>