@@ -15,6 +15,7 @@ import type {
15
15
import { getPathValue , validateValue } from '../utils/valueUtil' ;
16
16
import StickyContext from '../context/StickyContext' ;
17
17
import HoverContext from '../context/HoverContext' ;
18
+ import BodyContext from '../context/BodyContext' ;
18
19
import type { HoverContextProps } from '../context/HoverContext' ;
19
20
import warning from 'rc-util/lib/warning' ;
20
21
import PerfContext from '../context/PerfContext' ;
@@ -67,6 +68,7 @@ interface InternalCellProps<RecordType extends DefaultRecordType>
67
68
lastFixLeft ?: boolean ;
68
69
firstFixRight ?: boolean ;
69
70
lastFixRight ?: boolean ;
71
+ allColsFixedLeft ?: boolean ;
70
72
71
73
// ====================== Private Props ======================
72
74
/** @private Used for `expandable` with nest tree */
@@ -141,6 +143,7 @@ function Cell<RecordType extends DefaultRecordType>(
141
143
142
144
const perfRecord = React . useContext ( PerfContext ) ;
143
145
const supportSticky = React . useContext ( StickyContext ) ;
146
+ const { allColumnsFixedLeft } = React . useContext ( BodyContext ) ;
144
147
145
148
// ==================== Child Node ====================
146
149
const [ childNode , legacyCellProps ] = React . useMemo <
@@ -280,6 +283,7 @@ function Cell<RecordType extends DefaultRecordType>(
280
283
[ `${ cellPrefixCls } -fix-left` ] : isFixLeft && supportSticky ,
281
284
[ `${ cellPrefixCls } -fix-left-first` ] : firstFixLeft && supportSticky ,
282
285
[ `${ cellPrefixCls } -fix-left-last` ] : lastFixLeft && supportSticky ,
286
+ [ `${ cellPrefixCls } -fix-left-all` ] : lastFixLeft && allColumnsFixedLeft && supportSticky ,
283
287
[ `${ cellPrefixCls } -fix-right` ] : isFixRight && supportSticky ,
284
288
[ `${ cellPrefixCls } -fix-right-first` ] : firstFixRight && supportSticky ,
285
289
[ `${ cellPrefixCls } -fix-right-last` ] : lastFixRight && supportSticky ,
0 commit comments