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, });