Skip to content

Commit 532e524

Browse files
committed
feat: review
1 parent 8565bfa commit 532e524

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/Body/BodyRow.tsx

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,14 +75,16 @@ export function getCellProps<RecordType>(
7575
const _index = index2 + 1;
7676
let _rowSpan = rowSpan;
7777
// 下面如果是 0 的,增加 +1 逻辑
78-
const dd = column.onCell(record, _index);
79-
if (dd.rowSpan === 0) {
80-
const ddd = expandedKeys.has(getRowKey(_index));
81-
if (ddd) {
78+
const thisCellProps = column.onCell(record, _index);
79+
if (thisCellProps.rowSpan === 0) {
80+
const thisExpanded = expandedKeys.has(getRowKey(_index));
81+
if (thisExpanded) {
8282
_rowSpan = _rowSpan + 1;
8383
}
84+
// 继续往下找
8485
return addChildrenRowSpan(_rowSpan, _index);
8586
}
87+
// 找不到后返回
8688
return _rowSpan;
8789
};
8890

0 commit comments

Comments
 (0)