()
| 81 | }; |
| 82 | protected resize(): void {} |
| 83 | protected renderView(): React.ReactNode { |
| 84 | const { code } = this.getVM().options || {}; |
| 85 | return ( |
| 86 | <div ref={this.divRef} className="SolidViewItemContent" data-type="html"> |
| 87 | {code && ( |
| 88 | <LazyLoad> |
| 89 | <HandleLayer /> |
| 90 | <iframe |
| 91 | importance="low" |
| 92 | loading="lazy" |
| 93 | className="frame" |
| 94 | srcDoc={code} |
| 95 | onLoad={this.onIframeMount} |
| 96 | /> |
| 97 | </LazyLoad> |
| 98 | )} |
| 99 | </div> |
| 100 | ); |
| 101 | } |
| 102 | } |
| 103 | |
| 104 | const LazyLoad: FC = (props) => { |