Skip to content

Commit 107ca51

Browse files
committed
chore: Add additional dom for panel body
1 parent 66dfac6 commit 107ca51

File tree

4 files changed

+23
-15
lines changed

4 files changed

+23
-15
lines changed

src/panels/DatePanel/DateBody.tsx

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -143,12 +143,14 @@ function DateBody<DateType>({
143143
}
144144

145145
return (
146-
<table className={`${prefixCls}-content`}>
147-
<thead>
148-
<tr>{headerCells}</tr>
149-
</thead>
150-
<tbody>{rows}</tbody>
151-
</table>
146+
<div className={`${prefixCls}-body`}>
147+
<table className={`${prefixCls}-content`}>
148+
<thead>
149+
<tr>{headerCells}</tr>
150+
</thead>
151+
<tbody>{rows}</tbody>
152+
</table>
153+
</div>
152154
);
153155
}
154156

src/panels/DecadePanel/DecadeBody.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ function DecadeBody<DateType>({
7979
}
8080

8181
return (
82-
<table>
83-
<tbody>{rows}</tbody>
84-
</table>
82+
<div className={`${prefixCls}-body`}>
83+
<table className={`${prefixCls}-content`}>
84+
<tbody>{rows}</tbody>
85+
</table>
86+
</div>
8587
);
8688
}
8789

src/panels/MonthPanel/MonthBody.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -92,9 +92,11 @@ function MonthBody<DateType>({
9292
}
9393

9494
return (
95-
<table>
96-
<tbody>{rows}</tbody>
97-
</table>
95+
<div className={`${prefixCls}-body`}>
96+
<table className={`${prefixCls}-content`}>
97+
<tbody>{rows}</tbody>
98+
</table>
99+
</div>
98100
);
99101
}
100102

src/panels/YearPanel/YearBody.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,9 +68,11 @@ function YearBody<DateType>({
6868
}
6969

7070
return (
71-
<table>
72-
<tbody>{rows}</tbody>
73-
</table>
71+
<div className={`${prefixCls}-body`}>
72+
<table className={`${prefixCls}-content`}>
73+
<tbody>{rows}</tbody>
74+
</table>
75+
</div>
7476
);
7577
}
7678

0 commit comments

Comments
 (0)