@zzdadelu/schema-builder 1.0.0-alpha.80 → 1.0.0-alpha.81
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 +9 -1
- package/lib/main.js +9 -1
- package/package.json +1 -1
package/es/main.js
CHANGED
|
@@ -54,6 +54,7 @@ var Design = function Design(props, ref) {
|
|
|
54
54
|
if (event.data.type !== 'engine-load') {
|
|
55
55
|
return;
|
|
56
56
|
}
|
|
57
|
+
console.log('iframe init engine start', iframe);
|
|
57
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({
|
|
58
59
|
settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
|
|
59
60
|
widgets: widgets,
|
|
@@ -62,6 +63,7 @@ var Design = function Design(props, ref) {
|
|
|
62
63
|
title: 'XRender'
|
|
63
64
|
}
|
|
64
65
|
}, restProps));
|
|
66
|
+
console.log('iframe init engine end', iframe);
|
|
65
67
|
};
|
|
66
68
|
useEffect(function () {
|
|
67
69
|
// 模拟 return 前的延迟
|
|
@@ -74,7 +76,13 @@ var Design = function Design(props, ref) {
|
|
|
74
76
|
};
|
|
75
77
|
}, []);
|
|
76
78
|
if (!delayDone) {
|
|
77
|
-
return /*#__PURE__*/React.createElement(
|
|
79
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
80
|
+
ref: containerRef,
|
|
81
|
+
style: {
|
|
82
|
+
width: '100%',
|
|
83
|
+
height: '100%'
|
|
84
|
+
}
|
|
85
|
+
});
|
|
78
86
|
}
|
|
79
87
|
return /*#__PURE__*/React.createElement("div", {
|
|
80
88
|
ref: containerRef,
|
package/lib/main.js
CHANGED
|
@@ -62,6 +62,7 @@ var Design = function Design(props, ref) {
|
|
|
62
62
|
if (event.data.type !== 'engine-load') {
|
|
63
63
|
return;
|
|
64
64
|
}
|
|
65
|
+
console.log('iframe init engine start', iframe);
|
|
65
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({
|
|
66
67
|
settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
|
|
67
68
|
widgets: widgets,
|
|
@@ -70,6 +71,7 @@ var Design = function Design(props, ref) {
|
|
|
70
71
|
title: 'XRender'
|
|
71
72
|
}
|
|
72
73
|
}, restProps));
|
|
74
|
+
console.log('iframe init engine end', iframe);
|
|
73
75
|
};
|
|
74
76
|
(0, _react.useEffect)(function () {
|
|
75
77
|
// 模拟 return 前的延迟
|
|
@@ -82,7 +84,13 @@ var Design = function Design(props, ref) {
|
|
|
82
84
|
};
|
|
83
85
|
}, []);
|
|
84
86
|
if (!delayDone) {
|
|
85
|
-
return /*#__PURE__*/_react.default.createElement(
|
|
87
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
+
ref: containerRef,
|
|
89
|
+
style: {
|
|
90
|
+
width: '100%',
|
|
91
|
+
height: '100%'
|
|
92
|
+
}
|
|
93
|
+
});
|
|
86
94
|
}
|
|
87
95
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
88
96
|
ref: containerRef,
|