From f17c29bd0a9a553056c0f0e8d181dc64c3ba7416 Mon Sep 17 00:00:00 2001 From: vutpov Date: Thu, 25 Jan 2024 08:52:37 +0700 Subject: [PATCH] allow overide on table component props --- package.json | 2 +- src/index.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index c1724b4..cad1739 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@cubetiq/enhance-antd-table", - "version": "2.2.3", + "version": "2.2.4", "description": "enhance-antd-table antd-table @antd", "contributors": [ { diff --git a/src/index.tsx b/src/index.tsx index 8d13848..c767201 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -322,14 +322,14 @@ const EnhanceAntdTable: React.FC = (props) => { dataSource={dataSource} columns={columnsResult} components={{ - ...props.restProps?.components, header: { cell: ResizableTitle }, body: { wrapper: MotionBody, row: MotionRow - } + }, + ...props.restProps?.components }} />