Skip to content

Commit

Permalink
fix: 修复编辑器移动端主题不生效问题
Browse files Browse the repository at this point in the history
  • Loading branch information
qkiroc committed Nov 2, 2023
1 parent fdff931 commit 6b4641e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/amis-editor-core/src/component/IFramePreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export default class IFramePreview extends React.Component<IFramePreviewProps> {

this.initialContent = `<!DOCTYPE html><html><head>${styles.join(
''
)}</head><body><div class="ae-IFramePreview"></div></body></html>`;
)}</head><body><div class="ae-IFramePreview AMISCSSWrapper"></div></body></html>`;
}

componentDidMount() {
Expand Down Expand Up @@ -101,7 +101,7 @@ export default class IFramePreview extends React.Component<IFramePreviewProps> {

return (
<Frame
className={`ae-PreviewIFrame`}
className={'ae-PreviewIFrame'}
initialContent={this.initialContent}
ref={this.iframeRefFunc}
contentDidMount={this.iframeContentDidMount}
Expand Down

0 comments on commit 6b4641e

Please sign in to comment.