chore(CommandPalette): support by prop and highlight

This commit is contained in:
Benjamin Canac
2022-10-09 13:31:11 +02:00
parent f0e482cf01
commit d29377f614
3 changed files with 43 additions and 3 deletions

View File

@@ -185,7 +185,23 @@
</div>
<UCard body-class="">
<UCommandPalette v-model="form.persons" multiple :groups="[{ key: 'persons', commands: people, customQuery, options: { fuseOptions: { useExtendedSearch: true, keys: ['name', 'static'] } } }]" command-attribute="name" />
<UCommandPalette
v-model="form.persons"
multiple
:groups="[{
key: 'persons',
commands: people,
customQuery,
options: {
fuseOptions: {
includeMatches: true,
useExtendedSearch: true,
keys: ['name']
}
}
}]"
command-attribute="name"
/>
</UCard>
</div>