@openli1115/lowcode-edit-pro-table 1.0.107 → 1.0.108

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.
@@ -231,6 +231,50 @@ var ProSearch = function ProSearch(_ref2) {
231
231
  }, [fields.map(function (f) {
232
232
  return f.id;
233
233
  }).join(',')]);
234
+
235
+ /**
236
+ * 实时同步:fieldValues / fields 变化时,将查询条件写入 window.screenStructures 和 window.customTypeMap,
237
+ * 确保任何外部事件(按钮点击、页面加载等)触发 executeLogicEngine 时,generateStructureForm() 能读到最新数据。
238
+ */
239
+ useEffect(function () {
240
+ var win = window;
241
+ if (!win.screenStructures) win.screenStructures = {};
242
+ if (!win.customTypeMap) win.customTypeMap = {};
243
+ fields.forEach(function (f) {
244
+ var fv = fieldValues[f.id] || {
245
+ low: '',
246
+ high: '',
247
+ conditions: []
248
+ };
249
+ var si = f.screenInner || 'st_' + f.techName;
250
+ var screenRows = [];
251
+ if (fv.conditions.length) {
252
+ fv.conditions.forEach(function (c) {
253
+ if (c.low || c.high || c.option) {
254
+ screenRows.push({
255
+ sign: c.sign,
256
+ option: c.option || 'EQ',
257
+ low: c.low || '',
258
+ high: c.high || '',
259
+ selected_flag: null,
260
+ inner_status: null
261
+ });
262
+ }
263
+ });
264
+ } else if (fv.low || fv.high) {
265
+ screenRows.push({
266
+ sign: 'I',
267
+ option: fv.high ? 'BT' : 'EQ',
268
+ low: fv.low || '',
269
+ high: fv.high || '',
270
+ selected_flag: null,
271
+ inner_status: null
272
+ });
273
+ }
274
+ win.screenStructures[si] = screenRows;
275
+ win.customTypeMap[si] = '4';
276
+ });
277
+ }, [fieldValues, fields]);
234
278
  var updateVal = function updateVal(id, key, val) {
235
279
  return setFieldValues(function (prev) {
236
280
  var _extends3, _extends4;
@@ -237,6 +237,50 @@ var ProSearch = function ProSearch(_ref2) {
237
237
  }, [fields.map(function (f) {
238
238
  return f.id;
239
239
  }).join(',')]);
240
+
241
+ /**
242
+ * 实时同步:fieldValues / fields 变化时,将查询条件写入 window.screenStructures 和 window.customTypeMap,
243
+ * 确保任何外部事件(按钮点击、页面加载等)触发 executeLogicEngine 时,generateStructureForm() 能读到最新数据。
244
+ */
245
+ (0, _react.useEffect)(function () {
246
+ var win = window;
247
+ if (!win.screenStructures) win.screenStructures = {};
248
+ if (!win.customTypeMap) win.customTypeMap = {};
249
+ fields.forEach(function (f) {
250
+ var fv = fieldValues[f.id] || {
251
+ low: '',
252
+ high: '',
253
+ conditions: []
254
+ };
255
+ var si = f.screenInner || 'st_' + f.techName;
256
+ var screenRows = [];
257
+ if (fv.conditions.length) {
258
+ fv.conditions.forEach(function (c) {
259
+ if (c.low || c.high || c.option) {
260
+ screenRows.push({
261
+ sign: c.sign,
262
+ option: c.option || 'EQ',
263
+ low: c.low || '',
264
+ high: c.high || '',
265
+ selected_flag: null,
266
+ inner_status: null
267
+ });
268
+ }
269
+ });
270
+ } else if (fv.low || fv.high) {
271
+ screenRows.push({
272
+ sign: 'I',
273
+ option: fv.high ? 'BT' : 'EQ',
274
+ low: fv.low || '',
275
+ high: fv.high || '',
276
+ selected_flag: null,
277
+ inner_status: null
278
+ });
279
+ }
280
+ win.screenStructures[si] = screenRows;
281
+ win.customTypeMap[si] = '4';
282
+ });
283
+ }, [fieldValues, fields]);
240
284
  var updateVal = function updateVal(id, key, val) {
241
285
  return setFieldValues(function (prev) {
242
286
  var _extends3, _extends4;
@@ -102,7 +102,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
102
102
  packageName = '@openli1115/lowcode-edit-pro-table';
103
103
  }
104
104
  if (version === void 0) {
105
- version = '1.0.107';
105
+ version = '1.0.108';
106
106
  }
107
107
  if (basicLibraryVersion === void 0) {
108
108
  basicLibraryVersion = {
@@ -107,7 +107,7 @@ function fillRealVersion(meta, packageName, version, basicLibraryVersion) {
107
107
  packageName = '@openli1115/lowcode-edit-pro-table';
108
108
  }
109
109
  if (version === void 0) {
110
- version = '1.0.107';
110
+ version = '1.0.108';
111
111
  }
112
112
  if (basicLibraryVersion === void 0) {
113
113
  basicLibraryVersion = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openli1115/lowcode-edit-pro-table",
3
- "version": "1.0.107",
3
+ "version": "1.0.108",
4
4
  "description": "@openli1115/lowcode-edit-pro-table",
5
5
  "main": "lib/index.js",
6
6
  "module": "es/index.js",
@@ -101,10 +101,10 @@
101
101
  },
102
102
  "componentConfig": {
103
103
  "isComponentLibrary": true,
104
- "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.107/build/lowcode/assets-prod.json"
104
+ "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.108/build/lowcode/assets-prod.json"
105
105
  },
106
106
  "lcMeta": {
107
107
  "type": "component"
108
108
  },
109
- "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.107/build/index.html"
109
+ "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.108/build/index.html"
110
110
  }