File tree Expand file tree Collapse file tree 2 files changed +3
-99
lines changed Expand file tree Collapse file tree 2 files changed +3
-99
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ import isVisible from '@rc-component/util/lib/Dom/isVisible';
55import { useContext } from '@rc-component/context' ;
66import TableContext from '../context/TableContext' ;
77import type { ColumnType } from '../interface' ;
8- import { prepareMeasureTitle } from '../utils/measureUtil' ;
98
109export interface MeasureRowProps {
1110 prefixCls : string ;
@@ -38,8 +37,9 @@ const MeasureRow: React.FC<MeasureRowProps> = ({
3837 { columnsKey . map ( columnKey => {
3938 const column = columns . find ( col => col . key === columnKey ) ;
4039 const rawTitle = column ?. title ;
41- const titleForMeasure = prepareMeasureTitle ( rawTitle ) ;
42-
40+ const titleForMeasure = React . isValidElement < React . RefAttributes < any > > ( rawTitle )
41+ ? React . cloneElement ( rawTitle , { ref : null } )
42+ : rawTitle ;
4343 return (
4444 < MeasureCell
4545 key = { columnKey }
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments