Skip to content

Commit

Permalink
chore: Add additional dom for panel body
Browse files Browse the repository at this point in the history
  • Loading branch information
zombieJ committed Nov 28, 2019
1 parent 66dfac6 commit 107ca51
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 15 deletions.
14 changes: 8 additions & 6 deletions src/panels/DatePanel/DateBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -143,12 +143,14 @@ function DateBody<DateType>({
}

return (
<table className={`${prefixCls}-content`}>
<thead>
<tr>{headerCells}</tr>
</thead>
<tbody>{rows}</tbody>
</table>
<div className={`${prefixCls}-body`}>
<table className={`${prefixCls}-content`}>
<thead>
<tr>{headerCells}</tr>
</thead>
<tbody>{rows}</tbody>
</table>
</div>
);
}

Expand Down
8 changes: 5 additions & 3 deletions src/panels/DecadePanel/DecadeBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,9 +79,11 @@ function DecadeBody<DateType>({
}

return (
<table>
<tbody>{rows}</tbody>
</table>
<div className={`${prefixCls}-body`}>
<table className={`${prefixCls}-content`}>
<tbody>{rows}</tbody>
</table>
</div>
);
}

Expand Down
8 changes: 5 additions & 3 deletions src/panels/MonthPanel/MonthBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,11 @@ function MonthBody<DateType>({
}

return (
<table>
<tbody>{rows}</tbody>
</table>
<div className={`${prefixCls}-body`}>
<table className={`${prefixCls}-content`}>
<tbody>{rows}</tbody>
</table>
</div>
);
}

Expand Down
8 changes: 5 additions & 3 deletions src/panels/YearPanel/YearBody.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,11 @@ function YearBody<DateType>({
}

return (
<table>
<tbody>{rows}</tbody>
</table>
<div className={`${prefixCls}-body`}>
<table className={`${prefixCls}-content`}>
<tbody>{rows}</tbody>
</table>
</div>
);
}

Expand Down

1 comment on commit 107ca51

@vercel
Copy link

@vercel vercel bot commented on 107ca51 Nov 28, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.