@zzdadelu/schema-builder 1.0.0-alpha.15 → 1.0.0-alpha.16
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 +1 -2
- package/lib/main.js +1 -2
- package/package.json +1 -1
package/es/main.js
CHANGED
|
@@ -31,8 +31,8 @@ var Design = function Design(props, ref) {
|
|
|
31
31
|
};
|
|
32
32
|
});
|
|
33
33
|
useEffect(function () {
|
|
34
|
-
initIframe();
|
|
35
34
|
window.addEventListener('message', engineOnLoad);
|
|
35
|
+
initIframe();
|
|
36
36
|
return function () {
|
|
37
37
|
window.removeEventListener('message', engineOnLoad);
|
|
38
38
|
};
|
|
@@ -48,7 +48,6 @@ var Design = function Design(props, ref) {
|
|
|
48
48
|
return;
|
|
49
49
|
}
|
|
50
50
|
console.log("拿到 iframe props:", event);
|
|
51
|
-
console.log("拿到 iframe props:", event);
|
|
52
51
|
(_iframe5 = iframe) === null || _iframe5 === void 0 ? void 0 : (_iframe5$contentWindo = _iframe5.contentWindow) === null || _iframe5$contentWindo === void 0 ? void 0 : (_iframe5$contentWindo2 = _iframe5$contentWindo.__FR_ENGINE__) === null || _iframe5$contentWindo2 === void 0 ? void 0 : _iframe5$contentWindo2.init(_objectSpread({
|
|
53
52
|
settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
|
|
54
53
|
widgets: widgets,
|
package/lib/main.js
CHANGED
|
@@ -39,8 +39,8 @@ var Design = function Design(props, ref) {
|
|
|
39
39
|
};
|
|
40
40
|
});
|
|
41
41
|
(0, _react.useEffect)(function () {
|
|
42
|
-
initIframe();
|
|
43
42
|
window.addEventListener('message', engineOnLoad);
|
|
43
|
+
initIframe();
|
|
44
44
|
return function () {
|
|
45
45
|
window.removeEventListener('message', engineOnLoad);
|
|
46
46
|
};
|
|
@@ -56,7 +56,6 @@ var Design = function Design(props, ref) {
|
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
console.log("拿到 iframe props:", event);
|
|
59
|
-
console.log("拿到 iframe props:", event);
|
|
60
59
|
(_iframe5 = iframe) === null || _iframe5 === void 0 ? void 0 : (_iframe5$contentWindo = _iframe5.contentWindow) === null || _iframe5$contentWindo === void 0 ? void 0 : (_iframe5$contentWindo2 = _iframe5$contentWindo.__FR_ENGINE__) === null || _iframe5$contentWindo2 === void 0 ? void 0 : _iframe5$contentWindo2.init(_objectSpread({
|
|
61
60
|
settings: _objectSpread(_objectSpread({}, defaultSetting), settings),
|
|
62
61
|
widgets: widgets,
|