@zzdadelu/schema-builder 1.0.0-alpha.81 → 1.0.0-alpha.88

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.
package/es/main.js CHANGED
@@ -50,12 +50,13 @@ var Design = function Design(props, ref) {
50
50
  containerRef.current.appendChild(iframe);
51
51
  };
52
52
  var engineOnLoad = function engineOnLoad(event) {
53
- var _iframe3, _iframe3$contentWindo, _iframe3$contentWindo2;
53
+ var _iframe3, _iframe4, _iframe4$contentWindo, _iframe4$contentWindo2, _iframe5;
54
54
  if (event.data.type !== 'engine-load') {
55
55
  return;
56
56
  }
57
- console.log('iframe init engine start', iframe);
58
- (_iframe3 = iframe) === null || _iframe3 === void 0 ? void 0 : (_iframe3$contentWindo = _iframe3.contentWindow) === null || _iframe3$contentWindo === void 0 ? void 0 : (_iframe3$contentWindo2 = _iframe3$contentWindo.__FR_ENGINE__) === null || _iframe3$contentWindo2 === void 0 ? void 0 : _iframe3$contentWindo2.init(_objectSpread({
57
+ console.log('iframe init engine start1', iframe);
58
+ console.log('iframe init engine start2', (_iframe3 = iframe) === null || _iframe3 === void 0 ? void 0 : _iframe3.contentWindow[0].getFormRenderMaterial);
59
+ (_iframe4 = iframe) === null || _iframe4 === void 0 ? void 0 : (_iframe4$contentWindo = _iframe4.contentWindow) === null || _iframe4$contentWindo === void 0 ? void 0 : (_iframe4$contentWindo2 = _iframe4$contentWindo.__FR_ENGINE__) === null || _iframe4$contentWindo2 === void 0 ? void 0 : _iframe4$contentWindo2.init(_objectSpread({
59
60
  settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
60
61
  widgets: widgets,
61
62
  // recordEnable: true,
@@ -63,7 +64,8 @@ var Design = function Design(props, ref) {
63
64
  title: 'XRender'
64
65
  }
65
66
  }, restProps));
66
- console.log('iframe init engine end', iframe);
67
+ console.log('iframe init engine end1', iframe);
68
+ console.log('iframe init engine start2', (_iframe5 = iframe) === null || _iframe5 === void 0 ? void 0 : _iframe5.contentWindow[0].getFormRenderMaterial);
67
69
  };
68
70
  useEffect(function () {
69
71
  // 模拟 return 前的延迟
package/lib/main.js CHANGED
@@ -58,12 +58,13 @@ var Design = function Design(props, ref) {
58
58
  containerRef.current.appendChild(iframe);
59
59
  };
60
60
  var engineOnLoad = function engineOnLoad(event) {
61
- var _iframe3, _iframe3$contentWindo, _iframe3$contentWindo2;
61
+ var _iframe3, _iframe4, _iframe4$contentWindo, _iframe4$contentWindo2, _iframe5;
62
62
  if (event.data.type !== 'engine-load') {
63
63
  return;
64
64
  }
65
- console.log('iframe init engine start', iframe);
66
- (_iframe3 = iframe) === null || _iframe3 === void 0 ? void 0 : (_iframe3$contentWindo = _iframe3.contentWindow) === null || _iframe3$contentWindo === void 0 ? void 0 : (_iframe3$contentWindo2 = _iframe3$contentWindo.__FR_ENGINE__) === null || _iframe3$contentWindo2 === void 0 ? void 0 : _iframe3$contentWindo2.init(_objectSpread({
65
+ console.log('iframe init engine start1', iframe);
66
+ console.log('iframe init engine start2', (_iframe3 = iframe) === null || _iframe3 === void 0 ? void 0 : _iframe3.contentWindow[0].getFormRenderMaterial);
67
+ (_iframe4 = iframe) === null || _iframe4 === void 0 ? void 0 : (_iframe4$contentWindo = _iframe4.contentWindow) === null || _iframe4$contentWindo === void 0 ? void 0 : (_iframe4$contentWindo2 = _iframe4$contentWindo.__FR_ENGINE__) === null || _iframe4$contentWindo2 === void 0 ? void 0 : _iframe4$contentWindo2.init(_objectSpread({
67
68
  settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
68
69
  widgets: widgets,
69
70
  // recordEnable: true,
@@ -71,7 +72,8 @@ var Design = function Design(props, ref) {
71
72
  title: 'XRender'
72
73
  }
73
74
  }, restProps));
74
- console.log('iframe init engine end', iframe);
75
+ console.log('iframe init engine end1', iframe);
76
+ console.log('iframe init engine start2', (_iframe5 = iframe) === null || _iframe5 === void 0 ? void 0 : _iframe5.contentWindow[0].getFormRenderMaterial);
75
77
  };
76
78
  (0, _react.useEffect)(function () {
77
79
  // 模拟 return 前的延迟
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zzdadelu/schema-builder",
3
- "version": "1.0.0-alpha.81",
3
+ "version": "1.0.0-alpha.88",
4
4
  "description": "通过 JSON Schema 生成标准 Form,常用于自定义搭建配置界面生成",
5
5
  "keywords": [
6
6
  "Form",