diff --git a/src/components/Table/index.tsx b/src/components/Table/index.tsx index a4d6dc5..e726d2e 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/index.tsx @@ -146,28 +146,28 @@ export const makeNumericColumnPlanFact = (title: string, dataIndex: string, filt export const makeNumericStartEnd = ( title: string, dataIndex: string, - editable: boolean, + fixed: number, filters: object[], filterDelegate: (key: string | number) => any, renderDelegate: (_: any, row: object) => any, width: string, ) => makeGroupColumn( title, [ - makeNumericColumn('старт', dataIndex + '_start', filters, filterDelegate, renderDelegate, width, {editable}), - makeNumericColumn('конец', dataIndex + '_end', filters, filterDelegate, renderDelegate, width, {editable}) + makeNumericColumn('старт', dataIndex + 'Start', filters, filterDelegate, renderDelegate, width, makeNumericColumnOptions(fixed, dataIndex + 'Start')), + makeNumericColumn('конец', dataIndex + 'End', filters, filterDelegate, renderDelegate, width, makeNumericColumnOptions(fixed, dataIndex + 'End')) ]) export const makeNumericAvgRange = ( title: string, dataIndex: string, - editable: boolean, + fixed: number, filters: object[], filterDelegate: (key: string | number) => any, renderDelegate: (_: any, row: object) => any, width: string ) => makeGroupColumn( title, [ - makeNumericColumn('мин', dataIndex + '_min', filters, filterDelegate, renderDelegate, width, {editable}), - makeNumericColumn('сред', dataIndex + '_avg', filters, filterDelegate, renderDelegate, width, {editable}), - makeNumericColumn('макс', dataIndex + '_max', filters, filterDelegate, renderDelegate, width, {editable}) + makeNumericColumn('мин', dataIndex + 'Min', filters, filterDelegate, renderDelegate, width, makeNumericColumnOptions(fixed, dataIndex + 'Min')), + makeNumericColumn('сред', dataIndex + 'Avg', filters, filterDelegate, renderDelegate, width, makeNumericColumnOptions(fixed, dataIndex + 'Avg')), + makeNumericColumn('макс', dataIndex + 'Max', filters, filterDelegate, renderDelegate, width, makeNumericColumnOptions(fixed, dataIndex + 'Max')) ]) type PaginationContainer = {