refactor usevuetable data

This commit is contained in:
pa
2026-01-24 19:25:00 +09:00
parent 2952f4d415
commit b4839c8ed5
23 changed files with 101 additions and 40 deletions

View File

@@ -181,7 +181,9 @@
const { table: currentTable } = useVrcxVueTable({
persistKey: 'photonEventTable:current',
data: currentRows,
get data() {
return currentRows.value;
},
columns: currentColumns.value,
getRowId: (row) => `${row?.photonId ?? ''}:${row?.created_at ?? ''}:${row?.type ?? ''}`,
initialSorting: [{ id: 'created_at', desc: true }],
@@ -190,7 +192,9 @@
const { table: previousTable } = useVrcxVueTable({
persistKey: 'photonEventTable:previous',
data: previousRows,
get data() {
return previousRows.value;
},
columns: previousColumns.value,
getRowId: (row) => `${row?.photonId ?? ''}:${row?.created_at ?? ''}:${row?.type ?? ''}`,
initialSorting: [{ id: 'created_at', desc: true }],