diff --git a/src/components/Page/index.js b/src/components/Page/index.js index eae666d..5bf1127 100644 --- a/src/components/Page/index.js +++ b/src/components/Page/index.js @@ -18,6 +18,7 @@ function Page(props) { contentPadding = "20px", customActionButtons, extraActionButtons, + children } = props; const [pageWidth, setPageWidth] = useState(window.innerWidth); @@ -49,7 +50,7 @@ function Page(props) {
{(isShowAllAction && isShowHeader) && }
- {props.children} + {children && typeof children === "function" ? children() : children} { (isShowAllAction && isShowFooter) && (
diff --git a/src/components/SeamlessScroll/index.js b/src/components/SeamlessScroll/index.js index 12ab736..3371e76 100644 --- a/src/components/SeamlessScroll/index.js +++ b/src/components/SeamlessScroll/index.js @@ -442,12 +442,12 @@ const SeamlessScroll = forwardRef((props, ref) => { return ( <>
- {children} + {children && typeof children === "function" ? children() : children}
{isScroll ? Array.from({ length: copyNum }).map((_, index) => (
- {children} + {children && typeof children === "function" ? children() : children}
)) : null}