Skip to content

Commit

Permalink
fix: iframe的style,允许被覆盖,用来修复在firefox下echarts、g6等canvas无法显示的问题
Browse files Browse the repository at this point in the history
  • Loading branch information
woshirubbish committed Mar 8, 2023
1 parent f92942f commit 588bc49
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/wujie-core/src/iframe.ts
Original file line number Diff line number Diff line change
Expand Up @@ -784,7 +784,7 @@ export function iframeGenerator(
appRoutePath: string
): HTMLIFrameElement {
const iframe = window.document.createElement("iframe");
const attrsMerge = { src: mainHostPath, ...attrs, style: "display: none", name: sandbox.id, [WUJIE_DATA_FLAG]: "" };
const attrsMerge = { src: mainHostPath, style: "display: none", ...attrs, name: sandbox.id, [WUJIE_DATA_FLAG]: "" };
setAttrsToElement(iframe, attrsMerge);
window.document.body.appendChild(iframe);

Expand Down

0 comments on commit 588bc49

Please sign in to comment.