add preview html code

This commit is contained in:
lloydzhou 2024-07-23 14:39:31 +08:00
parent 3a10f58b28
commit dfd089132d
1 changed files with 1 additions and 1 deletions

View File

@ -77,7 +77,7 @@ export function HTMLPreview(props: { code: string }) {
frameBorder={0}
sandbox="allow-scripts"
style={{ width: "100%", height: 400 }}
srcdoc={props.code}
srcDoc={props.code}
></iframe>
</div>
);