Skip to content

Commit f27ba95

Browse files
authored
Add optional title prop to MeasureCell
Added optional 'title' prop to MeasureCell component.
1 parent 8b6a875 commit f27ba95

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

src/Body/MeasureCell.tsx

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,12 @@ import useLayoutEffect from '@rc-component/util/lib/hooks/useLayoutEffect';
55
export interface MeasureCellProps {
66
columnKey: React.Key;
77
onColumnWidthChange: (key: React.Key, width: number) => void;
8+
title?: React.ReactNode;
89
}
910

10-
const MeasureCell: React.FC<MeasureCellProps> = ({ columnKey, onColumnWidthChange }) => {
11+
const MeasureCell: React.FC<MeasureCellProps> = (props) => {
12+
13+
const { columnKey, onColumnWidthChange, title } = props;
1114

1215
const cellRef = React.useRef<HTMLTableCellElement>(null);
1316

0 commit comments

Comments
 (0)