fix: 修复编辑器移动端主题不生效问题 (#8605)

Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
qkiroc 2023-11-02 19:39:24 +08:00 committed by GitHub
parent 7c716e99bd
commit 411bf35ae7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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() {
@ -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}