From 687100201cb8399c6fd2b266aa340c0ec9db177e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B4=94=E5=85=B0=E9=91=AB?= <1192065030@qq.com> Date: Mon, 14 Mar 2022 10:45:22 +0800 Subject: [PATCH] =?UTF-8?q?chore(Table):=20=E6=B7=BB=E5=8A=A0=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E9=BB=98=E8=AE=A4=E7=B1=BB=E5=9E=8B=20(#659)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/react-table/src/index.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-table/src/index.tsx b/packages/react-table/src/index.tsx index 02b468a27c..3549dc1436 100644 --- a/packages/react-table/src/index.tsx +++ b/packages/react-table/src/index.tsx @@ -4,7 +4,7 @@ import Thead from './Thead'; import { getLevelItems, getAllColumnsKeys } from './util'; import './style/index.less'; -export type TableColumns = { +export type TableColumns = { title?: string | ((data: TableColumns, rowNum: number, colNum: number) => JSX.Element) | JSX.Element; key?: string; width?: number; @@ -16,7 +16,7 @@ export type TableColumns = { [key: string]: any; }; -export interface TableProps extends IProps, Omit { +export interface TableProps extends IProps, Omit { prefixCls?: string; columns?: TableColumns[]; data?: Array;