Compare commits

..

No commits in common. "e167e629c68bfe62ec8db9db179fa91c34446b13" and "e4e0cf1de9c04644ebcf81116cbd3ba2eb4610ad" have entirely different histories.

3 changed files with 2 additions and 5 deletions

View File

@ -18,8 +18,6 @@ export interface PageProps {
isShowAllAction?: boolean; isShowAllAction?: boolean;
/** 取消按钮文字,默认 "关闭" */ /** 取消按钮文字,默认 "关闭" */
backButtonText?: string; backButtonText?: string;
/** 内容区域的padding默认 "20px" */
contentPadding?: string;
/** 自定义底部操作按钮组 */ /** 自定义底部操作按钮组 */
customActionButtons?: ReactNode; customActionButtons?: ReactNode;
/** 额外底部操作按钮组 */ /** 额外底部操作按钮组 */

View File

@ -13,7 +13,6 @@ function Page(props) {
isShowFooter = true, isShowFooter = true,
isShowAllAction = true, isShowAllAction = true,
backButtonText = "关闭", backButtonText = "关闭",
contentPadding = "20px",
customActionButtons, customActionButtons,
extraActionButtons, extraActionButtons,
} = props; } = props;
@ -21,7 +20,7 @@ function Page(props) {
return ( return (
<div className="page"> <div className="page">
{(isShowAllAction && isShowHeader) && <HeaderBack title={headerTitle} history={history} previous={headerPrevious} />} {(isShowAllAction && isShowHeader) && <HeaderBack title={headerTitle} history={history} previous={headerPrevious} />}
<div style={{ padding: contentPadding }}> <div style={{ padding: 20 }}>
{props.children} {props.children}
</div> </div>
{ {

View File

@ -1,7 +1,7 @@
{ {
"name": "zy-react-library", "name": "zy-react-library",
"private": false, "private": false,
"version": "1.1.0", "version": "1.0.179",
"type": "module", "type": "module",
"description": "", "description": "",
"author": "LiuJiaNan", "author": "LiuJiaNan",