Skip to content

Commit

Permalink
fix: 🐛 footer in schema
Browse files Browse the repository at this point in the history
  • Loading branch information
charlzyx committed Aug 15, 2024
1 parent 87e9947 commit 3016eb0
Showing 1 changed file with 10 additions and 8 deletions.
18 changes: 10 additions & 8 deletions src/pro-array-table/pro.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -259,18 +259,20 @@ const ArrayTableProInside: ReactFC<ProArrayTableProps> = observer(
const _footer = (
<FooterRender
footer={
props.footer ? (
typeof props.footer === "function" ? (
props.footer(dataSource)
) : (
<Typography.Title level={5}>{props.footer}</Typography.Title>
)
) : null
<React.Fragment>
{props.footer ? (
typeof props.footer === "function" ? (
props.footer(dataSource)
) : (
<Typography.Title level={5}>{props.footer}</Typography.Title>
)
) : null}
{footer}
</React.Fragment>
}
pagination={pagination}
></FooterRender>
);

const header = useResizeHeader({
enable: props.resizeable,
});
Expand Down

0 comments on commit 3016eb0

Please sign in to comment.