@@ -369,7 +369,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
369369 const colWidths = React . useMemo ( ( ) => pureColWidths , [ pureColWidths . join ( '_' ) ] ) ;
370370 const stickyOffsets = useStickyOffsets ( colWidths , flattenColumns . length , direction ) ;
371371 const fixHeader = hasData && scroll && validateValue ( scroll . y ) ;
372- const fixColumn = scroll && validateValue ( scroll . x ) ;
372+ const horizonScroll = scroll && validateValue ( scroll . x ) ;
373373
374374 let scrollXStyle : React . CSSProperties ;
375375 let scrollYStyle : React . CSSProperties ;
@@ -382,7 +382,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
382382 } ;
383383 }
384384
385- if ( fixColumn ) {
385+ if ( horizonScroll ) {
386386 scrollXStyle = { overflowX : 'scroll' } ;
387387 // When no vertical scrollbar, should hide it
388388 // https://github.com/ant-design/ant-design/pull/20705
@@ -446,13 +446,13 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
446446 setComponentWidth ( fullTableRef . current ? fullTableRef . current . offsetWidth : width ) ;
447447 } ;
448448
449- // Sync scroll bar when init or `fixColumn ` changed
449+ // Sync scroll bar when init or `horizonScroll ` changed
450450 React . useEffect ( ( ) => triggerOnScroll , [ ] ) ;
451451 React . useEffect ( ( ) => {
452- if ( fixColumn ) {
452+ if ( horizonScroll ) {
453453 triggerOnScroll ( ) ;
454454 }
455- } , [ fixColumn ] ) ;
455+ } , [ horizonScroll ] ) ;
456456
457457 // ================== INTERNAL HOOKS ==================
458458 React . useEffect ( ( ) => {
@@ -501,7 +501,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
501501 const bodyTable = (
502502 < Body
503503 data = { mergedData }
504- measureColumnWidth = { fixHeader || fixColumn }
504+ measureColumnWidth = { fixHeader || horizonScroll }
505505 stickyOffsets = { stickyOffsets }
506506 expandedKeys = { mergedExpandedKeys }
507507 rowExpandable = { rowExpandable }
@@ -625,7 +625,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
625625 [ `${ prefixCls } -ping-right` ] : pingedRight ,
626626 [ `${ prefixCls } -layout-fixed` ] : tableLayout === 'fixed' ,
627627 [ `${ prefixCls } -fixed-header` ] : fixHeader ,
628- [ `${ prefixCls } -fixed-column` ] : fixColumn ,
628+ [ `${ prefixCls } -fixed-column` ] : horizonScroll ,
629629 [ `${ prefixCls } -has-fix-left` ] : flattenColumns [ 0 ] && flattenColumns [ 0 ] . fixed ,
630630 [ `${ prefixCls } -has-fix-right` ] :
631631 flattenColumns [ flattenColumns . length - 1 ] &&
@@ -648,7 +648,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
648648 </ div >
649649 ) ;
650650
651- if ( fixColumn ) {
651+ if ( horizonScroll ) {
652652 fullTable = < ResizeObserver onResize = { onFullTableResize } > { fullTable } </ ResizeObserver > ;
653653 }
654654
@@ -670,7 +670,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
670670 expandedRowClassName,
671671 componentWidth,
672672 fixHeader,
673- fixColumn ,
673+ horizonScroll ,
674674 expandIcon : mergedExpandIcon ,
675675 expandableType,
676676 expandRowByClick,
@@ -686,7 +686,7 @@ function Table<RecordType extends DefaultRecordType>(props: TableProps<RecordTyp
686686 expandedRowClassName ,
687687 componentWidth ,
688688 fixHeader ,
689- fixColumn ,
689+ horizonScroll ,
690690 mergedExpandIcon ,
691691 expandableType ,
692692 expandRowByClick ,
0 commit comments