fix(ui): сохранить имя строки при прокрутке таблицы
This commit is contained in:
1 parent
5fbfc752fb
commit
e0f83bdf42
15 files changed
+59
-12
No files matched your search
@@ -37,12 +37,14 @@ export function StatisticsPivotGrid({
|
||||
const columns: CompactDataGridColumn<PivotGridRow>[] = [
|
||||
{
|
||||
id: "label",
|
||||
size: 140,
|
||||
header: "Измерение",
|
||||
accessorKey: "label",
|
||||
cell: (row) => <span className="truncate font-medium">{row.label}</span>,
|
||||
},
|
||||
...data.columns.map((col) => ({
|
||||
id: `c:${col.id}`,
|
||||
size: 110,
|
||||
header: col.label,
|
||||
accessorKey: `c:${col.id}` as const,
|
||||
cell: (row: PivotGridRow) => {
|
||||
@@ -71,6 +73,7 @@ export function StatisticsPivotGrid({
|
||||
})),
|
||||
{
|
||||
id: "total",
|
||||
size: 110,
|
||||
header: "Итого",
|
||||
accessorKey: "total",
|
||||
cell: (row) => (
|
||||
@@ -85,6 +88,7 @@ export function StatisticsPivotGrid({
|
||||
<CompactDataGrid
|
||||
data={rows}
|
||||
horizontalScroll
|
||||
pinnedColumnId="label"
|
||||
columns={columns}
|
||||
isLoading={isLoading}
|
||||
emptyTitle="Нет данных сводной"
|
||||
|
||||
Reference in new issue
Block a user