fix: corrige formato de colunas UTable para Nuxt UI v3 (TanStack Table)
Substitui o formato de colunas { key, label } (Nuxt UI v2) pelo formato
correto { id, accessorKey, header } exigido pelo TanStack Table no Nuxt UI v3.
Afetou 7 arquivos: EditaisTable, index, orgaos, concorrentes, contratos,
inteligencia/index e sistema/usuarios.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -4,12 +4,12 @@ import { orgaos } from '~/data/mock/orgaos'
|
||||
|
||||
const esferaLabel = { federal: 'Federal', estadual: 'Estadual', municipal: 'Municipal' }
|
||||
const columns = [
|
||||
{ key: 'nome', label: 'Órgão' },
|
||||
{ key: 'esfera', label: 'Esfera' },
|
||||
{ key: 'estado', label: 'UF' },
|
||||
{ key: 'totalParticipacoes', label: 'Participações' },
|
||||
{ key: 'totalVitorias', label: 'Vitórias' },
|
||||
{ key: 'taxaVitoria', label: 'Taxa' },
|
||||
{ id: 'nome', accessorKey: 'nome', header: 'Órgão' },
|
||||
{ id: 'esfera', accessorKey: 'esfera', header: 'Esfera' },
|
||||
{ id: 'estado', accessorKey: 'estado', header: 'UF' },
|
||||
{ id: 'totalParticipacoes', accessorKey: 'totalParticipacoes', header: 'Participações' },
|
||||
{ id: 'totalVitorias', accessorKey: 'totalVitorias', header: 'Vitórias' },
|
||||
{ id: 'taxaVitoria', accessorKey: 'taxaVitoria', header: 'Taxa' },
|
||||
]
|
||||
|
||||
const dados = computed(() => orgaos.map(o => ({
|
||||
|
||||
Reference in New Issue
Block a user