From fae9681b84c5913f3ddb4f71534121475cbf47de Mon Sep 17 00:00:00 2001 From: afc163 Date: Mon, 21 Oct 2019 13:25:34 +0800 Subject: [PATCH] :bug: fix ts errors --- src/TableCell.tsx | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/src/TableCell.tsx b/src/TableCell.tsx index adc8816a4..3cad2b111 100644 --- a/src/TableCell.tsx +++ b/src/TableCell.tsx @@ -18,6 +18,7 @@ export interface TableCellProps { indent?: number; indentSize?: number; column?: ColumnType; + title?: string; expandIcon?: React.ReactNode; component?: CustomizeComponent; } @@ -56,7 +57,7 @@ export default class TableCell extends React.Component extends React.Component; + if (textProps && textProps.children && typeof textProps.children === 'string') { + tdProps.title = textProps.children; + } } }