zy-react-library 1.0.75 → 1.0.77

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.
@@ -31,7 +31,7 @@ function DictionarySelect(props) {
31
31
  }, [dictValue]);
32
32
 
33
33
  return (
34
- <BasicSelect treeData={data} nameKey={nameKey} idKey={idKey} {...restProps} />
34
+ <BasicSelect data={data} nameKey={nameKey} idKey={idKey} {...restProps} />
35
35
  );
36
36
  }
37
37
 
@@ -64,6 +64,7 @@ export const UPLOAD_FILE_TYPE_ENUM = {
64
64
  135: 135,
65
65
  136: 136,
66
66
  137: 137,
67
+ 138: 138,
67
68
  };
68
69
 
69
70
  /**
@@ -132,4 +133,5 @@ export const UPLOAD_FILE_PATH_ENUM = {
132
133
  135: "branch_manager_approval_signature",
133
134
  136: "accident_incident",
134
135
  137: "accident_incident",
136
+ 138: "hidden_disposal_plan",
135
137
  };
@@ -39,7 +39,7 @@ function useUploadFile(returnType = "object") {
39
39
 
40
40
  // 当single为false时,foreignKey是必需的
41
41
  if (!single) {
42
- if (!params.hasOwnProperty('foreignKey'))
42
+ if (!params.hasOwnProperty("foreignKey"))
43
43
  throw new Error("请传入 options.params.foreignKey");
44
44
  // 如果 foreignKey 是 undefined,设置默认值为空字符串
45
45
  if (params.foreignKey === undefined || params.foreignKey === null)
@@ -51,7 +51,7 @@ function useUploadFile(returnType = "object") {
51
51
  setLoading(false);
52
52
  resolve(
53
53
  single
54
- ? { filePath: '' }
54
+ ? { filePath: "" }
55
55
  : { id: params.foreignKey },
56
56
  );
57
57
  return;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "zy-react-library",
3
3
  "private": false,
4
- "version": "1.0.75",
4
+ "version": "1.0.77",
5
5
  "type": "module",
6
6
  "description": "",
7
7
  "author": "LiuJiaNan",