Skip to content

Commit 8fd21ea

Browse files
committed
fix test
1 parent e9d89ed commit 8fd21ea

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

src/Cell/index.tsx

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,12 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
123123

124124
const cellPrefixCls = `${prefixCls}-cell`;
125125

126-
const { allColumnsFixedLeft, rowHoverable, classNames, styles } = useContext(TableContext);
126+
const { allColumnsFixedLeft, rowHoverable, classNames, styles } = useContext(TableContext, [
127+
'allColumnsFixedLeft',
128+
'rowHoverable',
129+
'classNames',
130+
'styles',
131+
]);
127132

128133
// ====================== Value =======================
129134
const [childNode, legacyCellProps] = useCellRender(

src/FixedHolder/index.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ function useColumnWidth(colWidths: readonly number[], columCount: number) {
2626

2727
export interface FixedHeaderProps<RecordType> extends HeaderProps<RecordType> {
2828
className: string;
29+
style?: React.CSSProperties;
2930
noData: boolean;
3031
maxContentScroll: boolean;
3132
colWidths: readonly number[];

src/context/TableContext.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,6 @@ export type ScrollInfoType = [scrollLeft: number, scrollRange: number];
2424
export interface TableContextProps<RecordType = any> {
2525
// Scroll
2626
scrollX: number | string | true;
27-
style?: React.CSSProperties;
2827
classNames?: Partial<Record<SemanticName, string>>;
2928
styles?: Partial<Record<SemanticName, React.CSSProperties>>;
3029

0 commit comments

Comments
 (0)