fix(Table): handle reactive columns (#4412)

This commit is contained in:
VALERIY SINEVICH
2025-06-30 16:20:35 +03:00
committed by GitHub
parent fb9e7bb856
commit 4ce654076c
2 changed files with 48 additions and 2 deletions

View File

@@ -233,7 +233,9 @@ const tableRef = ref<HTMLTableElement | null>(null)
const tableApi = useVueTable({
...reactiveOmit(props, 'as', 'data', 'columns', 'caption', 'sticky', 'loading', 'loadingColor', 'loadingAnimation', 'class', 'ui'),
data,
columns: columns.value,
get columns() {
return columns.value
},
meta: meta.value,
getCoreRowModel: getCoreRowModel(),
...(props.globalFilterOptions || {}),