@@ -369,7 +369,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
369
369
const colWidths = React . useMemo ( ( ) => pureColWidths , [ pureColWidths . join ( '_' ) ] ) ;
370
370
const stickyOffsets = useStickyOffsets ( colWidths , flattenColumns . length , direction ) ;
371
371
const fixHeader = hasData && scroll && validateValue ( scroll . y ) ;
372
- const fixColumn = scroll && validateValue ( scroll . x ) ;
372
+ const horizonScroll = scroll && validateValue ( scroll . x ) ;
373
373
374
374
let scrollXStyle : React . CSSProperties ;
375
375
let scrollYStyle : React . CSSProperties ;
@@ -382,7 +382,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
382
382
} ;
383
383
}
384
384
385
- if ( fixColumn ) {
385
+ if ( horizonScroll ) {
386
386
scrollXStyle = { overflowX : 'scroll' } ;
387
387
// When no vertical scrollbar, should hide it
388
388
// https://github.com/ant-design/ant-design/pull/20705
@@ -446,13 +446,13 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
446
446
setComponentWidth ( fullTableRef . current ? fullTableRef . current . offsetWidth : width ) ;
447
447
} ;
448
448
449
- // Sync scroll bar when init or `fixColumn ` changed
449
+ // Sync scroll bar when init or `horizonScroll ` changed
450
450
React . useEffect ( ( ) => triggerOnScroll , [ ] ) ;
451
451
React . useEffect ( ( ) => {
452
- if ( fixColumn ) {
452
+ if ( horizonScroll ) {
453
453
triggerOnScroll ( ) ;
454
454
}
455
- } , [ fixColumn ] ) ;
455
+ } , [ horizonScroll ] ) ;
456
456
457
457
// ================== INTERNAL HOOKS ==================
458
458
React . useEffect ( ( ) => {
@@ -501,7 +501,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
501
501
const bodyTable = (
502
502
< Body
503
503
data = { mergedData }
504
- measureColumnWidth = { fixHeader || fixColumn }
504
+ measureColumnWidth = { fixHeader || horizonScroll }
505
505
stickyOffsets = { stickyOffsets }
506
506
expandedKeys = { mergedExpandedKeys }
507
507
rowExpandable = { rowExpandable }
@@ -625,7 +625,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
625
625
[ `${ prefixCls } -ping-right` ] : pingedRight ,
626
626
[ `${ prefixCls } -layout-fixed` ] : tableLayout === 'fixed' ,
627
627
[ `${ prefixCls } -fixed-header` ] : fixHeader ,
628
- [ `${ prefixCls } -fixed-column` ] : fixColumn ,
628
+ [ `${ prefixCls } -fixed-column` ] : horizonScroll ,
629
629
[ `${ prefixCls } -has-fix-left` ] : flattenColumns [ 0 ] && flattenColumns [ 0 ] . fixed ,
630
630
[ `${ prefixCls } -has-fix-right` ] :
631
631
flattenColumns [ flattenColumns . length - 1 ] &&
@@ -648,7 +648,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
648
648
</ div >
649
649
) ;
650
650
651
- if ( fixColumn ) {
651
+ if ( horizonScroll ) {
652
652
fullTable = < ResizeObserver onResize = { onFullTableResize } > { fullTable } </ ResizeObserver > ;
653
653
}
654
654
@@ -670,7 +670,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
670
670
expandedRowClassName,
671
671
componentWidth,
672
672
fixHeader,
673
- fixColumn ,
673
+ horizonScroll ,
674
674
expandIcon : mergedExpandIcon ,
675
675
expandableType,
676
676
expandRowByClick,
@@ -686,7 +686,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
686
686
expandedRowClassName ,
687
687
componentWidth ,
688
688
fixHeader ,
689
- fixColumn ,
689
+ horizonScroll ,
690
690
mergedExpandIcon ,
691
691
expandableType ,
692
692
expandRowByClick ,
0 commit comments