File tree Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Expand file tree Collapse file tree 1 file changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -144,6 +144,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
144
144
145
145
// ===================== Effects ======================
146
146
const [ scrollbarSize , setScrollbarSize ] = React . useState ( 0 ) ;
147
+
147
148
React . useEffect ( ( ) => {
148
149
setScrollbarSize ( getScrollBarSize ( ) ) ;
149
150
} ) ;
@@ -492,6 +493,10 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
492
493
[ `${ prefixCls } -layout-fixed` ] : tableLayout === 'fixed' ,
493
494
[ `${ prefixCls } -fixed-header` ] : fixHeader ,
494
495
[ `${ 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' ,
495
500
} ) }
496
501
style = { style }
497
502
id = { id }
You can’t perform that action at this time.
0 commit comments