@@ -39,12 +39,12 @@ const BodyLine = React.forwardRef<HTMLDivElement, BodyLineProps>((props, ref) =>
3939 // ========================== Expand ==========================
4040 const { rowSupportExpand, expanded, rowProps, expandedRowRender, expandedRowClassName } = rowInfo ;
4141
42+ const expandedClsName = computedExpandedClassName ( expandedRowClassName , record , index , indent ) ;
43+
4244 let expandRowNode : React . ReactElement < any > ;
4345 if ( rowSupportExpand && expanded ) {
4446 const expandContent = expandedRowRender ( record , index , indent + 1 , expanded ) ;
4547
46- const expandedClsName = computedExpandedClassName ( expandedRowClassName , record , index , indent ) ;
47-
4848 let additionalProps : React . TdHTMLAttributes < HTMLElement > = { } ;
4949 if ( fixColumn ) {
5050 additionalProps = {
@@ -94,6 +94,7 @@ const BodyLine = React.forwardRef<HTMLDivElement, BodyLineProps>((props, ref) =>
9494 data-row-key = { rowKey }
9595 ref = { rowSupportExpand ? null : ref }
9696 className = { clsx ( className , `${ prefixCls } -row` , rowProps ?. className , {
97+ [ expandedClsName ] : indent >= 1 ,
9798 [ `${ prefixCls } -row-extra` ] : extra ,
9899 } ) }
99100 style = { { ...rowStyle , ...rowProps ?. style } }
0 commit comments