@mxmweb/xviewer 1.4.7 → 1.4.8

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.
package/index.js CHANGED
@@ -3492,7 +3492,8 @@ const Hh = 320, Kh = 200, Ta = 48, Wh = ({
3492
3492
  formConfig: e.formConfig,
3493
3493
  title: t?.[0]?.title,
3494
3494
  description: t?.[0]?.description,
3495
- formWidth: e.formWidth
3495
+ formWidth: e.formWidth,
3496
+ formPadding: e.formPadding
3496
3497
  },
3497
3498
  "stable-form-key"
3498
3499
  ) });
@@ -22167,9 +22168,8 @@ const Sc = Ge.div.attrs({
22167
22168
  display: flex;
22168
22169
  flex-direction: column;
22169
22170
  overflow: hidden;
22170
- padding-top: 12px;
22171
22171
  border-radius: ${({ theme: e }) => e?.space?.radius ?? "4px"};
22172
- padding: ${({ theme: e }) => e?.space?.padding ?? "8px"};
22172
+ padding: ${({ $contentPadding: e, theme: t }) => e ?? t?.space?.xviewerContentPadding ?? t?.space?.padding ?? "8px"};
22173
22173
  position: relative;
22174
22174
  box-shadow: ${({ theme: e }) => e?.colors?.shadow ?? "0 2px 16px 0 rgba(31, 41, 55, 0.08), 0 1.5px 4px 0 rgba(31, 41, 55, 0.04)"};
22175
22175
  `, GE = Ge(Sc).attrs({
@@ -22547,6 +22547,7 @@ const Sc = Ge.div.attrs({
22547
22547
  $hasToolbar: !!G,
22548
22548
  $toolbarHeightPx: C,
22549
22549
  $headerHeightPx: $,
22550
+ $contentPadding: h?.contentPadding,
22550
22551
  children: pe("container") || pe("content") || ne(j)
22551
22552
  }
22552
22553
  )
package/lib_enter.d.ts CHANGED
@@ -197,6 +197,7 @@ declare interface ViewType {
197
197
  rowHeight?: number;
198
198
  formConfig?: any;
199
199
  formWidth?: string;
200
+ formPadding?: string;
200
201
  toolbar?: ToolbarItem[];
201
202
  /** 视图头部:渲染在 toolbar 下方、内容区域上方(仅 table/card/form 等叶子节点生效) */
202
203
  header?: HeaderItem[];
package/package.json CHANGED
@@ -5,7 +5,7 @@
5
5
  "style": "assets/style.css",
6
6
  "types": "lib_enter.d.ts",
7
7
  "private": false,
8
- "version": "1.4.7",
8
+ "version": "1.4.8",
9
9
  "author": "hanfeng_Zhang",
10
10
  "type": "module",
11
11
  "peerDependencies": {