zy-react-library 1.0.5 → 1.0.6

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.
@@ -38,6 +38,7 @@ const FormBuilder = (props) => {
38
38
  onFinish={onFinish}
39
39
  initialValues={values}
40
40
  form={form}
41
+ style={{ width: `calc(100% - ${gutter * 2}px)`, margin: `0 auto` }}
41
42
  {...restProps}
42
43
  >
43
44
  <Row gutter={gutter}>
@@ -6,6 +6,7 @@ function TablePro(props) {
6
6
  columns = [],
7
7
  showIndex = true,
8
8
  useAlignCenter = true,
9
+ rowKey = 'id',
9
10
  ...restProps
10
11
  } = props;
11
12
  const storeIndex = props.storeIndex || `${window.process.env.app.antd["ant-prefix"]}_${Math.random().toString(36).substring(2)}`;
@@ -13,7 +14,7 @@ function TablePro(props) {
13
14
  showIndex && columns.unshift(getIndexColumn(props.pagination));
14
15
  return columns.map(item => ({ align: useAlignCenter ? "center" : "left", ...item }));
15
16
  }
16
- return <Table storeIndex={storeIndex} columns={calcColumns()} {...restProps} />;
17
+ return <Table rowKey={rowKey} storeIndex={storeIndex} columns={calcColumns()} {...restProps} />;
17
18
  }
18
19
 
19
20
  export default TablePro;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.5",
4
+ "version": "1.0.6",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",
@@ -24,6 +24,7 @@
24
24
  "@ant-design/icons": "^6.1.0",
25
25
  "@ant-design/pro-components": "^2.8.10",
26
26
  "@cqsjjb/jjb-common-lib": "latest",
27
+ "@cqsjjb/jjb-react-admin-component": "latest",
27
28
  "ahooks": "^3.9.5",
28
29
  "antd": "^5.27.6",
29
30
  "dayjs": "^1.11.18",