chore: rename web_ui dir to web

This commit is contained in:
Junyan Qin
2025-04-28 21:41:03 +08:00
parent 5c74bb41c9
commit 2eaac168dc
81 changed files with 0 additions and 1 deletions
+30
View File
@@ -0,0 +1,30 @@
"use client";
import "@ant-design/v5-patch-for-react-19";
import styles from "./layout.module.css";
import HomeSidebar from "@/app/home/components/home-sidebar/HomeSidebar";
import HomeTitleBar from "@/app/home/components/home-titlebar/HomeTitleBar";
import React, { useState } from "react";
import { SidebarChildVO } from "@/app/home/components/home-sidebar/HomeSidebarChild";
export default function HomeLayout({
children
}: Readonly<{
children: React.ReactNode;
}>) {
const [title, setTitle] = useState<string>("");
const onSelectedChange = (child: SidebarChildVO) => {
setTitle(child.name);
};
return (
<div className={`${styles.homeLayoutContainer}`}>
<HomeSidebar onSelectedChangeAction={onSelectedChange} />
<div className={`${styles.main}`}>
<HomeTitleBar title={title} />
{/* 主页面 */}
<div className={`${styles.mainContent}`}>{children}</div>
</div>
</div>
);
}