mirror of
https://gitee.com/baidu/amis.git
synced 2024-11-30 02:58:05 +08:00
fix: 修复编辑器移动端主题不生效问题 (#8605)
Co-authored-by: qinhaoyan <30946345+qinhaoyan@users.noreply.github.com>
This commit is contained in:
parent
7c716e99bd
commit
411bf35ae7
@ -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}
|
||||
|
Loading…
Reference in New Issue
Block a user