添加一些数据

This commit is contained in:
yuding
2026-04-21 15:07:49 +08:00
parent d60cc4448d
commit aeb4c990ad
24 changed files with 39086 additions and 26411 deletions

13
demo-next/app/globals.css Normal file
View File

@@ -0,0 +1,13 @@
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
html,
body {
width: 100%;
height: 100%;
overflow: hidden;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

22
demo-next/app/layout.tsx Normal file
View File

@@ -0,0 +1,22 @@
import type { Metadata } from "next";
import "./globals.css";
export const metadata: Metadata = {
title: "iFlow Engine - Next.js Demo",
description: "iFlow Engine BIM Viewer Demo with Next.js + React",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
return (
<html lang="zh-CN">
<head>
<script src="/lib/iflow-engine.umd.js" defer></script>
</head>
<body>{children}</body>
</html>
);
}

9
demo-next/app/page.tsx Normal file
View File

@@ -0,0 +1,9 @@
import BimViewer from "@/components/BimViewer";
export default function Home() {
return (
<main style={{ width: "100vw", height: "100vh", overflow: "hidden" }}>
<BimViewer />
</main>
);
}