From e167e629c68bfe62ec8db9db179fa91c34446b13 Mon Sep 17 00:00:00 2001 From: LiuJiaNan <15703339975@163.com> Date: Wed, 24 Dec 2025 16:33:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96Page?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- components/Page/index.d.ts | 2 ++ components/Page/index.js | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/components/Page/index.d.ts b/components/Page/index.d.ts index 1002f57..e42d4d6 100644 --- a/components/Page/index.d.ts +++ b/components/Page/index.d.ts @@ -18,6 +18,8 @@ export interface PageProps { isShowAllAction?: boolean; /** 取消按钮文字,默认 "关闭" */ backButtonText?: string; + /** 内容区域的padding,默认 "20px" */ + contentPadding?: string; /** 自定义底部操作按钮组 */ customActionButtons?: ReactNode; /** 额外底部操作按钮组 */ diff --git a/components/Page/index.js b/components/Page/index.js index 0f82295..6decbc7 100644 --- a/components/Page/index.js +++ b/components/Page/index.js @@ -13,6 +13,7 @@ function Page(props) { isShowFooter = true, isShowAllAction = true, backButtonText = "关闭", + contentPadding = "20px", customActionButtons, extraActionButtons, } = props; @@ -20,7 +21,7 @@ function Page(props) { return (
{(isShowAllAction && isShowHeader) && } -
+
{props.children}
{