@openli1115/lowcode-edit-pro-table 1.0.102 → 1.0.103

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.
@@ -378,6 +378,33 @@ var ProSearch = function ProSearch(_ref2) {
378
378
  rows.push((_rows$push2 = {}, _rows$push2[si + "-sign"] = 'I', _rows$push2[si + "-option"] = 'EQ', _rows$push2[si + "-low"] = fv.low, _rows$push2[si + "-high"] = fv.high, _rows$push2));
379
379
  }
380
380
  if (rows.length) data[si] = rows;
381
+
382
+ // 将查询条件写入 window.screenStructures,供 executeLogicEngine 调用 generateStructureForm 时读取
383
+ var win = window;
384
+ if (!win.screenStructures) win.screenStructures = {};
385
+ if (!win.customTypeMap) win.customTypeMap = {};
386
+ var screenRows = [];
387
+ if (fv.conditions.length) {
388
+ fv.conditions.forEach(function (c) {
389
+ if (c.low || c.high || c.option) {
390
+ screenRows.push({
391
+ sign: c.sign,
392
+ option: c.option || 'EQ',
393
+ low: c.low || '',
394
+ high: c.high || ''
395
+ });
396
+ }
397
+ });
398
+ } else if (fv.low || fv.high) {
399
+ screenRows.push({
400
+ sign: 'I',
401
+ option: fv.high ? 'BT' : 'EQ',
402
+ low: fv.low || '',
403
+ high: fv.high || ''
404
+ });
405
+ }
406
+ win.screenStructures[si] = screenRows;
407
+ win.customTypeMap[si] = '4';
381
408
  });
382
409
  onSearch && onSearch(data);
383
410
  };
@@ -639,13 +666,7 @@ var ProSearch = function ProSearch(_ref2) {
639
666
  destroyOnClose: true,
640
667
  zIndex: 9999999,
641
668
  getContainer: function getContainer() {
642
- // 脱出画布 iframe,挂到主文档 body,避免被设计器蒙层盖住
643
- try {
644
- var topDoc = window.top && window.top.document || document;
645
- return topDoc.body;
646
- } catch (e) {
647
- return document.body;
648
- }
669
+ return document.body;
649
670
  }
650
671
  }, /*#__PURE__*/React.createElement("div", {
651
672
  style: {
@@ -384,6 +384,33 @@ var ProSearch = function ProSearch(_ref2) {
384
384
  rows.push((_rows$push2 = {}, _rows$push2[si + "-sign"] = 'I', _rows$push2[si + "-option"] = 'EQ', _rows$push2[si + "-low"] = fv.low, _rows$push2[si + "-high"] = fv.high, _rows$push2));
385
385
  }
386
386
  if (rows.length) data[si] = rows;
387
+
388
+ // 将查询条件写入 window.screenStructures,供 executeLogicEngine 调用 generateStructureForm 时读取
389
+ var win = window;
390
+ if (!win.screenStructures) win.screenStructures = {};
391
+ if (!win.customTypeMap) win.customTypeMap = {};
392
+ var screenRows = [];
393
+ if (fv.conditions.length) {
394
+ fv.conditions.forEach(function (c) {
395
+ if (c.low || c.high || c.option) {
396
+ screenRows.push({
397
+ sign: c.sign,
398
+ option: c.option || 'EQ',
399
+ low: c.low || '',
400
+ high: c.high || ''
401
+ });
402
+ }
403
+ });
404
+ } else if (fv.low || fv.high) {
405
+ screenRows.push({
406
+ sign: 'I',
407
+ option: fv.high ? 'BT' : 'EQ',
408
+ low: fv.low || '',
409
+ high: fv.high || ''
410
+ });
411
+ }
412
+ win.screenStructures[si] = screenRows;
413
+ win.customTypeMap[si] = '4';
387
414
  });
388
415
  onSearch && onSearch(data);
389
416
  };
@@ -645,13 +672,7 @@ var ProSearch = function ProSearch(_ref2) {
645
672
  destroyOnClose: true,
646
673
  zIndex: 9999999,
647
674
  getContainer: function getContainer() {
648
- // 脱出画布 iframe,挂到主文档 body,避免被设计器蒙层盖住
649
- try {
650
- var topDoc = window.top && window.top.document || document;
651
- return topDoc.body;
652
- } catch (e) {
653
- return document.body;
654
- }
675
+ return document.body;
655
676
  }
656
677
  }, /*#__PURE__*/React.createElement("div", {
657
678
  style: {
@@ -1,5 +1,7 @@
1
1
  import { IPublicTypeComponentMetadata, IPublicTypeSnippet } from '@alilc/lowcode-types';
2
2
 
3
+ const SEARCH_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=';
4
+
3
5
  const ProSearchMeta: IPublicTypeComponentMetadata = {
4
6
  componentName: 'ProSearch',
5
7
  title: '查询条件',
@@ -166,7 +168,7 @@ const ProSearchMeta: IPublicTypeComponentMetadata = {
166
168
  const snippets: IPublicTypeSnippet[] = [
167
169
  {
168
170
  title: '查询条件',
169
- screenshot: '',
171
+ screenshot: SEARCH_ICON,
170
172
  schema: {
171
173
  componentName: 'ProSearch',
172
174
  props: {
@@ -182,6 +184,6 @@ const snippets: IPublicTypeSnippet[] = [
182
184
 
183
185
  export default {
184
186
  ...ProSearchMeta,
185
- icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=',
187
+ icon: SEARCH_ICON,
186
188
  snippets,
187
189
  };
@@ -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.102';
105
+ version = '1.0.103';
106
106
  }
107
107
  if (basicLibraryVersion === void 0) {
108
108
  basicLibraryVersion = {
@@ -1,4 +1,5 @@
1
1
  import _extends from "@babel/runtime/helpers/extends";
2
+ var SEARCH_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=';
2
3
  var ProSearchMeta = {
3
4
  componentName: 'ProSearch',
4
5
  title: '查询条件',
@@ -215,7 +216,7 @@ var ProSearchMeta = {
215
216
  };
216
217
  var snippets = [{
217
218
  title: '查询条件',
218
- screenshot: '',
219
+ screenshot: SEARCH_ICON,
219
220
  schema: {
220
221
  componentName: 'ProSearch',
221
222
  props: {
@@ -228,6 +229,6 @@ var snippets = [{
228
229
  }
229
230
  }];
230
231
  export default _extends({}, ProSearchMeta, {
231
- icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=',
232
+ icon: SEARCH_ICON,
232
233
  snippets: snippets
233
234
  });
@@ -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.102';
110
+ version = '1.0.103';
111
111
  }
112
112
  if (basicLibraryVersion === void 0) {
113
113
  basicLibraryVersion = {
@@ -4,6 +4,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
4
4
  exports.__esModule = true;
5
5
  exports["default"] = void 0;
6
6
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
7
+ var SEARCH_ICON = 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=';
7
8
  var ProSearchMeta = {
8
9
  componentName: 'ProSearch',
9
10
  title: '查询条件',
@@ -220,7 +221,7 @@ var ProSearchMeta = {
220
221
  };
221
222
  var snippets = [{
222
223
  title: '查询条件',
223
- screenshot: '',
224
+ screenshot: SEARCH_ICON,
224
225
  schema: {
225
226
  componentName: 'ProSearch',
226
227
  props: {
@@ -233,6 +234,6 @@ var snippets = [{
233
234
  }
234
235
  }];
235
236
  var _default = exports["default"] = (0, _extends2["default"])({}, ProSearchMeta, {
236
- icon: 'data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSIyNCIgaGVpZ2h0PSIyNCIgdmlld0JveD0iMCAwIDI0IDI0IiBmaWxsPSJub25lIiBzdHJva2U9ImN1cnJlbnRDb2xvciIgc3Ryb2tlLXdpZHRoPSIyIiBzdHJva2UtbGluZWNhcD0icm91bmQiIHN0cm9rZS1saW5lam9pbj0icm91bmQiPjxjaXJjbGUgY3g9IjExIiBjeT0iMTEiIHI9IjgiLz48bGluZSB4MT0iMjEiIHkxPSIyMSIgeDI9IjE2LjY1IiB5Mj0iMTYuNjUiLz48L3N2Zz4=',
237
+ icon: SEARCH_ICON,
237
238
  snippets: snippets
238
239
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openli1115/lowcode-edit-pro-table",
3
- "version": "1.0.102",
3
+ "version": "1.0.103",
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.102/build/lowcode/assets-prod.json"
104
+ "materialSchema": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.103/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.102/build/index.html"
109
+ "homepage": "https://unpkg.com/@openli1115/lowcode-edit-pro-table@1.0.103/build/index.html"
110
110
  }