diff --git a/src/components/Table/index.ts b/src/components/Table/index.ts index d06ed94..a4363a5 100644 --- a/src/components/Table/index.ts +++ b/src/components/Table/index.ts @@ -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;