From 3f32269b6f440d48045f7a27043163a02851a312 Mon Sep 17 00:00:00 2001 From: goodm2ice Date: Fri, 17 Dec 2021 10:10:29 +0500 Subject: [PATCH] =?UTF-8?q?=D0=94=D0=BE=D0=B1=D0=B0=D0=B2=D0=BB=D0=B5?= =?UTF-8?q?=D0=BD=20NumericInput=20=D0=B4=D0=BB=D1=8F=20=D1=81=D0=BE=D0=BE?= =?UTF-8?q?=D1=82=D0=B2=D0=B5=D1=82=D1=81=D1=82=D0=B2=D1=83=D1=8E=D1=89?= =?UTF-8?q?=D0=B5=D0=B9=20=D1=84=D0=B0=D0=B1=D1=80=D0=B8=D0=BA=D0=B8=20?= =?UTF-8?q?=D1=81=D1=82=D0=BE=D0=BB=D0=B1=D1=86=D0=BE=D0=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Table/index.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Table/index.tsx b/src/components/Table/index.tsx index 54fa121..4e24fda 100644 --- a/src/components/Table/index.tsx +++ b/src/components/Table/index.tsx @@ -1,5 +1,5 @@ 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 { tryAddKeys } from './EditableTable' import { makeNumericSorter, makeStringSorter} from './sorters' @@ -144,7 +144,8 @@ export const makeNumericColumn = ( onFilter: filterDelegate ? filterDelegate(dataIndex) : null, sorter: makeNumericSorter(dataIndex), width: width, - render: renderDelegate??makeNumericRender(), + input: , + render: renderDelegate ?? makeNumericRender(), align: 'right', ...other })