mirror of
https://github.com/ArthurDanjou/ui.git
synced 2026-01-15 04:29:37 +01:00
fix(CommandPalette): options priority
This commit is contained in:
@@ -75,13 +75,13 @@ onMounted(() => {
|
||||
activateFirstOption()
|
||||
})
|
||||
|
||||
const options: ComputedRef<Partial<UseFuseOptions<Command>>> = computed(() => defu({}, {
|
||||
const options: ComputedRef<Partial<UseFuseOptions<Command>>> = computed(() => defu({}, props.options, {
|
||||
fuseOptions: {
|
||||
keys: ['label']
|
||||
},
|
||||
resultLimit: 12,
|
||||
matchAllWhenSearchEmpty: true
|
||||
}, props.options))
|
||||
}))
|
||||
|
||||
const fuse = props.groups.reduce((acc, group) => {
|
||||
const fuse = useFuse(query, group.commands, defu({}, group.options || {}, options.value))
|
||||
|
||||
Reference in New Issue
Block a user