@zzdadelu/schema-builder 1.0.0-alpha.81 → 1.0.0-alpha.82
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 +6 -4
- package/lib/main.js +6 -4
- package/package.json +1 -1
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,
|
|
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
|
|
58
|
-
(
|
|
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);
|
|
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
|
|
67
|
+
console.log('iframe init engine end1', iframe);
|
|
68
|
+
console.log('iframe init engine end2', (_iframe5 = iframe) === null || _iframe5 === void 0 ? void 0 : _iframe5.contentWindow);
|
|
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,
|
|
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
|
|
66
|
-
(
|
|
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);
|
|
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
|
|
75
|
+
console.log('iframe init engine end1', iframe);
|
|
76
|
+
console.log('iframe init engine end2', (_iframe5 = iframe) === null || _iframe5 === void 0 ? void 0 : _iframe5.contentWindow);
|
|
75
77
|
};
|
|
76
78
|
(0, _react.useEffect)(function () {
|
|
77
79
|
// 模拟 return 前的延迟
|