fix: add type to term param in filter-function Command prop
This commit is contained in:
parent
aef277bbfe
commit
afef9124ac
|
|
@ -74,7 +74,7 @@ const selectedValues = computed(() => new Set(props.column?.getFilterValue() as
|
||||||
</PopoverTrigger>
|
</PopoverTrigger>
|
||||||
<PopoverContent class="w-[200px] p-0" align="start">
|
<PopoverContent class="w-[200px] p-0" align="start">
|
||||||
<Command
|
<Command
|
||||||
:filter-function="(list: DataTableFacetedFilter['options'], term) => list.filter(i => i.label.toLowerCase()?.includes(term)) "
|
:filter-function="(list: DataTableFacetedFilter['options'], term: string) => list.filter(i => i.label.toLowerCase()?.includes(term)) "
|
||||||
>
|
>
|
||||||
<CommandInput :placeholder="title" />
|
<CommandInput :placeholder="title" />
|
||||||
<CommandList>
|
<CommandList>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user