Refactor(Render): Using React Flow to render the mobile simulator

This commit is contained in:
2024-10-31 10:51:39 +08:00
parent 6880fe8b21
commit b75013afa7
9 changed files with 494 additions and 286 deletions

View File

@@ -4,7 +4,6 @@
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Preview</title>
<!-- es-module-shims -->
</head>
<body>
<script>
@@ -36,10 +35,6 @@
document.body.appendChild(script);
URL.revokeObjectURL(oldSrc);
}
if (data?.type === "SCALE") {
document.getElementById("root").style.zoom = data.data.zoom;
}
});
</script>
<script type="module" id="appSrc"></script>