File tree Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Expand file tree Collapse file tree 1 file changed +10
-2
lines changed Original file line number Diff line number Diff line change @@ -191,6 +191,15 @@ watch(() => statusFilter.value, (newVal) => {
191191 }
192192})
193193
194+ const email = computed ({
195+ get : (): string => {
196+ return (table .value ?.tableApi ?.getColumn (' email' )?.getFilterValue () as string ) || ' '
197+ },
198+ set : (value : string ) => {
199+ table .value ?.tableApi ?.getColumn (' email' )?.setFilterValue (value || undefined )
200+ }
201+ })
202+
194203const pagination = ref ({
195204 pageIndex: 0 ,
196205 pageSize: 10
@@ -214,11 +223,10 @@ const pagination = ref({
214223 <template #body >
215224 <div class =" flex flex-wrap items-center justify-between gap-1.5" >
216225 <UInput
217- :model-value = " (table?.tableApi?.getColumn(' email')?.getFilterValue() as string) "
226+ v-model = " email"
218227 class =" max-w-sm"
219228 icon =" i-lucide-search"
220229 placeholder =" Filter emails..."
221- @update:model-value =" table?.tableApi?.getColumn('email')?.setFilterValue($event)"
222230 />
223231
224232 <div class =" flex flex-wrap items-center gap-1.5" >
You can’t perform that action at this time.
0 commit comments