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 2ed330a commit e606eedCopy full SHA for e606eed
docs/examples/expandedRowSpan.tsx
@@ -11,15 +11,12 @@ const columns: ColumnsType = [
11
width: 100,
12
onCell: (_, index) => {
13
const props: React.TdHTMLAttributes<HTMLTableCellElement> = {};
14
- if (index === 1) {
15
- props.rowSpan = 4;
16
- } else if (index === 2) {
17
- props.rowSpan = 0;
18
- } else if (index === 3) {
19
20
- } else if (index === 4) {
21
22
- }
+ if (index === 0) props.rowSpan = 1;
+ if (index === 1) props.rowSpan = 4;
+ if (index === 2) props.rowSpan = 0;
+ if (index === 3) props.rowSpan = 0;
+ if (index === 4) props.rowSpan = 0;
+ if (index === 5) props.rowSpan = 1;
23
24
return props;
25
},
0 commit comments