@@ -37,8 +37,8 @@ export interface CellProps<RecordType extends DefaultRecordType> {
3737 shouldCellUpdate ?: ( record : RecordType , prevRecord : RecordType ) => boolean ;
3838
3939 // Fixed
40- fixLeft ?: number | false ;
41- fixRight ?: number | false ;
40+ fixStart ?: number | false ;
41+ fixEnd ?: number | false ;
4242 firstFixLeft ?: boolean ;
4343 lastFixLeft ?: boolean ;
4444 firstFixRight ?: boolean ;
@@ -104,8 +104,8 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
104104 rowSpan,
105105
106106 // Fixed
107- fixLeft ,
108- fixRight ,
107+ fixStart ,
108+ fixEnd ,
109109 firstFixLeft,
110110 lastFixLeft,
111111 firstFixRight,
@@ -136,16 +136,16 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
136136
137137 // ====================== Fixed =======================
138138 const fixedStyle : React . CSSProperties = { } ;
139- const isFixLeft = typeof fixLeft === 'number' && supportSticky ;
140- const isFixRight = typeof fixRight === 'number' && supportSticky ;
139+ const isFixStart = typeof fixStart === 'number' && supportSticky ;
140+ const isFixEnd = typeof fixEnd === 'number' && supportSticky ;
141141
142- if ( isFixLeft ) {
142+ if ( isFixStart ) {
143143 fixedStyle . position = 'sticky' ;
144- fixedStyle . left = fixLeft as number ;
144+ fixedStyle . insetInlineStart = fixStart as number ;
145145 }
146- if ( isFixRight ) {
146+ if ( isFixEnd ) {
147147 fixedStyle . position = 'sticky' ;
148- fixedStyle . right = fixRight as number ;
148+ fixedStyle . insetInlineEnd = fixEnd as number ;
149149 }
150150
151151 // ================ RowSpan & ColSpan =================
@@ -190,16 +190,16 @@ function Cell<RecordType>(props: CellProps<RecordType>) {
190190 cellPrefixCls ,
191191 className ,
192192 {
193- [ `${ cellPrefixCls } -fix-left` ] : isFixLeft && supportSticky ,
193+ [ `${ cellPrefixCls } -fix-left` ] : isFixStart && supportSticky ,
194194 [ `${ cellPrefixCls } -fix-left-first` ] : firstFixLeft && supportSticky ,
195195 [ `${ cellPrefixCls } -fix-left-last` ] : lastFixLeft && supportSticky ,
196196 [ `${ cellPrefixCls } -fix-left-all` ] : lastFixLeft && allColumnsFixedLeft && supportSticky ,
197- [ `${ cellPrefixCls } -fix-right` ] : isFixRight && supportSticky ,
197+ [ `${ cellPrefixCls } -fix-right` ] : isFixEnd && supportSticky ,
198198 [ `${ cellPrefixCls } -fix-right-first` ] : firstFixRight && supportSticky ,
199199 [ `${ cellPrefixCls } -fix-right-last` ] : lastFixRight && supportSticky ,
200200 [ `${ cellPrefixCls } -ellipsis` ] : ellipsis ,
201201 [ `${ cellPrefixCls } -with-append` ] : appendNode ,
202- [ `${ cellPrefixCls } -fix-sticky` ] : ( isFixLeft || isFixRight ) && isSticky && supportSticky ,
202+ [ `${ cellPrefixCls } -fix-sticky` ] : ( isFixStart || isFixEnd ) && isSticky && supportSticky ,
203203 [ `${ cellPrefixCls } -row-hover` ] : ! legacyCellProps && hovering ,
204204 } ,
205205 additionalProps . className ,
0 commit comments