fix: corregir estructura de columnas para UTable usando accessorKey en lugar de key
This commit is contained in:
@@ -263,9 +263,13 @@ const displayColumns = computed(() => {
|
|||||||
const filtered = tableColumns.value
|
const filtered = tableColumns.value
|
||||||
.filter(col => visibleColumns.value.includes(col.key))
|
.filter(col => visibleColumns.value.includes(col.key))
|
||||||
.map(col => ({
|
.map(col => ({
|
||||||
key: col.key,
|
accessorKey: col.key,
|
||||||
label: col.label,
|
header: col.label,
|
||||||
sortable: true
|
cell: ({ row }: any) => {
|
||||||
|
const value = row.getValue(col.key)
|
||||||
|
if (value === null || value === undefined) return '-'
|
||||||
|
return String(value)
|
||||||
|
}
|
||||||
}))
|
}))
|
||||||
console.log('📊 displayColumns computed:', filtered.length, 'visible columns')
|
console.log('📊 displayColumns computed:', filtered.length, 'visible columns')
|
||||||
return filtered
|
return filtered
|
||||||
|
|||||||
Reference in New Issue
Block a user