@lark-apaas/miaoda-presets 0.1.0-alpha.overlay.3 → 0.1.0-alpha.overlay.6
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/lib/overlay/index.js +8 -0
- package/package.json +1 -1
package/lib/overlay/index.js
CHANGED
|
@@ -167,6 +167,14 @@ function render() {
|
|
|
167
167
|
const origin = targetOrigin || getPreviewParentOrigin();
|
|
168
168
|
window.parent.postMessage(message, origin);
|
|
169
169
|
};
|
|
170
|
+
// 通知主应用存在自定义 overlay
|
|
171
|
+
sendPostMessage({
|
|
172
|
+
type: 'app-features',
|
|
173
|
+
payload: [{
|
|
174
|
+
feature: 'error-overlay',
|
|
175
|
+
enable: true,
|
|
176
|
+
}],
|
|
177
|
+
});
|
|
170
178
|
if (currentCompileErrorMessage) {
|
|
171
179
|
currentMode = 'compileError';
|
|
172
180
|
ErrorContainer(rootDocument, root, {
|