zy-react-library 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -18,6 +18,8 @@ export interface PageProps {
18
18
  isShowAllAction?: boolean;
19
19
  /** 取消按钮文字,默认 "关闭" */
20
20
  backButtonText?: string;
21
+ /** 内容区域的padding,默认 "20px" */
22
+ contentPadding?: string;
21
23
  /** 自定义底部操作按钮组 */
22
24
  customActionButtons?: ReactNode;
23
25
  /** 额外底部操作按钮组 */
@@ -13,6 +13,7 @@ function Page(props) {
13
13
  isShowFooter = true,
14
14
  isShowAllAction = true,
15
15
  backButtonText = "关闭",
16
+ contentPadding = "20px",
16
17
  customActionButtons,
17
18
  extraActionButtons,
18
19
  } = props;
@@ -20,7 +21,7 @@ function Page(props) {
20
21
  return (
21
22
  <div className="page">
22
23
  {(isShowAllAction && isShowHeader) && <HeaderBack title={headerTitle} history={history} previous={headerPrevious} />}
23
- <div style={{ padding: 20 }}>
24
+ <div style={{ padding: contentPadding }}>
24
25
  {props.children}
25
26
  </div>
26
27
  {
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.1.0",
4
+ "version": "1.1.1",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",