@cqsjjb/jjb-react-admin-component 3.3.4 → 3.3.5

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/Table/index.d.ts CHANGED
@@ -55,6 +55,8 @@ export interface OverTableProps extends TableProps {
55
55
  enableAutoScrollY?: boolean;
56
56
  // ProTable options 配置项
57
57
  options?: OptionConfig | false;
58
+ // 自定义包裹样式
59
+ wrapperStyle?: React.CSSProperties;
58
60
  }
59
61
 
60
62
  interface TableFc extends React.FC<OverTableProps> {
package/Table/index.js CHANGED
@@ -22,6 +22,7 @@ export default function TablePro(props) {
22
22
  checkable: true
23
23
  }
24
24
  },
25
+ wrapperStyle = {},
25
26
  ...restProps
26
27
  } = props;
27
28
  const [scrollY, setScrollY] = useState(undefined);
@@ -34,7 +35,7 @@ export default function TablePro(props) {
34
35
  const tablePagination = ref.current?.querySelector?.(tablePaginationCls);
35
36
  const tablePaginationRect = tablePagination?.getBoundingClientRect();
36
37
  const tableFooterHeight = tableFooterRect?.height || 0;
37
- const tablePaginationMargin = 16;
38
+ const tablePaginationMargin = 32;
38
39
  const tablePaginationHeight = tablePaginationRect?.height || 0;
39
40
  const border = 2;
40
41
  const margin = 20;
@@ -82,7 +83,8 @@ export default function TablePro(props) {
82
83
  return /*#__PURE__*/React.createElement("div", {
83
84
  ref: ref,
84
85
  style: {
85
- height: '100%'
86
+ height: '100%',
87
+ ...wrapperStyle
86
88
  }
87
89
  }, /*#__PURE__*/React.createElement(ProTable, _extends({
88
90
  ghost: true,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@cqsjjb/jjb-react-admin-component",
3
- "version": "3.3.4",
3
+ "version": "3.3.5",
4
4
  "description": "jjb-react-admin-组件库@new",
5
5
  "main": "index.js",
6
6
  "author": "jjb-front-team",