Skip to content

Commit 3016eb0

Browse files
committed
fix: 🐛 footer in schema
1 parent 87e9947 commit 3016eb0

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

src/pro-array-table/pro.tsx

+10-8
Original file line numberDiff line numberDiff line change
@@ -259,18 +259,20 @@ const ArrayTableProInside: ReactFC<ProArrayTableProps> = observer(
259259
const _footer = (
260260
<FooterRender
261261
footer={
262-
props.footer ? (
263-
typeof props.footer === "function" ? (
264-
props.footer(dataSource)
265-
) : (
266-
<Typography.Title level={5}>{props.footer}</Typography.Title>
267-
)
268-
) : null
262+
<React.Fragment>
263+
{props.footer ? (
264+
typeof props.footer === "function" ? (
265+
props.footer(dataSource)
266+
) : (
267+
<Typography.Title level={5}>{props.footer}</Typography.Title>
268+
)
269+
) : null}
270+
{footer}
271+
</React.Fragment>
269272
}
270273
pagination={pagination}
271274
></FooterRender>
272275
);
273-
274276
const header = useResizeHeader({
275277
enable: props.resizeable,
276278
});

0 commit comments

Comments
 (0)