From 2b86f53e95b67d954d853dc74dc62d14d687c897 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Wed, 25 Feb 2026 15:20:15 +0800 Subject: [PATCH] =?UTF-8?q?Page=E5=92=8CSeamlessScroll=E7=9A=84children?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E5=85=81=E8=AE=B8=E5=87=BD=E6=95=B0=E6=96=B9?= =?UTF-8?q?=E5=BC=8F=E4=BC=A0=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Page/index.js | 3 ++- src/components/SeamlessScroll/index.js | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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}