Добавлен тип столбца "Диапозон со средним значением"

This commit is contained in:
goodmice 2021-10-11 16:10:19 +05:00
parent c2243f1eb6
commit 5e43b59d8c

View File

@ -167,6 +167,19 @@ export const makeNumericColumnPlanFact = (title: string, dataIndex: string, filt
makeNumericColumn('ф', dataIndex + 'Fact', filters, filterDelegate, renderDelegate, width),
])
export const makeNumericAvgRange = (
title: string,
dataIndex: string,
filters: object[],
filterDelegate: (key: string | number) => any,
renderDelegate: (_: any, row: object) => any,
width: string
) => makeGroupColumn( title, [
makeNumericColumn('мин', dataIndex + 'Min', filters, filterDelegate, renderDelegate, width),
makeNumericColumn('макс', dataIndex + 'Max', filters, filterDelegate, renderDelegate, width),
makeNumericColumn('сред', dataIndex + 'Avg', filters, filterDelegate, renderDelegate, width)
])
type PaginationContainer = {
skip?: number;
take?: number;