We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8565bfa commit 532e524Copy full SHA for 532e524
src/Body/BodyRow.tsx
@@ -75,14 +75,16 @@ export function getCellProps<RecordType>(
75
const _index = index2 + 1;
76
let _rowSpan = rowSpan;
77
// 下面如果是 0 的,增加 +1 逻辑
78
- const dd = column.onCell(record, _index);
79
- if (dd.rowSpan === 0) {
80
- const ddd = expandedKeys.has(getRowKey(_index));
81
- if (ddd) {
+ const thisCellProps = column.onCell(record, _index);
+ if (thisCellProps.rowSpan === 0) {
+ const thisExpanded = expandedKeys.has(getRowKey(_index));
+ if (thisExpanded) {
82
_rowSpan = _rowSpan + 1;
83
}
84
+ // 继续往下找
85
return addChildrenRowSpan(_rowSpan, _index);
86
87
+ // 找不到后返回
88
return _rowSpan;
89
};
90
0 commit comments