From 3016eb0fd92f2b1e34953f3f7e227403f87b8f44 Mon Sep 17 00:00:00 2001 From: charlzyx Date: Thu, 15 Aug 2024 12:00:25 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=90=9B=20footer=20in=20schema?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pro-array-table/pro.tsx | 18 ++++++++++-------- 1 file changed, 10 insertions(+), 8 deletions(-) diff --git a/src/pro-array-table/pro.tsx b/src/pro-array-table/pro.tsx index 261a5ff..d364bb2 100644 --- a/src/pro-array-table/pro.tsx +++ b/src/pro-array-table/pro.tsx @@ -259,18 +259,20 @@ const ArrayTableProInside: ReactFC = observer( const _footer = ( {props.footer} - ) - ) : null + + {props.footer ? ( + typeof props.footer === "function" ? ( + props.footer(dataSource) + ) : ( + {props.footer} + ) + ) : null} + {footer} + } pagination={pagination} > ); - const header = useResizeHeader({ enable: props.resizeable, });