File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
144144
145145 // ===================== Effects ======================
146146 const [ scrollbarSize , setScrollbarSize ] = React . useState ( 0 ) ;
147+
147148 React . useEffect ( ( ) => {
148149 setScrollbarSize ( getScrollBarSize ( ) ) ;
149150 } ) ;
@@ -492,6 +493,10 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
492493 [ `${ prefixCls } -layout-fixed` ] : tableLayout === 'fixed' ,
493494 [ `${ prefixCls } -fixed-header` ] : fixHeader ,
494495 [ `${ prefixCls } -fixed-column` ] : fixColumn ,
496+ [ `${ prefixCls } -has-fix-left` ] : flattenColumns [ 0 ] && flattenColumns [ 0 ] . fixed ,
497+ [ `${ prefixCls } -has-fix-right` ] :
498+ flattenColumns [ flattenColumns . length - 1 ] &&
499+ flattenColumns [ flattenColumns . length - 1 ] . fixed === 'right' ,
495500 } ) }
496501 style = { style }
497502 id = { id }
You can’t perform that action at this time.
0 commit comments