szld-libs 0.3.68 → 0.3.70

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.
@@ -29,7 +29,8 @@ const DynamicForm = forwardRef((props, ref) => {
29
29
  formListItemWidth,
30
30
  formListItemName,
31
31
  isEdit = false,
32
- langId = "10001"
32
+ langId = "10001",
33
+ getTitle
33
34
  } = props;
34
35
  const delFileListRef = useRef([]);
35
36
  const updateDelFileList = (file) => {
@@ -50,7 +51,8 @@ const DynamicForm = forwardRef((props, ref) => {
50
51
  CustomModalComponent,
51
52
  isEdit,
52
53
  formShowType,
53
- langId
54
+ langId,
55
+ getTitle
54
56
  });
55
57
  useImperativeHandle(ref, () => ({
56
58
  getDelFileList: () => {
@@ -43,7 +43,7 @@ function SelectModel(props) {
43
43
  setSelectedRecords(selectedRows);
44
44
  };
45
45
  const getData = async () => {
46
- var _a, _b;
46
+ var _a, _b, _c;
47
47
  if (item.inputType === "url" && (item == null ? void 0 : item["action-url"])) {
48
48
  setLoading(true);
49
49
  try {
@@ -101,7 +101,7 @@ function SelectModel(props) {
101
101
  "source-number": item == null ? void 0 : item["instance-source-number"]
102
102
  });
103
103
  if ((config == null ? void 0 : config.ReturnValue) === 1) {
104
- const configData = config == null ? void 0 : config.data;
104
+ const configData = (_c = config == null ? void 0 : config.data) == null ? void 0 : _c[item == null ? void 0 : item["instance-source-number"]];
105
105
  const universalHeader = (configData == null ? void 0 : configData["universal-header"]) || [];
106
106
  const attributeSetId = (configData == null ? void 0 : configData["attribute-set-id"]) || "";
107
107
  const list = handleUniversalHeaderToColumns({
@@ -113,6 +113,7 @@ function SelectModel(props) {
113
113
  }
114
114
  } catch (error) {
115
115
  }
116
+ return;
116
117
  }
117
118
  message.error(langId === "10001" ? "参数配置错误" : "Parameter configuration error");
118
119
  };
@@ -30,7 +30,8 @@ const DynamicForm = react.forwardRef((props, ref) => {
30
30
  formListItemWidth,
31
31
  formListItemName,
32
32
  isEdit = false,
33
- langId = "10001"
33
+ langId = "10001",
34
+ getTitle
34
35
  } = props;
35
36
  const delFileListRef = react.useRef([]);
36
37
  const updateDelFileList = (file) => {
@@ -51,7 +52,8 @@ const DynamicForm = react.forwardRef((props, ref) => {
51
52
  CustomModalComponent,
52
53
  isEdit,
53
54
  formShowType,
54
- langId
55
+ langId,
56
+ getTitle
55
57
  });
56
58
  react.useImperativeHandle(ref, () => ({
57
59
  getDelFileList: () => {
@@ -45,7 +45,7 @@ function SelectModel(props) {
45
45
  setSelectedRecords(selectedRows);
46
46
  };
47
47
  const getData = async () => {
48
- var _a, _b;
48
+ var _a, _b, _c;
49
49
  if (item.inputType === "url" && (item == null ? void 0 : item["action-url"])) {
50
50
  setLoading(true);
51
51
  try {
@@ -103,7 +103,7 @@ function SelectModel(props) {
103
103
  "source-number": item == null ? void 0 : item["instance-source-number"]
104
104
  });
105
105
  if ((config == null ? void 0 : config.ReturnValue) === 1) {
106
- const configData = config == null ? void 0 : config.data;
106
+ const configData = (_c = config == null ? void 0 : config.data) == null ? void 0 : _c[item == null ? void 0 : item["instance-source-number"]];
107
107
  const universalHeader = (configData == null ? void 0 : configData["universal-header"]) || [];
108
108
  const attributeSetId = (configData == null ? void 0 : configData["attribute-set-id"]) || "";
109
109
  const list = handleUniversalHeaderToColumns({
@@ -115,6 +115,7 @@ function SelectModel(props) {
115
115
  }
116
116
  } catch (error) {
117
117
  }
118
+ return;
118
119
  }
119
120
  message.error(langId === "10001" ? "参数配置错误" : "Parameter configuration error");
120
121
  };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "szld-libs",
3
3
  "private": false,
4
- "version": "0.3.68",
4
+ "version": "0.3.70",
5
5
  "type": "module",
6
6
  "scripts": {
7
7
  "dev": "vite",