forked from ddrilling/asb_cloud_front
Добавлен NumericInput для соответствующей фабрики столбцов
This commit is contained in:
parent
ce486dd17b
commit
3f32269b6f
@ -1,5 +1,5 @@
|
|||||||
import { ReactNode } from 'react'
|
import { ReactNode } from 'react'
|
||||||
import { Select, Table as RawTable } from 'antd'
|
import { InputNumber, Select, Table as RawTable } from 'antd'
|
||||||
import { OptionsType } from 'rc-select/lib/interface'
|
import { OptionsType } from 'rc-select/lib/interface'
|
||||||
import { tryAddKeys } from './EditableTable'
|
import { tryAddKeys } from './EditableTable'
|
||||||
import { makeNumericSorter, makeStringSorter} from './sorters'
|
import { makeNumericSorter, makeStringSorter} from './sorters'
|
||||||
@ -144,7 +144,8 @@ export const makeNumericColumn = (
|
|||||||
onFilter: filterDelegate ? filterDelegate(dataIndex) : null,
|
onFilter: filterDelegate ? filterDelegate(dataIndex) : null,
|
||||||
sorter: makeNumericSorter(dataIndex),
|
sorter: makeNumericSorter(dataIndex),
|
||||||
width: width,
|
width: width,
|
||||||
render: renderDelegate??makeNumericRender(),
|
input: <InputNumber style={{ width: '100%' }}/>,
|
||||||
|
render: renderDelegate ?? makeNumericRender(),
|
||||||
align: 'right',
|
align: 'right',
|
||||||
...other
|
...other
|
||||||
})
|
})
|
||||||
|
Loading…
Reference in New Issue
Block a user